rpc

package
v0.18.0 Latest Latest
Warning

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

Go to latest
Published: May 10, 2024 License: Apache-2.0 Imports: 8 Imported by: 54

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(ctx context.Context, 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 GroupControllerCapabilitySet added in v0.14.0

type GroupControllerCapabilitySet map[csi.GroupControllerServiceCapability_RPC_Type]bool

GroupControllerCapabilitySet is set of CSI groupcontroller capabilities. Only supported capabilities are in the map.

func GetGroupControllerCapabilities added in v0.14.0

func GetGroupControllerCapabilities(ctx context.Context, conn *grpc.ClientConn) (GroupControllerCapabilitySet, error)

GetGroupControllerCapabilities returns set of supported group 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