validation

package
v0.14.0 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2024 License: Apache-2.0 Imports: 15 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 WithOutputDir added in v0.14.0

func WithOutputDir(rootDir string) Option

func WithSaveResources added in v0.14.0

func WithSaveResources(saveResources bool) Option

func WithTests added in v0.14.0

func WithTests(runTests bool) 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.ComponentDefinition, target string) (results []oscalTypes.Result, err error)

func (*Validator) ValidateOnControlImplementations

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

func (*Validator) ValidateOnPath

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

Jump to

Keyboard shortcuts

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