valuesets

package
v0.0.0-...-877fc11 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 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(_ 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(_ 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