validationstore

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: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ValidationStore

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

func NewValidationStore

func NewValidationStore() *ValidationStore

NewValidationStore creates a new validation store

func NewValidationStoreFromBackMatter

func NewValidationStoreFromBackMatter(backMatter oscalTypes.BackMatter) *ValidationStore

NewValidationStoreFromBackMatter creates a new validation store from a back matter

func (*ValidationStore) AddLulaValidation

func (v *ValidationStore) AddLulaValidation(validation *types.LulaValidation, id string)

AddLulaValidation adds a LulaValidation to the store

func (*ValidationStore) AddValidation

func (v *ValidationStore) AddValidation(validation *common.Validation) (id string, err error)

AddValidation adds a validation to the store

func (*ValidationStore) Count added in v0.4.0

func (v *ValidationStore) Count() int

Number of validations in the store

func (*ValidationStore) DryRun added in v0.4.0

func (v *ValidationStore) DryRun() (executable bool, msg string)

DryRun checks if the validations are performing execution actions

func (*ValidationStore) GetLulaValidation

func (v *ValidationStore) GetLulaValidation(id string) (validation *types.LulaValidation, err error)

GetLulaValidation gets the LulaValidation from the store

func (*ValidationStore) GetRelatedObservation added in v0.4.0

func (v *ValidationStore) GetRelatedObservation(id string) (oscalTypes.RelatedObservation, bool)

GetObservation returns the observation with the given ID as well as pass status

func (*ValidationStore) RunTests added in v0.14.0

RunTests executes any tests defined on the validations in the validation store

func (*ValidationStore) RunValidations added in v0.4.0

func (v *ValidationStore) RunValidations(ctx context.Context, confirmExecution, saveResources bool, outputsDir string) []oscalTypes.Observation

RunValidations runs the validations in the store

Jump to

Keyboard shortcuts

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