detective

package
v0.0.0-...-da7206f Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2022 License: Apache-2.0 Imports: 30 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PodStartTimeout         = 1 * time.Minute
	WaitForEndpointInterval = 5 * time.Second
	WaitForEndpointTimeout  = 1 * time.Minute
	InformerResyncPeriod    = 1 * time.Minute

	PodHttpPort     = 9376
	ServiceHttpPort = 9377
)

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 NewDetective(opts Options) *Detective

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) Kill

func (d *Detective) Kill()

func (*Detective) ListNodesWithPredicate

func (d *Detective) ListNodesWithPredicate(predicate func(node *v1.Node) bool) ([]*v1.Node, error)

func (*Detective) NodeIsSchedulabeleAndRunning

func (d *Detective) NodeIsSchedulabeleAndRunning(node *core.Node) bool

func (*Detective) Wait

func (d *Detective) Wait() error

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 Options

type Options struct {
	WorkerCount     int
	ExternalCIDR    string
	NodeFilterRegex string
	TestImage       string
	TestPods        bool
	TestServices    bool
	TestServiceName bool
	TestExternalIPs bool
	RestConfig      *rest.Config
}

type PodTarget

type PodTarget struct {
	// contains filtered or unexported fields
}

type ServiceTarget

type ServiceTarget struct {
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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