Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrTimeout is returned by Wait if no update is received in the given time. ErrTimeout = errors.New("timeout") )
Functions ¶
This section is empty.
Types ¶
type ADSC ¶
type ADSC struct { InitialLoad time.Duration TCPListeners map[string]*xdsapi.Listener HTTPListeners map[string]*xdsapi.Listener Clusters map[string]*xdsapi.Cluster Routes map[string]*xdsapi.RouteConfiguration EDS map[string]*xdsapi.ClusterLoadAssignment // Metadata has the node metadata to send to pilot. // If nil, the defaults will be used. Metadata map[string]string // Updates includes the type of the last update received from the server. Updates chan string VersionInfo map[string]string // contains filtered or unexported fields }
ADSC implements a basic client for ADS, for use in stress tests and tools or libraries that need to connect to Istio pilot or other ADS servers.
func Dial ¶
Dial connects to a ADS server, with optional MTLS authentication if a cert dir is specified.
func (*ADSC) EndpointsJSON ¶
EndpointsJSON returns the endpoints, formatted as JSON, for debugging.
func (*ADSC) Wait ¶
Wait for an update of the specified type. If type is empty, wait for next update.
type Config ¶
type Config struct { // Namespace defaults to 'default' Namespace string // Workload defaults to 'test' Workload string // Meta includes additional metadata for the node Meta map[string]string // NodeType defaults to sidecar. "ingress" and "router" are also supported. NodeType string IP string }
Config for the ADS connection.
Click to show internal directories.
Click to hide internal directories.