datasnapshot

package
v1.43.2 Latest Latest
Warning

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

Go to latest
Published: May 6, 2025 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GCS

type GCS struct {
	Client *kubernetes.Clientset
	Scheme *runtime.Scheme
	Owner  metav1.Object

	Config *appsv1.GcsExportConfig
	// contains filtered or unexported fields
}

func (*GCS) CreateSnapshot

func (gcs *GCS) CreateSnapshot(ctx context.Context, name string, vs *snapshotv1.VolumeSnapshot) error

func (*GCS) DeleteSnapshot

func (gcs *GCS) DeleteSnapshot(ctx context.Context, name string) error

func (*GCS) GetSnapshotStatus

func (gcs *GCS) GetSnapshotStatus(ctx context.Context, name string) (SnapshotStatus, error)

func (*GCS) ListSnapshots

func (gcs *GCS) ListSnapshots(ctx context.Context) ([]string, error)

type SnapshotProvider

type SnapshotProvider interface {
	CreateSnapshot(context.Context, string, *snapshotv1.VolumeSnapshot) error
	GetSnapshotStatus(context.Context, string) (SnapshotStatus, error)
	DeleteSnapshot(context.Context, string) error
	ListSnapshots(ctx context.Context) ([]string, error)
}

func NewGcsSnapshotProvider

func NewGcsSnapshotProvider(client *kubernetes.Clientset, scheme *runtime.Scheme, owner metav1.Object, priorityClass string, cfg *appsv1.GcsExportConfig) SnapshotProvider

type SnapshotStatus

type SnapshotStatus string
const (
	SnapshotSucceeded SnapshotStatus = "succeeded"
	SnapshotFailed    SnapshotStatus = "failed"
	SnapshotActive    SnapshotStatus = "active"
	SnapshotNotFound  SnapshotStatus = "notfound"
)

Jump to

Keyboard shortcuts

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