Documentation ¶
Index ¶
- func LoadInt64Annotation(annotation string, value *int64, annotations ...map[string]string) (bool, error)
- func LoadJSONAnnotation(annotation string, value interface{}, annotations ...map[string]string) (bool, error)
- func LoadStringAnnotation(annotation string, value *string, annotations ...map[string]string) bool
- func LoadStringSliceAnnotation(annotation string, value *[]string, annotations ...map[string]string) bool
- type Extractor
- type Ingress
- type Service
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LoadInt64Annotation ¶ added in v1.1.0
func LoadInt64Annotation(annotation string, value *int64, annotations ...map[string]string) (bool, error)
LoadInt64Annotation loads annotation into value of type int64 from list of annotations by priority.
func LoadJSONAnnotation ¶ added in v1.1.0
func LoadJSONAnnotation(annotation string, value interface{}, annotations ...map[string]string) (bool, error)
LoadInt64Annotation loads annotation into value of type JSON from list of annotations by priority.
func LoadStringAnnotation ¶ added in v1.1.0
LoadStringAnnotation loads annotation into value of type string from list of annotations by priority.
Types ¶
type Extractor ¶
type Extractor struct {
// contains filtered or unexported fields
}
Extractor defines the annotation parsers to be used in the extraction of annotations
func NewIngressAnnotationExtractor ¶
NewIngressAnnotationExtractor creates a new annotations extractor
func NewServiceAnnotationExtractor ¶
NewServiceAnnotationExtractor creates a new annotations extractor
func (Extractor) ExtractIngress ¶
func (e Extractor) ExtractIngress(ing *extensions.Ingress) *Ingress
ExtractIngress extracts the annotations from an Ingress
type Ingress ¶
type Ingress struct { // TODO: found out why the ObjectMeta is needed? metav1.ObjectMeta Action *action.Config HealthCheck *healthcheck.Config TargetGroup *targetgroup.Config LoadBalancer *loadbalancer.Config Tags *tags.Config Error error }
Ingress defines the valid annotations present in one AWS ALB Ingress rule
func NewIngressDummy ¶
func NewIngressDummy() *Ingress
Click to show internal directories.
Click to hide internal directories.