Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetRouteConfiguration

func GetRouteConfiguration(res *xdsapi.DiscoveryResponse) (*xdsapi.RouteConfiguration, error)

GetRouteConfiguration returns routeconfiguration from discovery response

Types

type CDS

type CDS interface{}

CDS defines cluster discovery service interface

type EDS

type EDS interface{}

EDS defines endpoint discovery service interface

type LDS

type LDS interface{}

LDS defines listener discovery service interface

type PilotClient

type PilotClient interface {
	RDS

	// TODO: add all xDS interface
	EDS
	CDS
	LDS
}

PilotClient is a interface for the client to communicate to pilot

func NewGRPCPilotClient

func NewGRPCPilotClient(cfg *PilotOptions) (PilotClient, error)

NewGRPCPilotClient returns new PilotClient from options

type PilotOptions

type PilotOptions struct {
	Endpoints []string
}

PilotOptions defines options to new client

type RDS

type RDS interface {
	GetAllRouteConfigurations() (*envoy_api.RouteConfiguration, error)
	GetRouteConfigurationsByPort(string) (*envoy_api.RouteConfiguration, error)
}

RDS defines route discovery service interface