source

package
v0.4.0-alpha.0 Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2017 License: Apache-2.0 Imports: 13 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) ([]Source, error)

LookupMultiple returns multiple Sources given multiple names.

func NewDedupSource added in v0.3.0

func NewDedupSource(source Source) Source

NewDedupSource creates a new dedupSource wrapping the provided Source.

func NewFakeSource added in v0.4.0

func NewFakeSource(dnsName string) (Source, error)

NewFakeSource creates a new fakeSource with the given client and namespace scope.

func NewIngressSource

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

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

func NewMultiSource

func NewMultiSource(children []Source) Source

NewMultiSource creates a new multiSource.

func NewServiceSource

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

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