Documentation ¶
Index ¶
- Constants
- type AccessControl
- type HTTPSRedirect
- type HTTPSRedirectAnn
- type HostRedirect
- type HostRedirectAnn
- type ReqAuth
- type ReqAuthAnn
- type ReqCapture
- type ReqCaptureAnn
- type ReqPathRewrite
- type ReqRateLimit
- type ReqRateLimitAnn
- type ReqSetHost
- type ResSetCORS
- type ResSetCORSAnn
- type SetHdr
- type SrcIPHdr
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 NewDenyList ¶ added in v1.11.0
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
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
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
type ReqAuth ¶
type ReqAuth struct {
// contains filtered or unexported fields
}
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
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
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
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
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
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
Click to show internal directories.
Click to hide internal directories.