validation

package
v0.9.1 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Option

type Option func(*Validator) error

func WithAllowExecution

func WithAllowExecution(confirmExecution, runNonInteractively bool) Option

func WithComposition

func WithComposition(composer *composition.Composer, path string) Option

func WithResourcesDir

func WithResourcesDir(saveResources bool, rootDir string) Option

type Validator

type Validator struct {
	// contains filtered or unexported fields
}

func New

func New(opts ...Option) (*Validator, error)

func (*Validator) ValidateOnCompDef

func (v *Validator) ValidateOnCompDef(ctx context.Context, compDef *oscalTypes_1_1_2.ComponentDefinition, target string) (results []oscalTypes_1_1_2.Result, err error)

func (*Validator) ValidateOnControlImplementations

func (v *Validator) ValidateOnControlImplementations(ctx context.Context, controlImplementations *[]oscalTypes_1_1_2.ControlImplementationSet, validationStore *validationstore.ValidationStore, target string) (map[string]oscalTypes_1_1_2.Finding, []oscalTypes_1_1_2.Observation, error)

func (*Validator) ValidateOnPath

func (v *Validator) ValidateOnPath(ctx context.Context, path, target string) (assessmentResult *oscalTypes_1_1_2.AssessmentResults, err error)

Jump to

Keyboard shortcuts

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