Documentation ¶
Index ¶
- Constants
- type KubeConfig
- type KubeExecutor
- func (k *KubeExecutor) ConnectAndExec(host, namespace, resource string, commands []string, timeoutMinutes int) ([]string, error)
- func (k *KubeExecutor) RebalanceOnExpansion() bool
- func (k *KubeExecutor) RemoteCommandExecute(host string, commands []string, timeoutMinutes int) ([]string, error)
- func (k *KubeExecutor) SnapShotLimit() int
- type KubernetesClient
- type KubernetesRemoteCommand
- type KubernetesRemoteCommandStream
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 (*KubeExecutor) RebalanceOnExpansion ¶
func (k *KubeExecutor) RebalanceOnExpansion() bool
func (*KubeExecutor) RemoteCommandExecute ¶
func (*KubeExecutor) SnapShotLimit ¶
func (k *KubeExecutor) SnapShotLimit() int
type KubernetesClient ¶
type KubernetesClient interface { }
type KubernetesRemoteCommand ¶
type KubernetesRemoteCommand interface { }
type KubernetesRemoteCommandStream ¶
type KubernetesRemoteCommandStream interface { }
Click to show internal directories.
Click to hide internal directories.