Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewCSISnapshotSideCarController ¶
func NewCSISnapshotSideCarController( clientset clientset.Interface, client kubernetes.Interface, driverName string, volumeSnapshotContentInformer storageinformers.VolumeSnapshotContentInformer, volumeSnapshotClassInformer storageinformers.VolumeSnapshotClassInformer, snapshotter snapshotter.Snapshotter, timeout time.Duration, resyncPeriod time.Duration, snapshotNamePrefix string, snapshotNameUUIDLength int, extraCreateMetadata bool, contentRateLimiter 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, error) }
Handler is responsible for handling VolumeSnapshot events from informer.
func NewCSIHandler ¶
func NewCSIHandler( snapshotter snapshotter.Snapshotter, timeout time.Duration, snapshotNamePrefix string, snapshotNameUUIDLength 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.