Skip to content

Commit

Permalink
Added movement result struct
Browse files Browse the repository at this point in the history
Signed-off-by: Eddie Knight <[email protected]>
  • Loading branch information
eddie-knight committed Oct 18, 2023
1 parent 0e85bf9 commit 77513c2
Showing 1 changed file with 16 additions and 6 deletions.
22 changes: 16 additions & 6 deletions raidengine/raidengine.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,23 @@ import (
"github.com/privateerproj/privateer-sdk/utils"
)

// StrikeResult is a struct that contains the results of a test
// MovementResult is a struct that contains the results of a single step within a strike
type MovementResult struct {
Passed bool // Passed is true if the test passed
Description string // Description is a human-readable description of the test
Message string // Message is a human-readable description of the test result
Function string // Function is the name of the code that was executed
Value interface{} // Value is the object that was returned during the movement
}

// StrikeResult is a struct that contains the results of a check for a single control
type StrikeResult struct {
Passed bool // Passed is true if the test passed
Description string // Description is a human-readable description of the test
Message string // Message is a human-readable description of the test result
DocsURL string // DocsURL is a link to the documentation for the test
ControlID string // ControlID is the ID of the control that the test is validating
Passed bool // Passed is true if the test passed
Description string // Description is a human-readable description of the test
Message string // Message is a human-readable description of the test result
DocsURL string // DocsURL is a link to the documentation for the test
ControlID string // ControlID is the ID of the control that the test is validating
Movements map[string]MovementResult // Movements is a list of functions that were executed during the test
}

// RaidResults is a struct that contains the results of all strikes, orgainzed by name
Expand Down

0 comments on commit 77513c2

Please sign in to comment.