networking

package
v0.0.0-...-1c213c1 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2022 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const (
	RouteEntityType = "route"

	InvalidURIError          = "Invalid Route URI"
	PathIsSlashError         = "Path cannot be a single slash"
	PathHasQuestionMarkError = "Path cannot contain a question mark"
	PathLengthExceededError  = "Path cannot exceed 128 characters"
)

Variables

This section is empty.

Functions

func IsFQDN

func IsFQDN(host, domain string) (bool, error)

Types

type CFDomainValidation

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

func NewCFDomainValidation

func NewCFDomainValidation(client client.Client) *CFDomainValidation

func (*CFDomainValidation) Handle

func (*CFDomainValidation) InjectDecoder

func (v *CFDomainValidation) InjectDecoder(d *admission.Decoder) error

func (*CFDomainValidation) SetupWebhookWithManager

func (v *CFDomainValidation) SetupWebhookWithManager(mgr ctrl.Manager) error

type CFRouteValidation

type CFRouteValidation struct {
	Client client.Client
	// contains filtered or unexported fields
}

func NewCFRouteValidation

func NewCFRouteValidation(nameValidator NameValidator, rootNamespace string, client client.Client) *CFRouteValidation

func (*CFRouteValidation) Handle

func (*CFRouteValidation) InjectDecoder

func (v *CFRouteValidation) InjectDecoder(d *admission.Decoder) error

func (*CFRouteValidation) SetupWebhookWithManager

func (v *CFRouteValidation) SetupWebhookWithManager(mgr ctrl.Manager) error

type NameValidator

type NameValidator interface {
	ValidateCreate(ctx context.Context, logger logr.Logger, namespace, newName string) error
	ValidateUpdate(ctx context.Context, logger logr.Logger, namespace, oldName, newName string) error
	ValidateDelete(ctx context.Context, logger logr.Logger, namespace, oldName string) error
}

Directories

Path Synopsis
Code generated by counterfeiter.
Code generated by counterfeiter.

Jump to

Keyboard shortcuts

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