kubeexec

package
v2.1.0-dev+incompatible Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	KubeGlusterFSPodLabelKey = "glusterfs-node"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type KubeConfig

type KubeConfig struct {
	sshexec.CLICommandConfig
	Host      string `json:"host"`
	CertFile  string `json:"cert"`
	Insecure  bool   `json:"insecure"`
	User      string `json:"user"`
	Password  string `json:"password"`
	Namespace string `json:"namespace"`

	// Use POD name instead of using label
	// to access POD
	UsePodNames bool `json:"use_pod_names"`
}

type KubeExecutor

type KubeExecutor struct {
	// Embed all sshexecutor functions
	sshexec.SshExecutor
	// contains filtered or unexported fields
}

func NewKubeExecutor

func NewKubeExecutor(config *KubeConfig) (*KubeExecutor, error)

func (*KubeExecutor) ConnectAndExec

func (k *KubeExecutor) ConnectAndExec(host, namespace, resource string,
	commands []string,
	timeoutMinutes int) ([]string, error)

func (*KubeExecutor) RebalanceOnExpansion

func (k *KubeExecutor) RebalanceOnExpansion() bool

func (*KubeExecutor) RemoteCommandExecute

func (k *KubeExecutor) RemoteCommandExecute(host string,
	commands []string,
	timeoutMinutes int) ([]string, error)

func (*KubeExecutor) SnapShotLimit

func (k *KubeExecutor) SnapShotLimit() int

type KubernetesClient

type KubernetesClient interface {
}

type KubernetesRemoteCommand

type KubernetesRemoteCommand interface {
}

type KubernetesRemoteCommandStream

type KubernetesRemoteCommandStream interface {
}

Jump to

Keyboard shortcuts

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