rpc

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Dec 24, 2019 License: Apache-2.0 Imports: 8 Imported by: 78

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetDriverName

func GetDriverName(ctx context.Context, conn *grpc.ClientConn) (string, error)

GetDriverName returns name of CSI driver.

func Probe

func Probe(ctx context.Context, conn *grpc.ClientConn) (ready bool, err error)

Probe calls driver Probe() just once and returns its result without any processing.

func ProbeForever

func ProbeForever(conn *grpc.ClientConn, singleProbeTimeout time.Duration) error

ProbeForever calls Probe() of a CSI driver and waits until the driver becomes ready. Any error other than timeout is returned.

Types

type ControllerCapabilitySet

type ControllerCapabilitySet map[csi.ControllerServiceCapability_RPC_Type]bool

ControllerCapabilitySet is set of CSI controller capabilities. Only supported capabilities are in the map.

func GetControllerCapabilities

func GetControllerCapabilities(ctx context.Context, conn *grpc.ClientConn) (ControllerCapabilitySet, error)

GetControllerCapabilities returns set of supported controller capabilities of CSI driver.

type PluginCapabilitySet

type PluginCapabilitySet map[csi.PluginCapability_Service_Type]bool

PluginCapabilitySet is set of CSI plugin capabilities. Only supported capabilities are in the map.

func GetPluginCapabilities

func GetPluginCapabilities(ctx context.Context, conn *grpc.ClientConn) (PluginCapabilitySet, error)

GetPluginCapabilities returns set of supported capabilities of CSI driver.

Jump to

Keyboard shortcuts

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