Documentation
¶
Index ¶
- func ValidateCommand() *cobra.Command
- func ValidateOnCompDef(compDef oscalTypes.ComponentDefinition) (map[string]oscalTypes.Finding, []oscalTypes.Observation, error)
- func ValidateOnPath(path string) (findingMap map[string]oscalTypes.Finding, ...)
- func ValidateOnTarget(ctx context.Context, id string, target map[string]interface{}) (types.Result, error)
- func WriteReport(report oscalTypes.AssessmentResults, assessmentFilePath string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ValidateCommand ¶
func ValidateOnCompDef ¶
func ValidateOnCompDef(compDef oscalTypes.ComponentDefinition) (map[string]oscalTypes.Finding, []oscalTypes.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.Finding, observations []oscalTypes.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 ValidateOnTarget ¶
func ValidateOnTarget(ctx context.Context, id string, target map[string]interface{}) (types.Result, error)
ValidateOnTarget takes a map[string]interface{} It will return a single Result
func WriteReport ¶
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
Types ¶
This section is empty.