validate

package
v0.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 13, 2024 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ValidateCommand

func ValidateCommand() *cobra.Command

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

func WriteReport(report oscalTypes.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

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL