serialvolume

package
v0.3.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 19, 2018 License: Apache-2.0 Imports: 11 Imported by: 0

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

func WithTimeout(t time.Duration) Option

WithTimeout is an Option that sets the timeout used by the interceptor.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL