Documentation ¶
Index ¶
- Constants
- func IsInvalidApiUrl(_ context.Context, _ *Validator, dk *dynakube.DynaKube) string
- func IsThirdGenAPIUrl(_ context.Context, _ *Validator, dk *dynakube.DynaKube) string
- func New(apiReader client.Reader, cfg *rest.Config) admission.CustomValidator
- func NoApiUrl(_ context.Context, _ *Validator, dk *dynakube.DynaKube) string
- type Validator
- func (v *Validator) ValidateCreate(ctx context.Context, obj runtime.Object) (warnings admission.Warnings, err error)
- func (v *Validator) ValidateDelete(ctx context.Context, obj runtime.Object) (warnings admission.Warnings, err error)
- func (v *Validator) ValidateUpdate(ctx context.Context, oldObj, newObj runtime.Object) (warnings admission.Warnings, err error)
Constants ¶
View Source
const (
ExampleApiUrl = "https://ENVIRONMENTID.live.dynatrace.com/api"
)
Variables ¶
This section is empty.
Functions ¶
func IsInvalidApiUrl ¶
func IsThirdGenAPIUrl ¶
Types ¶
type Validator ¶
type Validator struct {
// contains filtered or unexported fields
}
func (*Validator) ValidateCreate ¶
func (*Validator) ValidateDelete ¶
Click to show internal directories.
Click to hide internal directories.