proxy

package
v0.0.0-...-2e893ec Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2017 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Endpoint

type Endpoint struct {
	IP   string
	Port int
}

Endpoint is an internal representation of k8s Endpoint.

type Service

type Service struct {
	ClusterIP string
	Port      int
	Protocol  string
}

Service is an internal representation of k8s Service.

type ServicePortName

type ServicePortName struct {
	types.NamespacedName
	Port string
}

ServicePortName is a combination of service.Namespace, service.Name and service.Ports[*].Name

func (ServicePortName) String

func (spn ServicePortName) String() string

type ServiceUnit

type ServiceUnit struct {
	// Name corresponds to ServicePortName. Uniquely identifies the ServiceUnit.
	Name string

	// Internal service info of this ServiceUnit, this translates into a real
	// frontend implementation of HAProxy.
	ServiceInfo Service

	// Endpoints are endpoints that back the service, this translates into a final
	// backend implementation of HAProxy.
	Endpoints []Endpoint
}

ServiceUnit is an encapsulation of a service, the endpoints that back that service. This is the data that drives the creation of HAProxy configuration file.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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