multixds

package
v0.0.0-...-e81a5ea Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2025 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultOptions = Options{
	MessageWriter: os.Stdout,
}
View Source
var GetXdsResponse = xds.GetXdsResponse

Functions

func AllRequestAndProcessXds

func AllRequestAndProcessXds(dr *discovery.DiscoveryRequest, centralOpts clioptions.CentralControlPlaneOptions, istioNamespace string,
	ns string, serviceAccount string, kubeClient kube.CLIClient, options Options,
) (map[string]*discovery.DiscoveryResponse, error)

AllRequestAndProcessXds returns all XDS responses from 1 central or 1..N K8s cluster-based XDS servers nolint: lll

func CpInfo

CpInfo returns the Istio control plane info from JSON-encoded XDS ControlPlane Identifier

func FirstRequestAndProcessXds

func FirstRequestAndProcessXds(dr *discovery.DiscoveryRequest, centralOpts clioptions.CentralControlPlaneOptions, istioNamespace string,
	ns string, serviceAccount string, kubeClient kube.CLIClient, options Options,
) (map[string]*discovery.DiscoveryResponse, error)

FirstRequestAndProcessXds returns all XDS responses from 1 central or 1..N K8s cluster-based XDS servers, stopping after the first response that returns any resources. nolint: lll

func MultiRequestAndProcessXds

func MultiRequestAndProcessXds(all bool, dr *discovery.DiscoveryRequest, centralOpts clioptions.CentralControlPlaneOptions, istioNamespace string,
	ns string, serviceAccount string, kubeClient kube.CLIClient, options Options,
) (map[string]*discovery.DiscoveryResponse, error)

nolint: lll

func RequestAndProcessXds

func RequestAndProcessXds(dr *discovery.DiscoveryRequest, centralOpts clioptions.CentralControlPlaneOptions, istioNamespace string, kubeClient kube.CLIClient) (*discovery.DiscoveryResponse, error)

RequestAndProcessXds merges XDS responses from 1 central or 1..N K8s cluster-based XDS servers Deprecated This method makes multiple responses appear to come from a single control plane; consider using AllRequestAndProcessXds or FirstRequestAndProcessXds nolint: lll

Types

type ControlPlaneNotFoundError

type ControlPlaneNotFoundError struct {
	Namespace string
}

func (ControlPlaneNotFoundError) Error

type Options

type Options struct {
	// MessageWriter is a writer for displaying messages to users.
	MessageWriter io.Writer
}

Jump to

Keyboard shortcuts

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