Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type VolumeLockerProvider ¶
type VolumeLockerProvider interface { // GetLockWithID gets a lock for a volume with provided ID. If a lock // for the specified volume ID does not exist then a new lock is created // and returned. GetLockWithID(ctx context.Context, id string) (gosync.TryLocker, error) // GetLockWithName gets a lock for a volume with provided name. If a lock // for the specified volume name does not exist then a new lock is created // and returned. GetLockWithName(ctx context.Context, name string) (gosync.TryLocker, error) }
VolumeLockerProvider is able to provide gosync.TryLocker objects for volumes by ID and name.
Click to show internal directories.
Click to hide internal directories.