attacher

package
v2.2.1 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2020 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Attacher

type Attacher interface {
	// Attach given volume to given node. Returns PublishVolumeInfo. Note that
	// "detached" is returned on error and means that the volume is for sure
	// detached from the node. "false" means that the volume may be either
	// detached, attaching or attached and caller should retry to get the final
	// status.
	Attach(ctx context.Context, volumeID string, readOnly bool, nodeID string, caps *csi.VolumeCapability, attributes, secrets map[string]string) (metadata map[string]string, detached bool, err error)

	// Detach given volume from given node.
	Detach(ctx context.Context, volumeID string, nodeID string, secrets map[string]string) error
}

Attacher implements attach/detach operations against a remote CSI driver.

func NewAttacher

func NewAttacher(conn *grpc.ClientConn) Attacher

NewAttacher provides a new Attacher object.

type CSIVolumeLister

type CSIVolumeLister struct {
	// contains filtered or unexported fields
}

func NewVolumeLister

func NewVolumeLister(conn *grpc.ClientConn) *CSIVolumeLister

NewVolumeLister provides a new VolumeLister object.

func (*CSIVolumeLister) ListVolumes

func (a *CSIVolumeLister) ListVolumes(ctx context.Context) (map[string]([]string), error)

Jump to

Keyboard shortcuts

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