types

package
v0.0.0-...-b39fe23 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 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.
	PVCMap         map[string]VolumePath
	Namespace      string
	RunAsUser      int64
	ContainerImage string
	Command        []string
	ContainerArgs  []string
}

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 FetchSnapshotArgs

type FetchSnapshotArgs struct {
	Namespace    string
	SnapshotName string
}

func (*FetchSnapshotArgs) Validate

func (c *FetchSnapshotArgs) Validate() error

type FileRestoreArgs

type FileRestoreArgs struct {
	FromSnapshotName string
	FromPVCName      string
	ToPVCName        string
	Namespace        string
	RunAsUser        int64
	LocalPort        int
	Path             string
}

func (*FileRestoreArgs) Validate

func (f *FileRestoreArgs) Validate() error

type PVCBrowseArgs

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

func (*PVCBrowseArgs) Validate

func (p *PVCBrowseArgs) Validate() error

type PortForwardAPodRequest

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{}
}

type SnapshotBrowseArgs

type SnapshotBrowseArgs struct {
	SnapshotName string
	Namespace    string
	RunAsUser    int64
	LocalPort    int
	ShowTree     bool
}

func (*SnapshotBrowseArgs) Validate

func (p *SnapshotBrowseArgs) Validate() error

type VolumePath

type VolumePath struct {
	MountPath  string // Only one of MountPath or
	DevicePath string // DevicePath should be specified.
}

Jump to

Keyboard shortcuts

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