valuesets

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	STATUS_PASSED  = "passed"
	STATUS_FAILED  = "failed"
	STATUS_SKIPPED = "skipped"
)
View Source
const NAME = "check"

Variables

View Source
var (
	StatusOption  = options.NewStringMapOptionType("checkStatus", out.Sprintf("status value for check (%s)", strings.Join(utils.StringMapKeys(status), ", ")))
	MessageOption = options.NewStringMapOptionType("checkMessage", "message for check")
)

Functions

func New

func New() ppi.ValueSet

Types

type Status

type Status struct {
	Status  string `json:"status"`
	Message string `json:"message"`
}

type Value

type Value struct {
	runtime.ObjectTypedObject `json:",inline"`
	Checks                    map[string]Status `json:"checks"`
}

type ValueSet

type ValueSet struct {
	ppi.ValueSetBase
}

func (ValueSet) ComposeSpecification

func (v ValueSet) ComposeSpecification(p ppi.Plugin, opts ppi.Config, config ppi.Config) error

func (ValueSet) Options

func (v ValueSet) Options() []options.OptionType

func (ValueSet) ValidateSpecification

func (v ValueSet) ValidateSpecification(p ppi.Plugin, spec runtime.TypedObject) (*ppi.ValueSetInfo, error)

Jump to

Keyboard shortcuts

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