annotations

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2018 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

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
	Listener     *listener.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