Documentation
¶
Index ¶
- Variables
- func ValidateCommand() *cobra.Command
- func ValidateOnCompDef(compDef *oscalTypes_1_1_2.ComponentDefinition) (map[string]oscalTypes_1_1_2.Finding, []oscalTypes_1_1_2.Observation, error)
- func ValidateOnPath(path string) (findingMap map[string]oscalTypes_1_1_2.Finding, ...)
- func WriteReport(report oscalTypes_1_1_2.AssessmentResults, assessmentFilePath string) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ConfirmExecution bool // --confirm-execution
View Source
var RunNonInteractively bool // --non-interactive
Functions ¶
func ValidateCommand ¶
func ValidateOnCompDef ¶
func ValidateOnCompDef(compDef *oscalTypes_1_1_2.ComponentDefinition) (map[string]oscalTypes_1_1_2.Finding, []oscalTypes_1_1_2.Observation, error)
ValidateOnCompDef takes a single ComponentDefinition object It will perform a validation and add data to a referenced report object
func ValidateOnPath ¶
func ValidateOnPath(path string) (findingMap map[string]oscalTypes_1_1_2.Finding, observations []oscalTypes_1_1_2.Observation, err error)
ValidateOnPath takes 1 -> N paths to OSCAL component-definition files It will then read those files to perform validation and return an ResultObject
func WriteReport ¶
func WriteReport(report oscalTypes_1_1_2.AssessmentResults, assessmentFilePath string) error
This is the OSCAL document generation for final output. This should include some ability to consolidate controls met in multiple input documents under single control entries This should include fields that reference the source of the control to the original document ingested TODO: This is unused - remove?
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.