source

package
v0.2.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Register

func Register(name string, source Source)

Register registers a Source under a given name.

Types

type Source

type Source interface {
	Endpoints() ([]*endpoint.Endpoint, error)
}

Source defines the interface Endpoint sources should implement.

func Lookup

func Lookup(name string) Source

Lookup returns a Source by the given name.

func LookupMultiple

func LookupMultiple(names ...string) (sources []Source)

LookupMultiple returns multiple Sources given multiple names.

func NewIngressSource

func NewIngressSource(client kubernetes.Interface, namespace string) Source

NewIngressSource creates a new ingressSource with the given client and namespace scope.

func NewMockSource

func NewMockSource(endpoints []*endpoint.Endpoint) Source

NewMockSource creates a new mockSource returning the given endpoints.

func NewMultiSource

func NewMultiSource(children ...Source) Source

NewMultiSource creates a new multiSource.

func NewServiceSource

func NewServiceSource(client kubernetes.Interface, namespace string) Source

NewServiceSource creates a new serviceSource with the given client and namespace scope.

Jump to

Keyboard shortcuts

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