Documentation ¶
Index ¶
- type ValidationStore
- func (v *ValidationStore) AddLulaValidation(validation *types.LulaValidation, id string)
- func (v *ValidationStore) AddValidation(validation *common.Validation) (id string, err error)
- func (v *ValidationStore) Count() int
- func (v *ValidationStore) DryRun() (executable bool, msg string)
- func (v *ValidationStore) GetLulaValidation(id string) (validation *types.LulaValidation, err error)
- func (v *ValidationStore) GetRelatedObservation(id string) (oscalTypes.RelatedObservation, bool)
- func (v *ValidationStore) RunTests(ctx context.Context) map[string]types.LulaValidationTestReport
- func (v *ValidationStore) RunValidations(ctx context.Context, confirmExecution, saveResources bool, outputsDir string) []oscalTypes.Observation
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
func (v *ValidationStore) RunTests(ctx context.Context) map[string]types.LulaValidationTestReport
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
Click to show internal directories.
Click to hide internal directories.