Documentation ¶
Index ¶
- Constants
- Variables
- type Detective
- func (d *Detective) ExecWithOptions(options ExecOptions) (string, string, error)
- func (d *Detective) Kill()
- func (d *Detective) ListNodesWithPredicate(predicate func(node *v1.Node) bool) ([]*v1.Node, error)
- func (d *Detective) NodeIsSchedulabeleAndRunning(node *core.Node) bool
- func (d *Detective) Wait() error
- type ExecOptions
- type Options
- type PodTarget
- type ServiceTarget
Constants ¶
Variables ¶
View Source
var (
VERSION = "0.0.0-dev"
)
Functions ¶
This section is empty.
Types ¶
type Detective ¶
type Detective struct {
// contains filtered or unexported fields
}
func NewDetective ¶
func (*Detective) ExecWithOptions ¶
func (d *Detective) ExecWithOptions(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.
func (*Detective) ListNodesWithPredicate ¶
func (*Detective) NodeIsSchedulabeleAndRunning ¶
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 }
ExecOptions passed to ExecWithOptions
type ServiceTarget ¶
type ServiceTarget struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.