kubeexec

package
v3.1.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2016 License: Apache-2.0 Imports: 17 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"`
	Token     string `json:"token"`
	Namespace string `json:"namespace"`
	// Use Secrets to get the Bearerkey
	UseSecrets bool `json:"use_secrets"`

	TokenFile     string `json:"token_file"`
	NamespaceFile string `json:"namespace_file"`

	// 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, 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

Jump to

Keyboard shortcuts

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