rpc

package
v4.6.0 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package rpc provides common rpc functions

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConnectProvider

func ConnectProvider() (*grpc.ClientConn, string, error)

ConnectProvider connect provider

func GetProviderName

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

GetProviderName returns name of DR-CSI driver.

Types

type PluginCapabilitySet

type PluginCapabilitySet map[drcsi.ProviderCapability_Service_Type]bool

PluginCapabilitySet is set of DR-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 DR-CSI driver.

Jump to

Keyboard shortcuts

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