istio: Index | Files

package pilot

import ""


Package Files

client.go kube.go native.go pilot.go

func NewDiscoveryRequest Uses

func NewDiscoveryRequest(nodeID string, typeURL TypeURL) *xdsapi.DiscoveryRequest

NewDiscoveryRequest is a utility method for creating a new request for the given node and type.

type Config Uses

type Config struct {
    // 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

    ServiceArgs bootstrap.ServiceArgs

    // Cluster to be used in a multicluster environment
    Cluster resource.Cluster

Structured config for the Pilot component

type Instance Uses

type Instance interface {

    CallDiscovery(req *xdsapi.DiscoveryRequest) (*xdsapi.DiscoveryResponse, error)
    CallDiscoveryOrFail(t test.Failer, req *xdsapi.DiscoveryRequest) *xdsapi.DiscoveryResponse

    StartDiscovery(req *xdsapi.DiscoveryRequest) error
    StartDiscoveryOrFail(t test.Failer, req *xdsapi.DiscoveryRequest)
    WatchDiscovery(duration time.Duration, accept func(*xdsapi.DiscoveryResponse) (bool, error)) error
    WatchDiscoveryOrFail(t test.Failer, duration time.Duration, accept func(*xdsapi.DiscoveryResponse) (bool, error))

Instance of Pilot

func New Uses

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

New returns a new instance of echo.

func NewOrFail Uses

func NewOrFail(t test.Failer, c resource.Context, config Config) Instance

NewOrFail returns a new Pilot instance, or fails test.

type Native Uses

type Native interface {
    GetDiscoveryAddress() *net.TCPAddr
    GetSecureDiscoveryAddress() *net.TCPAddr

Native is the interface for an native pilot server.

type TypeURL Uses

type TypeURL string

TypeURL for making discovery requests.

const (
    Listener              TypeURL = typeURLPrefix + "Listener"
    Cluster               TypeURL = typeURLPrefix + "Cluster"
    ClusterLoadAssignment TypeURL = typeURLPrefix + "ClusterLoadAssignment"
    Route                 TypeURL = typeURLPrefix + "RouteConfiguration"

Package pilot imports 29 packages (graph) and is imported by 7 packages. Updated 2020-04-06. Refresh now. Tools for package owners.