validation

package
v1.3.2 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2024 License: Apache-2.0 Imports: 28 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ExampleApiUrl = "https://ENVIRONMENTID.live.dynatrace.com/api"
)

Variables

This section is empty.

Functions

func IsInvalidApiUrl

func IsInvalidApiUrl(_ context.Context, _ *Validator, dk *dynakube.DynaKube) string

func IsThirdGenAPIUrl

func IsThirdGenAPIUrl(_ context.Context, _ *Validator, dk *dynakube.DynaKube) string

func New

func New(apiReader client.Reader, cfg *rest.Config) admission.CustomValidator

func NoApiUrl

func NoApiUrl(_ context.Context, _ *Validator, dk *dynakube.DynaKube) string

Types

type Validator

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

func (*Validator) ValidateCreate

func (v *Validator) ValidateCreate(ctx context.Context, obj runtime.Object) (warnings admission.Warnings, err error)

func (*Validator) ValidateDelete

func (v *Validator) ValidateDelete(ctx context.Context, obj runtime.Object) (warnings admission.Warnings, err error)

func (*Validator) ValidateUpdate

func (v *Validator) ValidateUpdate(ctx context.Context, oldObj, newObj runtime.Object) (warnings admission.Warnings, err error)

Jump to

Keyboard shortcuts

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