Documentation
¶
Index ¶
Constants ¶
View Source
const ( InvalidScheduling schedulingType = iota GatewayNode NonGatewayNode CustomNode )
View Source
const ( HostNetworking networkingType = true PodNetworking networkingType = false )
Variables ¶
This section is empty.
Functions ¶
func ExecWithOptions ¶
func ExecWithOptions(config ExecConfig, options *ExecOptions) (string, string, error)
ExecWithOptions executes a command in the specified container, returning stdout, stderr and error. `options` allowed for additional parameters to be passed.
Types ¶
type Config ¶
type Config struct {
Name string
ClientSet kubernetes.Interface
Scheduling Scheduling
Namespace string
Command string
Timeout uint
ImageRepositoryInfo image.RepositoryInfo
}
type ExecConfig ¶
type ExecConfig struct {
RestConfig *rest.Config
ClientSet kubernetes.Interface
}
type ExecOptions ¶
type ExecOptions struct {
Command []string
Namespace string
PodName string
ContainerName string
Stdin io.Reader
CaptureStdout bool
CaptureStderr bool
// If false, whitespace in std{err,out} will be removed.
PreserveWhitespace bool
Quiet bool
}
func ExecOptionsFromPod ¶
func ExecOptionsFromPod(pod *v1.Pod) ExecOptions
type Scheduled ¶
func (*Scheduled) AwaitCompletion ¶
type Scheduling ¶
type Scheduling struct {
ScheduleOn schedulingType
NodeName string
Networking networkingType
}
Click to show internal directories.
Click to hide internal directories.