pilot

package
v0.0.0-...-1a56975 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2019 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	fmt.Stringer
	// If set then pilot takes a dependency on the referenced Galley instance
	Galley galley.Instance

	// The MeshConfig to be used for Pilot in native environment. In Kube environment this can be
	// configured with Helm.
	MeshConfig *meshConfig.MeshConfig
}

Structured config for the Pilot component

type Instance

type Instance interface {
	resource.Resource

	CallDiscovery(req *xdsapi.DiscoveryRequest) (*xdsapi.DiscoveryResponse, error)
	StartDiscovery(req *xdsapi.DiscoveryRequest) error
	WatchDiscovery(duration time.Duration, accept func(*xdsapi.DiscoveryResponse) (bool, error)) error
}

Instance of Pilot

func New

func New(ctx resource.Context, cfg Config) (i Instance, err error)

New returns a new instance of echo.

func NewOrFail

func NewOrFail(t *testing.T, c resource.Context, config Config) Instance

NewOrFail returns a new Pilot instance, or fails test.

type Native

type Native interface {
	Instance
	GetDiscoveryAddress() *net.TCPAddr
}

Native is the interface for an native pilot server.

Jump to

Keyboard shortcuts

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