kubernetes

package
v0.0.0-...-46d7da7 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	Config *rest.Config
	*rest.RESTClient
}

Client is a helper wrapper around the Kube RESTClient for istioctl -> Pilot/Envoy/Mesh related things

func NewClient

func NewClient(kubeconfig, configContext string) (*Client, error)

NewClient is the contructor for the client wrapper

func (*Client) AllPilotsDiscoveryDo

func (client *Client) AllPilotsDiscoveryDo(pilotNamespace, method, path string, body []byte) (map[string][]byte, error)

AllPilotsDiscoveryDo makes an http request to each Pilot discovery instance

func (*Client) EnvoyDo

func (client *Client) EnvoyDo(podName, podNamespace, method, path string, body []byte) ([]byte, error)

EnvoyDo makes an http request to the Envoy in the specified pod

func (*Client) GetPilotAgentContainer

func (client *Client) GetPilotAgentContainer(podName, podNamespace string) (string, error)

GetPilotAgentContainer retrieves the pilot-agent container name for the specified pod

func (*Client) GetPilotPods

func (client *Client) GetPilotPods(namespace string) ([]v1.Pod, error)

GetPilotPods retrieves the pod objects for all known pilots

func (*Client) PilotDiscoveryDo

func (client *Client) PilotDiscoveryDo(pilotNamespace, method, path string, body []byte) ([]byte, error)

PilotDiscoveryDo makes an http request to a single Pilot discovery instance

func (*Client) PodExec

func (client *Client) PodExec(podName, podNamespace, container string, command []string) (*bytes.Buffer, *bytes.Buffer, error)

PodExec takes a command and the pod data to run the command in the specified pod

Jump to

Keyboard shortcuts

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