istio: istio.io/istio/pkg/test/framework/components/pilot Index | Files

package pilot

import "istio.io/istio/pkg/test/framework/components/pilot"

Index

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 {
    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 Uses

type Instance interface {
    resource.Resource

    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 {
    Instance
    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 27 packages (graph) and is imported by 2 packages. Updated 2019-10-22. Refresh now. Tools for package owners.