ingress

package
v0.1.0-rc5 Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2021 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Class added in v0.1.0

func Collision added in v0.1.0

func Collision(configuration configuration.Configuration) capsulewebhook.Handler

func Hostnames added in v0.1.0

func Hostnames(configuration configuration.Configuration) capsulewebhook.Handler

func NewIngressClassForbidden

func NewIngressClassForbidden(className string, spec capsulev1beta1.AllowedListSpec) error

func NewIngressClassNotValid

func NewIngressClassNotValid(spec capsulev1beta1.AllowedListSpec) error

func NewIngressHostnameCollision added in v0.0.5

func NewIngressHostnameCollision(hostname string) error

func NewIngressHostnamesNotValid added in v0.0.4

func NewIngressHostnamesNotValid(invalidHostnames []string, notMatchingHostnames []string, spec capsulev1beta1.AllowedListSpec) error

Types

type Extension

type Extension struct {
	*extensionsv1beta1.Ingress
}

func (Extension) Hostnames added in v0.0.4

func (e Extension) Hostnames() []string

func (Extension) IngressClass

func (e Extension) IngressClass() (res *string)

func (Extension) Name added in v0.0.5

func (e Extension) Name() string

func (Extension) Namespace

func (e Extension) Namespace() string

type HostnamesList added in v0.1.0

type HostnamesList []string

func (HostnamesList) IsStringInList added in v0.1.0

func (hostnames HostnamesList) IsStringInList(value string) (ok bool)

func (HostnamesList) Len added in v0.1.0

func (hostnames HostnamesList) Len() int

func (HostnamesList) Less added in v0.1.0

func (hostnames HostnamesList) Less(i, j int) bool

func (HostnamesList) Swap added in v0.1.0

func (hostnames HostnamesList) Swap(i, j int)

type Ingress

type Ingress interface {
	IngressClass() *string
	Namespace() string
	Name() string
	Hostnames() []string
}

type NetworkingV1 added in v0.0.2

type NetworkingV1 struct {
	*networkingv1.Ingress
}

func (NetworkingV1) Hostnames added in v0.0.4

func (n NetworkingV1) Hostnames() []string

func (NetworkingV1) IngressClass added in v0.0.2

func (n NetworkingV1) IngressClass() (res *string)

func (NetworkingV1) Name added in v0.0.5

func (n NetworkingV1) Name() string

func (NetworkingV1) Namespace added in v0.0.2

func (n NetworkingV1) Namespace() string

type NetworkingV1Beta1 added in v0.0.2

type NetworkingV1Beta1 struct {
	*networkingv1beta1.Ingress
}

func (NetworkingV1Beta1) Hostnames added in v0.0.4

func (n NetworkingV1Beta1) Hostnames() []string

func (NetworkingV1Beta1) IngressClass added in v0.0.2

func (n NetworkingV1Beta1) IngressClass() (res *string)

func (NetworkingV1Beta1) Name added in v0.0.5

func (n NetworkingV1Beta1) Name() string

func (NetworkingV1Beta1) Namespace added in v0.0.2

func (n NetworkingV1Beta1) Namespace() string

Jump to

Keyboard shortcuts

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