inferenceservice

package
v0.3.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Defaulter

type Defaulter struct {
	Client  client.Client
	Decoder *admission.Decoder
}

Defaulter that sets default fields in InferenceServices

func (*Defaulter) Handle

func (defaulter *Defaulter) Handle(ctx context.Context, req admission.Request) admission.Response

Handle decodes the incoming InferenceService and executes Validation logic.

func (*Defaulter) InjectClient

func (defaulter *Defaulter) InjectClient(c client.Client) error

InjectClient injects the client.

func (*Defaulter) InjectDecoder

func (defaulter *Defaulter) InjectDecoder(d *admission.Decoder) error

InjectDecoder injects the decoder.

type Validator

type Validator struct {
	Client  client.Client
	Decoder *admission.Decoder
}

Validator that validates InferenceServices

func (*Validator) Handle

func (validator *Validator) Handle(ctx context.Context, req admission.Request) admission.Response

Handle decodes the incoming InferenceService and executes Validation logic.

func (*Validator) InjectClient

func (validator *Validator) InjectClient(c client.Client) error

InjectClient injects the client.

func (*Validator) InjectDecoder

func (validator *Validator) InjectDecoder(d *admission.Decoder) error

InjectDecoder injects the decoder.

Jump to

Keyboard shortcuts

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