Documentation ¶
Index ¶
- Variables
- func GetAnnotationWithPrefix(suffix string) string
- func GetBoolAnnotation(name string, ing *extensions.Ingress) (bool, error)
- func GetIntAnnotation(name string, ing *extensions.Ingress) (int, error)
- func GetStringAnnotation(name string, ing *extensions.Ingress) (string, error)
- type IngressAnnotation
Constants ¶
This section is empty.
Variables ¶
View Source
var (
// AnnotationsPrefix defines the common prefix used in the nginx ingress controller
AnnotationsPrefix = "nginx.ingress.kubernetes.io"
)
Functions ¶
func GetAnnotationWithPrefix ¶
GetAnnotationWithPrefix returns the prefix of ingress annotations
func GetBoolAnnotation ¶
func GetBoolAnnotation(name string, ing *extensions.Ingress) (bool, error)
GetBoolAnnotation extracts a boolean from an Ingress annotation
func GetIntAnnotation ¶
func GetIntAnnotation(name string, ing *extensions.Ingress) (int, error)
GetIntAnnotation extracts an int from an Ingress annotation
func GetStringAnnotation ¶
func GetStringAnnotation(name string, ing *extensions.Ingress) (string, error)
GetStringAnnotation extracts a string from an Ingress annotation
Types ¶
type IngressAnnotation ¶
type IngressAnnotation interface {
Parse(ing *extensions.Ingress) (interface{}, error)
}
IngressAnnotation has a method to parse annotations located in Ingress
Click to show internal directories.
Click to hide internal directories.