Documentation
¶
Index ¶
- type GCS
- func (gcs *GCS) CreateSnapshot(ctx context.Context, name string, vs *snapshotv1.VolumeSnapshot) error
- func (gcs *GCS) DeleteSnapshot(ctx context.Context, name string) error
- func (gcs *GCS) GetSnapshotStatus(ctx context.Context, name string) (SnapshotStatus, error)
- func (gcs *GCS) ListSnapshots(ctx context.Context) ([]string, error)
- type SnapshotProvider
- type SnapshotStatus
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) GetSnapshotStatus ¶
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" )
Click to show internal directories.
Click to hide internal directories.