Documentation
¶
Index ¶
- func GetClientConfig() *rest.Config
- func GetPodContainerLogs(ctx context.Context, namespace string, podName string, containerName string, ...) (string, error)
- func InitializeOperatorCoreClientSet()
- func RunCommandInPod(command, containerName, podName, namespace string, stdin io.Reader) (string, string, error)
- func RunCommandInPodWithContextAndTimeout(ctx context.Context, timeout time.Duration, ...) (string, string, error)
- func RunCommandInPodWithOptions(options RunCommandInPodOptions) (string, string, error)
- func RunCommandInPodWithTimeout(timeout time.Duration, command, containerName, podName, namespace string, ...) (string, string, error)
- type RunCommandInPodOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetClientConfig ¶
func GetPodContainerLogs ¶
func InitializeOperatorCoreClientSet ¶
func InitializeOperatorCoreClientSet()
func RunCommandInPod ¶
func RunCommandInPod(command, containerName, podName, namespace string, stdin io.Reader) (string, string, error)
RunCommandInPod runs a command in a container with default 10 sec timeout
func RunCommandInPodWithOptions ¶ added in v0.1.7
func RunCommandInPodWithOptions(options RunCommandInPodOptions) (string, string, error)
RunCommandInPodWithOptions returns stdout, stderr, err after running a command
Types ¶
type RunCommandInPodOptions ¶ added in v0.1.7
type RunCommandInPodOptions struct {
// Background context will be used if not set
Context context.Context
// Default value is 10 seconds if not set
Timeout time.Duration
// Command to be run
Command string
PodName string
PodNamespace string
ContainerName string
Stdin io.Reader
Stderr io.Writer
Stdout io.Writer
}
Click to show internal directories.
Click to hide internal directories.