validating

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2019 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// Builders contain admission webhook builders
	Builders = map[string]*builder.WebhookBuilder{}
	// HandlerMap contains admission webhook handlers
	HandlerMap = map[string][]admission.Handler{}
)

Functions

func ValidateConfig

func ValidateConfig(config *api.S2iConfig, fromTemplate bool) []error

ValidateConfig returns a list of error from validation.

func ValidateParameter added in v0.0.2

func ValidateParameter(user, tmpt []api.Parameter) []error

Types

type S2iBuilderCreateUpdateHandler

type S2iBuilderCreateUpdateHandler struct {
	Client client.Client
	// Decoder decodes objects
	Decoder types.Decoder
}

S2iBuilderCreateUpdateHandler handles S2iBuilder

func (*S2iBuilderCreateUpdateHandler) Handle

Handle handles admission requests.

func (*S2iBuilderCreateUpdateHandler) InjectClient

func (h *S2iBuilderCreateUpdateHandler) InjectClient(c client.Client) error

InjectClient injects the client into the S2iBuilderCreateUpdateHandler

func (*S2iBuilderCreateUpdateHandler) InjectDecoder

func (h *S2iBuilderCreateUpdateHandler) InjectDecoder(d types.Decoder) error

InjectDecoder injects the decoder into the S2iBuilderCreateUpdateHandler

Jump to

Keyboard shortcuts

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