Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsFuzzySelector ¶
IsFuzzySelector checks if filter is fuzzy or not.
func IsInverseSelector ¶
IsInverseSelector checks if inverse char has been provided.
Types ¶
type Controller ¶
type Controller interface { // Pod returns a pod instance matching the selector. Pod(path string) (string, error) }
Controller represents a pod controller.
type Describer ¶
type Describer interface { // Describe describes a resource. Describe(path string) (string, error) // ToYAML dumps a resource to YAML. ToYAML(path string, showManaged bool) (string, error) }
Describer describes a resource.
type DrainOptions ¶
type DrainOptions struct { GracePeriodSeconds int Timeout time.Duration IgnoreAllDaemonSets bool DeleteEmptyDirData bool Force bool }
DrainOptions tracks drain attributes.
type NodeMaintainer ¶
type NodeMaintainer interface { // ToggleCordon toggles cordon/uncordon a node. ToggleCordon(path string, cordon bool) error // Drain drains the given node. Drain(path string, opts DrainOptions, w io.Writer) error }
NodeMaintainer performs node maintenance operations.
type Nuker ¶
type Nuker interface { // Delete removes a resource from the api server. Delete(path string, cascade, force bool) error }
Nuker represents a resource deleter.
type Restartable ¶
type Restartable interface { // Restart performs a rollout restart. Restart(ctx context.Context, path string) error }
Restartable represents a restartable resource.
type Scalable ¶
type Scalable interface { // Scale scales a resource up or down. Scale(ctx context.Context, path string, replicas int32) error }
Scalable represents resources that can scale.
type Switchable ¶
Switchable represents a switchable resource.
Click to show internal directories.
Click to hide internal directories.