Documentation ¶
Index ¶
- func GetAnnotation(t metav1.ObjectMeta, annotation Annotation) string
- func GetAnnotationBool(t metav1.ObjectMeta, annotation Annotation, def bool) bool
- func GetAnnotationInt(t metav1.ObjectMeta, annotation Annotation, def int) int
- func GetAnnotationList(t metav1.ObjectMeta, annotation Annotation, def []string) (res []string)
- func GetAnnotationOrDefault(t metav1.ObjectMeta, annotation Annotation, def string) string
- func HasAnnotation(t metav1.ObjectMeta, annotation Annotation) bool
- type Annotation
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetAnnotation ¶
func GetAnnotation(t metav1.ObjectMeta, annotation Annotation) string
GetAnnotation returns the value of the given annotation on the given object
func GetAnnotationBool ¶
func GetAnnotationBool(t metav1.ObjectMeta, annotation Annotation, def bool) bool
GetAnnotationBool returns whether the annotation has the string value "true" or if the annotation does not exist, the specified default
func GetAnnotationInt ¶
func GetAnnotationInt(t metav1.ObjectMeta, annotation Annotation, def int) int
GetAnnotationInt returns the int value of the specified annotation or if the annotation does not exist, the specified default
func GetAnnotationList ¶
func GetAnnotationList(t metav1.ObjectMeta, annotation Annotation, def []string) (res []string)
GetAnnotationList returns the list of values specified in the annotation or if the annotation does not exist, the specified default
func GetAnnotationOrDefault ¶
func GetAnnotationOrDefault(t metav1.ObjectMeta, annotation Annotation, def string) string
GetAnnotation returns the value of the given annotation on the given object
func HasAnnotation ¶
func HasAnnotation(t metav1.ObjectMeta, annotation Annotation) bool
HasAnnotation checks if the given annotation exists on the given object
Types ¶
type Annotation ¶
type Annotation string
const ( AnnotationBackendProtocol Annotation = "backend-protocol" AnnotationInsecureSkipVerify Annotation = "insecure-skip-verify" AnnotationKeepAlive Annotation = "keepalive" AnnotationProxyHTTPVersion Annotation = "proxy-http-version" AnnotationProxyNextUpstreamTimeout Annotation = "proxy-next-upstream-timeout" AnnotationRewriteTarget Annotation = "rewrite-target" AnnotationSSLRedirect Annotation = "ssl-redirect" AnnotationTrustedProxies Annotation = "trusted-proxies" // Basic Auth annotations AnnotationBasicUsername Annotation = "basic-auth-username" AnnotationBasicPassword Annotation = "basic-auth-password" AnnotationBasicSalt Annotation = "basic-auth-salt" )
Click to show internal directories.
Click to hide internal directories.