capture

package
v1.0.0-rc2 Latest Latest
Warning

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

Go to latest
Published: Aug 6, 2025 License: MIT Imports: 41 Imported by: 1

Documentation

Index

Constants

View Source
const (
	DefaultDebug           bool          = false
	DefaultDuration        time.Duration = 1 * time.Minute
	DefaultHostPath        string        = "/mnt/retina/captures"
	DefaultIncludeMetadata bool          = true
	DefaultJobNumLimit     int           = 0
	DefaultMaxSize         int           = 100
	DefaultNodeSelectors   string        = "kubernetes.io/os=linux"
	DefaultNowait          bool          = true
	DefaultPacketSize      int           = 0
	DefaultS3Path          string        = "retina/captures"
	DefaultWaitPeriod      time.Duration = 1 * time.Minute
	DefaultWaitTimeout     time.Duration = 5 * time.Minute
)
View Source
const DefaultName = "retina-capture"
View Source
const (
	DefaultOutputPath = "./"
)

Variables

View Source
var (
	ErrNoPodFound                = errors.New("no pod found for job")
	ErrManyPodsFound             = errors.New("more than one pod found for job; expected exactly one")
	ErrCaptureContainerNotFound  = errors.New("capture container not found in pod")
	ErrFileNotAccessible         = errors.New("file does not exist or is not readable")
	ErrEmptyDownloadOutput       = errors.New("download command produced no output")
	ErrFailedToCreateDownloadPod = errors.New("failed to create download pod")
)

Functions

func GetClientset added in v1.0.0

func GetClientset() (*kubernetes.Clientset, error)

func NewCommand added in v1.0.0

func NewCommand(kubeClient kubernetes.Interface) *cobra.Command

func NewCreateSubCommand added in v1.0.0

func NewCreateSubCommand(kubeClient kubernetes.Interface) *cobra.Command

func NewDeleteSubCommand added in v1.0.0

func NewDeleteSubCommand(kubeClient kubernetes.Interface) *cobra.Command

func NewDownloadSubCommand added in v1.0.0

func NewDownloadSubCommand() *cobra.Command

func NewListSubCommand added in v1.0.0

func NewListSubCommand() *cobra.Command

Types

type Opts added in v1.0.0

type Opts struct {
	genericclioptions.ConfigFlags
	Name *string
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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