Documentation ¶
Index ¶
- func GetSnapshotContentNameForVolumeGroupSnapshotContent(groupSnapshotContentUUID, pvUUID string) string
- func GetSnapshotNameForVolumeGroupSnapshotContent(groupSnapshotContentUUID, pvUUID string) string
- func NewCSISnapshotSideCarController(clientset clientset.Interface, client kubernetes.Interface, driverName string, ...) *csiSnapshotSideCarController
- type Handler
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetSnapshotContentNameForVolumeGroupSnapshotContent ¶
func GetSnapshotContentNameForVolumeGroupSnapshotContent(groupSnapshotContentUUID, pvUUID string) string
GetSnapshotContentNameForVolumeGroupSnapshotContent returns a unique content name for the passed in VolumeGroupSnapshotContent.
func GetSnapshotNameForVolumeGroupSnapshotContent ¶
GetSnapshotNameForVolumeGroupSnapshotContent returns a unique snapshot name for a VolumeGroupSnapshotContent.
func NewCSISnapshotSideCarController ¶
func NewCSISnapshotSideCarController( clientset clientset.Interface, client kubernetes.Interface, driverName string, volumeSnapshotContentInformer snapshotinformers.VolumeSnapshotContentInformer, volumeSnapshotClassInformer snapshotinformers.VolumeSnapshotClassInformer, snapshotter snapshotter.Snapshotter, groupSnapshotter group_snapshotter.GroupSnapshotter, timeout time.Duration, resyncPeriod time.Duration, snapshotNamePrefix string, snapshotNameUUIDLength int, groupSnapshotNamePrefix string, groupSnapshotNameUUIDLength int, extraCreateMetadata bool, contentRateLimiter workqueue.RateLimiter, enableVolumeGroupSnapshots bool, volumeGroupSnapshotContentInformer groupsnapshotinformers.VolumeGroupSnapshotContentInformer, volumeGroupSnapshotClassInformer groupsnapshotinformers.VolumeGroupSnapshotClassInformer, groupSnapshotContentRateLimiter workqueue.RateLimiter, ) *csiSnapshotSideCarController
NewCSISnapshotSideCarController returns a new *csiSnapshotSideCarController
Types ¶
type Handler ¶
type Handler interface { CreateSnapshot(content *crdv1.VolumeSnapshotContent, parameters map[string]string, snapshotterCredentials map[string]string) (string, string, time.Time, int64, bool, error) DeleteSnapshot(content *crdv1.VolumeSnapshotContent, snapshotterCredentials map[string]string) error GetSnapshotStatus(content *crdv1.VolumeSnapshotContent, snapshotterListCredentials map[string]string) (bool, time.Time, int64, string, error) CreateGroupSnapshot(content *crdv1alpha1.VolumeGroupSnapshotContent, parameters map[string]string, snapshotterCredentials map[string]string) (string, string, []*csi.Snapshot, time.Time, bool, error) GetGroupSnapshotStatus(groupSnapshotContent *crdv1alpha1.VolumeGroupSnapshotContent, snapshotIDs []string, snapshotterListCredentials map[string]string) (bool, time.Time, error) DeleteGroupSnapshot(content *crdv1alpha1.VolumeGroupSnapshotContent, SnapshotID []string, snapshotterCredentials map[string]string) error }
Handler is responsible for handling VolumeSnapshot events from informer.
func NewCSIHandler ¶
func NewCSIHandler( snapshotter snapshotter.Snapshotter, groupSnapshotter group_snapshotter.GroupSnapshotter, timeout time.Duration, snapshotNamePrefix string, snapshotNameUUIDLength int, groupSnapshotNamePrefix string, groupSnapshotNameUUIDLength int, ) Handler
NewCSIHandler returns a handler which includes the csi connection and Snapshot name details
Click to show internal directories.
Click to hide internal directories.