types

package
v0.2.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Domain added in v0.2.0

type Domain interface {
	GetResources() (DomainResources, error)
}

type DomainResources added in v0.2.0

type DomainResources map[string]interface{}

type LulaValidation added in v0.2.0

type LulaValidation struct {
	// Provider is the provider that is evaluating the validation
	Provider Provider

	// Domain is the domain that provides the evidence for the validation
	Domain Domain

	// DomainResources is the set of resources that the domain is providing
	DomainResources DomainResources

	// LulaValidationType is the type of validation that is being performed
	LulaValidationType LulaValidationType

	// Evaluated is a boolean that represents if the validation has been evaluated
	Evaluated bool

	// Result is the result of the validation
	Result Result
}

func (*LulaValidation) Validate added in v0.2.0

func (val *LulaValidation) Validate() error

Perform the validation, and store the result in the LulaValidation struct

type LulaValidationMap added in v0.2.0

type LulaValidationMap = map[string]LulaValidation

LulaValidationMap is a map of LulaValidation objects

type LulaValidationType added in v0.2.0

type LulaValidationType string
const (
	LulaValidationTypeNormal  LulaValidationType = "Lula Validation"
	DefaultLulaValidationType LulaValidationType = LulaValidationTypeNormal
)

type Provider added in v0.2.0

type Provider interface {
	Evaluate(DomainResources) (Result, error)
}

type Result

type Result struct {
	UUID         string            `json:"uuid" yaml:"uuid"`
	ControlId    string            `json:"control-id" yaml:"control-id"`
	Description  string            `json:"description" yaml:"description"`
	Passing      int               `json:"passing" yaml:"passing"`
	Failing      int               `json:"failing" yaml:"failing"`
	State        string            `json:"state" yaml:"state"`
	Observations map[string]string `json:"observations" yaml:"observations"`
}

native type for conversion to targeted report format

Jump to

Keyboard shortcuts

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