Documentation
¶
Index ¶
- Constants
- Variables
- func GetClientset() (*kubernetes.Clientset, error)
- func NewCommand(kubeClient kubernetes.Interface) *cobra.Command
- func NewCreateSubCommand(kubeClient kubernetes.Interface) *cobra.Command
- func NewDeleteSubCommand(kubeClient kubernetes.Interface) *cobra.Command
- func NewDownloadSubCommand() *cobra.Command
- func NewListSubCommand() *cobra.Command
- type Opts
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 NewListSubCommand ¶ added in v1.0.0
Types ¶
type Opts ¶ added in v1.0.0
type Opts struct {
genericclioptions.ConfigFlags
Name *string
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.