client

package
v0.7.1 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2018 License: Apache-2.0 Imports: 9 Imported by: 0

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

Jump to

Keyboard shortcuts

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