types

package
v0.4.44 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CSISnapshotRestoreArgs

type CSISnapshotRestoreArgs struct {
	StorageClass          string
	VolumeSnapshotClass   string
	Namespace             string
	RunAsUser             int64
	ContainerImage        string
	Cleanup               bool
	SkipCFSCheck          bool
	K8sObjectReadyTimeout time.Duration
}

func (*CSISnapshotRestoreArgs) Validate

func (a *CSISnapshotRestoreArgs) Validate() error

type CSISnapshotRestoreResults

type CSISnapshotRestoreResults struct {
	OriginalPVC *v1.PersistentVolumeClaim
	OriginalPod *v1.Pod
	Snapshot    *snapv1.VolumeSnapshot
	ClonedPVC   *v1.PersistentVolumeClaim
	ClonedPod   *v1.Pod
}

type CreateFromSourceCheckArgs

type CreateFromSourceCheckArgs struct {
	VolumeSnapshotClass string
	SnapshotName        string
	Namespace           string
}

func (*CreateFromSourceCheckArgs) Validate

func (c *CreateFromSourceCheckArgs) Validate() error

type CreatePVCArgs

type CreatePVCArgs struct {
	Name         string // Only one of Name or
	GenerateName string // GenerateName should be specified.
	StorageClass string
	Namespace    string
	DataSource   *v1.TypedLocalObjectReference
	RestoreSize  *resource.Quantity
	VolumeMode   *v1.PersistentVolumeMode // missing implies v1.PersistentVolumeFilesystem
}

func (*CreatePVCArgs) Validate

func (c *CreatePVCArgs) Validate() error

type CreatePodArgs

type CreatePodArgs struct {
	Name           string // Only one of Name or
	GenerateName   string // GenerateName should be specified.
	PVCName        string
	Namespace      string
	RunAsUser      int64
	ContainerImage string
	Command        []string
	ContainerArgs  []string
	MountPath      string // Only one of MountPath or
	DevicePath     string // DevicePath should be specified.
}

func (*CreatePodArgs) Validate

func (c *CreatePodArgs) Validate() error

type CreateSnapshotArgs

type CreateSnapshotArgs struct {
	Namespace           string
	PVCName             string
	VolumeSnapshotClass string
	SnapshotName        string
}

func (*CreateSnapshotArgs) Validate

func (c *CreateSnapshotArgs) Validate() error

type PVCBrowseArgs added in v0.4.19

type PVCBrowseArgs struct {
	PVCName             string
	Namespace           string
	VolumeSnapshotClass string
	RunAsUser           int64
	LocalPort           int
}

func (*PVCBrowseArgs) Validate added in v0.4.19

func (p *PVCBrowseArgs) Validate() error

type PortForwardAPodRequest added in v0.4.19

type PortForwardAPodRequest struct {
	// RestConfig is the kubernetes config
	RestConfig *rest.Config
	// Pod is the selected pod for this port forwarding
	Pod *v1.Pod
	// LocalPort is the local port that will be selected to expose the PodPort
	LocalPort int
	// PodPort is the target port for the pod
	PodPort int
	// Streams configures where to write or read input from
	OutStream    bytes.Buffer
	ErrOutStream bytes.Buffer
	// StopCh is the channel used to manage the port forward lifecycle
	StopCh <-chan struct{}
	// ReadyCh communicates when the tunnel is ready to receive traffic
	ReadyCh chan struct{}
}

Jump to

Keyboard shortcuts

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