Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func New ¶
func New(opts ...Option) grpc.UnaryServerInterceptor
New returns a new server-side, gRPC interceptor that provides serial access to volume resources across the following RPCs:
- CreateVolume
- DeleteVolume
- ControllerPublishVolume
- ControllerUnpublishVolume
- NodePublishVolume
- NodeUnpublishVolume
Types ¶
type Option ¶
type Option func(*opts)
Option configures the interceptor.
func WithLockProvider ¶
func WithLockProvider(p mwtypes.VolumeLockerProvider) Option
WithLockProvider is an Option that sets the lock provider used by the interceptor.
func WithTimeout ¶
WithTimeout is an Option that sets the timeout used by the interceptor.
Click to show internal directories.
Click to hide internal directories.