validate

package
v10.1.1+incompatible Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2019 License: Apache-2.0 Imports: 13 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsValidAgentPoolHostname

func IsValidAgentPoolHostname(hostname string) bool

func IsValidBlobName

func IsValidBlobName(c string) bool

Types

type APIValidator

type APIValidator struct {
	// contains filtered or unexported fields
}

APIValidator validator for external API

func NewAPIValidator

func NewAPIValidator(runningUnderTest bool) *APIValidator

NewAPIValidator return instance of external API validator

func (*APIValidator) Validate

func (v *APIValidator) Validate(cs, oldCs *api.OpenShiftManagedCluster, externalOnly bool) (errs []error)

Validate validates a OpenShiftManagedCluster struct

type AdminAPIValidator

type AdminAPIValidator struct {
	// contains filtered or unexported fields
}

AdminAPIValidator validator for external Admin API

func NewAdminValidator

func NewAdminValidator(runningUnderTest bool) *AdminAPIValidator

NewAdminValidator return instance of external Admin API validator

func (*AdminAPIValidator) Validate

func (v *AdminAPIValidator) Validate(cs, oldCs *api.OpenShiftManagedCluster) (errs []error)

Validate validates a OpenShiftManagedCluster struct

type PluginAPIValidator

type PluginAPIValidator struct{}

PluginAPIValidator validator for external Plugin API

func NewPluginAPIValidator

func NewPluginAPIValidator() *PluginAPIValidator

NewPluginAPIValidator return instance of external Plugin API validator

func (*PluginAPIValidator) Validate

func (v *PluginAPIValidator) Validate(c *pluginapi.Config) (errs []error)

Validate validates an Plugin API external template/config struct

Jump to

Keyboard shortcuts

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