Documentation ¶
Index ¶
- func GetIngressAnnotation(resource interface{}) map[string]string
- func GetIngressName(resource interface{}) string
- func GetIngressNamespace(resource interface{}) string
- func GetRouteAnnotation(resource interface{}) map[string]string
- func GetRouteName(resource interface{}) string
- func GetRouteNamespace(resource interface{}) string
- type AnnotationFunc
- type NameFunc
- type NamespaceFunc
- type ResourceActionFuncs
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetIngressAnnotation ¶
GetIngressAnnotation returns the ingress annotations
func GetIngressName ¶
func GetIngressName(resource interface{}) string
GetIngressName returns the ingress name
func GetIngressNamespace ¶
func GetIngressNamespace(resource interface{}) string
GetIngressNamespace returns the ingress namespace
func GetRouteAnnotation ¶
GetRouteAnnotation returns the route annotations
func GetRouteName ¶
func GetRouteName(resource interface{}) string
GetRouteName returns the route name
func GetRouteNamespace ¶
func GetRouteNamespace(resource interface{}) string
GetRouteNamespace returns the route namespace
Types ¶
type AnnotationFunc ¶
AnnotationFunc is a generic function to return annotations for resource
type NameFunc ¶
type NameFunc func(interface{}) string
NameFunc is a generic function to return name of resource
type NamespaceFunc ¶
type NamespaceFunc func(interface{}) string
NamespaceFunc is a generic function to return namespace of resource
type ResourceActionFuncs ¶
type ResourceActionFuncs struct { AnnotationFunc AnnotationFunc NameFunc NameFunc NamespaceFunc NamespaceFunc }
ResourceActionFuncs provides generic functions to return name, namespace and annotations etc.
Click to show internal directories.
Click to hide internal directories.