Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Snapshotter ¶
type Snapshotter interface { // CreateSnapshot creates a snapshot for a volume CreateSnapshot(ctx context.Context, snapshotName string, volumeHandle string, parameters map[string]string, snapshotterCredentials map[string]string) (driverName string, snapshotId string, timestamp time.Time, size int64, readyToUse bool, err error) // DeleteSnapshot deletes a snapshot from a volume DeleteSnapshot(ctx context.Context, snapshotID string, snapshotterCredentials map[string]string) (err error) // GetSnapshotStatus returns if a snapshot is ready to use, creation time, and restore size. GetSnapshotStatus(ctx context.Context, snapshotID string, snapshotterListCredentials map[string]string) (bool, time.Time, int64, string, error) }
Snapshotter implements CreateSnapshot/DeleteSnapshot operations against a remote CSI driver.
func NewSnapshotter ¶
func NewSnapshotter(conn *grpc.ClientConn) Snapshotter
Click to show internal directories.
Click to hide internal directories.