app

package
v0.18.6 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2023 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Name = "app"
)

Variables

This section is empty.

Functions

func IsInvalidConfig

func IsInvalidConfig(err error) bool

IsInvalidConfig asserts invalidConfigError.

func IsParsingFailed

func IsParsingFailed(err error) bool

IsParsingFailed asserts parsingFailedError.

Types

type Mutator

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

func NewMutator

func NewMutator(config MutatorConfig) (*Mutator, error)

func (*Mutator) Debugf added in v0.3.0

func (m *Mutator) Debugf(ctx context.Context, format string, params ...interface{})

func (*Mutator) Errorf added in v0.3.0

func (m *Mutator) Errorf(ctx context.Context, err error, format string, params ...interface{})

func (*Mutator) Mutate

func (*Mutator) MutateApp

func (m *Mutator) MutateApp(ctx context.Context, oldApp, app v1alpha1.App, operation admissionv1.Operation) ([]mutator.PatchOperation, error)

func (*Mutator) Resource

func (m *Mutator) Resource() string

type MutatorConfig

type MutatorConfig struct {
	K8sClient k8sclient.Interface
	Logger    micrologger.Logger
}

type Validator

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

func NewValidator

func NewValidator(config ValidatorConfig) (*Validator, error)

func (*Validator) Debugf added in v0.3.0

func (v *Validator) Debugf(ctx context.Context, format string, params ...interface{})

func (*Validator) Errorf added in v0.3.0

func (v *Validator) Errorf(ctx context.Context, err error, format string, params ...interface{})

func (*Validator) Resource

func (v *Validator) Resource() string

func (*Validator) Validate

func (v *Validator) Validate(request *admissionv1.AdmissionRequest) (bool, error)

type ValidatorConfig

type ValidatorConfig struct {
	Event     recorder.Interface
	K8sClient k8sclient.Interface
	Logger    micrologger.Logger

	Provider  string
	Inspector *secins.Inspector
}

Jump to

Keyboard shortcuts

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