webhooks

package
v0.13.0 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2024 License: Apache-2.0 Imports: 4 Imported by: 1

Documentation

Index

Constants

View Source
const (
	MaxLabelLength = 63

	ImmutableFieldModificationErrorType = "ImmutableFieldModificationError"
	MissingRequredFieldErrorType        = "MissingRequiredFieldError"
	InvalidFieldValueErrorType          = "InvalidFieldValueError"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type NameRegistry

type NameRegistry interface {
	RegisterName(ctx context.Context, namespace, name, ownerNamespace, ownerName string) error
	DeregisterName(ctx context.Context, namespace, name string) error
	TryLockName(ctx context.Context, namespace, name string) error
	UnlockName(ctx context.Context, namespace, name string) error
	CheckNameOwnership(ctx context.Context, namespace, name, ownerNamespace, ownerName string) (bool, error)
}

type NameValidator added in v0.2.0

type NameValidator interface {
	ValidateCreate(ctx context.Context, logger logr.Logger, namespace string, obj UniqueClientObject) error
	ValidateUpdate(ctx context.Context, logger logr.Logger, namespace string, oldObj, newObj UniqueClientObject) error
	ValidateDelete(ctx context.Context, logger logr.Logger, namespace string, obj UniqueClientObject) error
}

type NamespaceValidator added in v0.2.0

type NamespaceValidator interface {
	ValidateOrgCreate(org korifiv1alpha1.CFOrg) error
	ValidateSpaceCreate(space korifiv1alpha1.CFSpace) error
}

type UniqueClientObject added in v0.8.0

type UniqueClientObject interface {
	client.Object
	UniqueName() string
	UniqueValidationErrorMessage() string
}

Directories

Path Synopsis
Code generated by counterfeiter.
Code generated by counterfeiter.
networking
services
workloads

Jump to

Keyboard shortcuts

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