translator

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2020 License: Apache-2.0 Imports: 31 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IngressBackendNodePortMap

type IngressBackendNodePortMap map[extsv1beta1.IngressBackend]int32

IngressBackendNodePortMap represents a mapping between Ingress backends and their target node ports.

type IngressTranslator

type IngressTranslator struct {
	// contains filtered or unexported fields
}

IngressTranslator is the base implementation of IngressTranslator.

func NewIngressTranslator

func NewIngressTranslator(ingress *extsv1beta1.Ingress, kubeCache dklbcache.KubernetesResourceCache, manager manager.EdgeLBManager, recorder record.EventRecorder) *IngressTranslator

NewIngressTranslator returns an ingress translator that can be used to translate the specified Ingress resource into an EdgeLB pool.

func (*IngressTranslator) Translate

func (it *IngressTranslator) Translate() (*corev1.LoadBalancerStatus, error)

Translate performs translation of the associated Ingress resource into an EdgeLB pool.

type OperationResult added in v1.0.1

type OperationResult string
const (
	OperationResultNone    OperationResult = "unchanged"
	OperationResultUpdated OperationResult = "updated"
	OperationResultDeleted OperationResult = "deleted"
)

type ServiceTranslator

type ServiceTranslator struct {
	// contains filtered or unexported fields
}

ServiceTranslator is the base implementation of ServiceTranslator.

func NewServiceTranslator

func NewServiceTranslator(service *corev1.Service, kubeCache dklbcache.KubernetesResourceCache, manager manager.EdgeLBManager) *ServiceTranslator

NewServiceTranslator returns a service translator that can be used to translate the specified Service resource into an EdgeLB pool.

func (*ServiceTranslator) Translate

func (st *ServiceTranslator) Translate() (*corev1.LoadBalancerStatus, error)

Translate performs translation of the associated Service resource into an EdgeLB pool.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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