kubernetes

package
v0.0.0-...-cefcf51 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2018 License: Apache-2.0 Imports: 23 Imported by: 2

Documentation

Index

Constants

View Source
const (
	// define Upstream type name
	UpstreamTypeKube = "kubernetes"
)

Variables

This section is empty.

Functions

func EncodeUpstreamSpec

func EncodeUpstreamSpec(spec UpstreamSpec) *types.Struct

func NewEndpointDiscovery

func NewEndpointDiscovery(masterUrl, kubeconfigPath string, resyncDuration time.Duration) (endpointdiscovery.Interface, error)

Types

type Plugin

type Plugin struct{}

func (*Plugin) GetDependencies

func (p *Plugin) GetDependencies(_ *v1.Config) *plugin.Dependencies

func (*Plugin) ProcessUpstream

func (p *Plugin) ProcessUpstream(_ *plugin.UpstreamPluginParams, in *v1.Upstream, out *envoyapi.Cluster) error

type UpstreamSpec

type UpstreamSpec struct {
	ServiceName      string            `json:"service_name"`
	ServiceNamespace string            `json:"service_namespace"`
	ServicePort      int32             `json:"service_port,omitempty"`
	Labels           map[string]string `json:"labels,omitempty"`
}

func DecodeUpstreamSpec

func DecodeUpstreamSpec(generic v1.UpstreamSpec) (*UpstreamSpec, error)

Jump to

Keyboard shortcuts

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