ingress

package
v1.11.4 Latest Latest
Warning

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

Go to latest
Published: May 3, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	HTTP_PREFIX  = "http://"
	HTTPS_PREFIX = "https://"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type AccessControl

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

func NewAllowList added in v1.11.0

func NewAllowList(n string, r *rules.List, m maps.Maps) *AccessControl

func NewDenyList added in v1.11.0

func NewDenyList(n string, r *rules.List, m maps.Maps) *AccessControl

func (*AccessControl) GetAnnotationValue added in v1.11.0

func (a *AccessControl) GetAnnotationValue(annotations ...map[string]string) string

GetAnnotationValue returns the annotation value of the AccessControl. If the annotation is not defined, it returns an empty string. If the "new" annotation's name is not defined, it falls back to the deprecated name and logs a warning. Deprecated: remove this function when the deprecated annotation name will not be supported anymore.

func (*AccessControl) GetName

func (a *AccessControl) GetName() string

func (*AccessControl) Process

func (a *AccessControl) Process(k store.K8s, annotations ...map[string]string) (err error)

type HTTPSRedirect

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

func NewHTTPSRedirect

func NewHTTPSRedirect(rules *rules.List, i *store.Ingress) *HTTPSRedirect

func (*HTTPSRedirect) NewAnnotation

func (p *HTTPSRedirect) NewAnnotation(n string) HTTPSRedirectAnn

type HTTPSRedirectAnn

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

func (HTTPSRedirectAnn) GetName

func (a HTTPSRedirectAnn) GetName() string

func (HTTPSRedirectAnn) Process

func (a HTTPSRedirectAnn) Process(k store.K8s, annotations ...map[string]string) (err error)

type HostRedirect

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

func NewHostRedirect

func NewHostRedirect(r *rules.List) *HostRedirect

func (*HostRedirect) NewAnnotation

func (p *HostRedirect) NewAnnotation(n string) HostRedirectAnn

type HostRedirectAnn

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

func (HostRedirectAnn) GetName

func (a HostRedirectAnn) GetName() string

func (HostRedirectAnn) Process

func (a HostRedirectAnn) Process(k store.K8s, annotations ...map[string]string) (err error)

type ReqAuth

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

func NewReqAuth

func NewReqAuth(rules *rules.List, i *store.Ingress) *ReqAuth

func (*ReqAuth) NewAnnotation

func (p *ReqAuth) NewAnnotation(n string) ReqAuthAnn

type ReqAuthAnn

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

func (ReqAuthAnn) GetName

func (a ReqAuthAnn) GetName() string

func (ReqAuthAnn) Process

func (a ReqAuthAnn) Process(k store.K8s, annotations ...map[string]string) (err error)

type ReqCapture

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

func NewReqCapture

func NewReqCapture(r *rules.List) *ReqCapture

func (*ReqCapture) NewAnnotation

func (p *ReqCapture) NewAnnotation(n string) ReqCaptureAnn

type ReqCaptureAnn

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

func (ReqCaptureAnn) GetName

func (a ReqCaptureAnn) GetName() string

func (ReqCaptureAnn) Process

func (a ReqCaptureAnn) Process(k store.K8s, annotations ...map[string]string) (err error)

type ReqPathRewrite

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

func NewReqPathRewrite

func NewReqPathRewrite(n string, r *rules.List) *ReqPathRewrite

func (*ReqPathRewrite) GetName

func (a *ReqPathRewrite) GetName() string

func (*ReqPathRewrite) Process

func (a *ReqPathRewrite) Process(k store.K8s, annotations ...map[string]string) (err error)

type ReqRateLimit

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

func NewReqRateLimit

func NewReqRateLimit(r *rules.List) *ReqRateLimit

func (*ReqRateLimit) NewAnnotation

func (p *ReqRateLimit) NewAnnotation(n string) ReqRateLimitAnn

type ReqRateLimitAnn

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

func (ReqRateLimitAnn) GetName

func (a ReqRateLimitAnn) GetName() string

func (ReqRateLimitAnn) Process

func (a ReqRateLimitAnn) Process(k store.K8s, annotations ...map[string]string) (err error)

type ReqSetHost

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

func NewReqSetHost

func NewReqSetHost(n string, r *rules.List) *ReqSetHost

func (*ReqSetHost) GetName

func (a *ReqSetHost) GetName() string

func (*ReqSetHost) Process

func (a *ReqSetHost) Process(k store.K8s, annotations ...map[string]string) (err error)

type ResSetCORS

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

func NewResSetCORS

func NewResSetCORS(r *rules.List) *ResSetCORS

func (*ResSetCORS) NewAnnotation

func (p *ResSetCORS) NewAnnotation(n string) ResSetCORSAnn

type ResSetCORSAnn

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

func (ResSetCORSAnn) GetName

func (a ResSetCORSAnn) GetName() string

func (ResSetCORSAnn) Process

func (a ResSetCORSAnn) Process(k store.K8s, annotations ...map[string]string) (err error)

type SetHdr

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

func NewReqSetHdr

func NewReqSetHdr(n string, r *rules.List) *SetHdr

func NewResSetHdr

func NewResSetHdr(n string, r *rules.List) *SetHdr

func (*SetHdr) GetName

func (a *SetHdr) GetName() string

func (*SetHdr) Process

func (a *SetHdr) Process(k store.K8s, annotations ...map[string]string) (err error)

type SrcIPHdr

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

func NewSrcIPHdr

func NewSrcIPHdr(n string, r *rules.List) *SrcIPHdr

func (*SrcIPHdr) GetName

func (a *SrcIPHdr) GetName() string

func (*SrcIPHdr) Process

func (a *SrcIPHdr) Process(k store.K8s, annotations ...map[string]string) (err error)

Jump to

Keyboard shortcuts

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