validate

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2023 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ID

type ID struct {
	Pairs []Pair
}

func NewID

func NewID(keyName string, name string) *ID

type Pair

type Pair struct {
	KeyName string
	Name    string
}

type RawJson

type RawJson interface{}

type ToBeValidated added in v0.4.0

type ToBeValidated struct {
	ValidRoles      []string
	ValidSubRoles   []string
	K8sPodsCidr     string
	K8sServicesCidr string
}

func (*ToBeValidated) Validate added in v0.4.0

func (tbv *ToBeValidated) Validate(slsState *sls_client.SlsState) ([]common.ValidationResult, error)

func (*ToBeValidated) ValidateHTTPResponse added in v0.4.0

func (tbv *ToBeValidated) ValidateHTTPResponse(slsState *sls_client.SlsState, response *http.Response) ([]common.ValidationResult, error)

Validate validates the data in the response against the SLS schema.

func (*ToBeValidated) ValidateString added in v0.4.0

func (tbv *ToBeValidated) ValidateString(slsStateBytes []byte) ([]common.ValidationResult, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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