pod

package
v0.24.0 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2025 License: Apache-2.0 Imports: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddFlags

func AddFlags(fs *pflag.FlagSet, podOptions *Options, isRestore bool)

func CreateSnapshotPod

func CreateSnapshotPod(
	ctx context.Context,
	kubeClient *kubernetes.Clientset,
	command []string,
	vCluster *find.VCluster,
	podOptions *Options,
	snapshotOptions *snapshot.Options,
	log log.Logger,
) (*corev1.Pod, error)

func RunSnapshotPod

func RunSnapshotPod(
	ctx context.Context,
	kubeConfig *rest.Config,
	kubeClient *kubernetes.Clientset,
	command []string,
	vCluster *find.VCluster,
	podOptions *Options,
	snapshotOptions *snapshot.Options,
	log log.Logger,
) error

func SnapshotExec

func SnapshotExec(
	ctx context.Context,
	kubeConfig *rest.Config,
	command []string,
	vCluster *find.VCluster,
	podOptions *Options,
	snapshotOptions *snapshot.Options,
) error

Types

type Options

type Options struct {
	Exec             bool
	Mounts           []string
	Env              []string
	Image            string
	ServiceAccount   string
	ImagePullSecrets []string
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳