annotations

package
v1.1.3 Latest Latest
Warning

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

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

Documentation

Index

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

func LoadStringAnnotation(annotation string, value *string, annotations ...map[string]string) bool

LoadStringAnnotation loads annotation into value of type string from list of annotations by priority.

func LoadStringSliceAnnotation added in v1.1.1

func LoadStringSliceAnnotation(annotation string, value *[]string, annotations ...map[string]string) bool

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

func NewIngressAnnotationExtractor(cfg resolver.Resolver) Extractor

NewIngressAnnotationExtractor creates a new annotations extractor

func NewServiceAnnotationExtractor

func NewServiceAnnotationExtractor(cfg resolver.Resolver) Extractor

NewServiceAnnotationExtractor creates a new annotations extractor

func (Extractor) ExtractIngress

func (e Extractor) ExtractIngress(ing *extensions.Ingress) *Ingress

ExtractIngress extracts the annotations from an Ingress

func (Extractor) ExtractService

func (e Extractor) ExtractService(svc *corev1.Service) *Service

ExtractService extracts the annotations from a Service

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

type Service

type Service Ingress

Service contains the same annotations as Ingress

func NewServiceDummy

func NewServiceDummy() *Service

func (*Service) Merge

func (s *Service) Merge(b *Ingress, cfg *config.Configuration) *Service

Merge build a new service annotation by merge in ingress annotation

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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