pods

package
v0.0.0-...-ec8378c Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2024 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FindVeleroPods

func FindVeleroPods(client k8sclient.Client) ([]corev1.Pod, error)

Find all velero pods for the specified client.

func ListTemplatePods

func ListTemplatePods(client compat.Client, namespaces []string) ([]corev1.Pod, error)

ListTemplatePods - get list of pod templates, associated with a plan resource

Types

type PodCommand

type PodCommand struct {
	RestCfg *rest.Config
	Pod     *v1.Pod
	Args    []string
	In      io.Reader
	Out     bytes.Buffer
	Err     bytes.Buffer
}

Command executed on a Pod. RestCfg - The REST configuration for the cluster. Pod - The pod on which to execute the command. Args - The command (and args) to execute. In - An (optional) command input stream. Out - The command output stream set by `Run()`. Err - the command error stream set by `Run()`.

func (*PodCommand) Run

func (p *PodCommand) Run() error

Run the command.

Jump to

Keyboard shortcuts

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