callbacks

package
v1.0.87 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2019 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetIngressAnnotation

func GetIngressAnnotation(resource interface{}) map[string]string

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

func GetRouteAnnotation(resource interface{}) map[string]string

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

type AnnotationFunc func(interface{}) map[string]string

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.

Jump to

Keyboard shortcuts

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