csiclient

package
v1.29.0 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewConnection

func NewConnection(endpoint string) (*grpc.ClientConn, error)

func NewConnectionWithContext

func NewConnectionWithContext(ctx context.Context, endpoint string) (*grpc.ClientConn, error)

Types

type Builder

type Builder interface {
	NewConnection(endpoint string) (*grpc.ClientConn, error)
	NewConnectionWithContext(ctx context.Context, endpoint string) (*grpc.ClientConn, error)

	NewNodeServiceClient(conn *grpc.ClientConn) Node
	NewIdentityServiceClient(conn *grpc.ClientConn) Identity
}

type ClientBuilder

type ClientBuilder struct{}

func (ClientBuilder) NewConnection

func (b ClientBuilder) NewConnection(endpoint string) (*grpc.ClientConn, error)

func (ClientBuilder) NewConnectionWithContext

func (b ClientBuilder) NewConnectionWithContext(ctx context.Context, endpoint string) (*grpc.ClientConn, error)

func (ClientBuilder) NewIdentityServiceClient

func (b ClientBuilder) NewIdentityServiceClient(conn *grpc.ClientConn) Identity

func (ClientBuilder) NewNodeServiceClient

func (b ClientBuilder) NewNodeServiceClient(conn *grpc.ClientConn) Node

type Identity

type Identity interface {
	GetPluginInfo(ctx context.Context) (*csi.GetPluginInfoResponse, error)
	Probe(ctx context.Context, req *csi.ProbeRequest) (*csi.ProbeResponse, error)
	ProbeForever(conn *grpc.ClientConn, singleProbeTimeout time.Duration) error
}

type IdentitySvcClient

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

func NewIdentitySvcClient

func NewIdentitySvcClient(conn *grpc.ClientConn) *IdentitySvcClient

func (IdentitySvcClient) GetPluginInfo

func (IdentitySvcClient) Probe added in v1.18.0

func (IdentitySvcClient) ProbeForever

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

type NodeSvcClient

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

func NewNodeSvcClient

func NewNodeSvcClient(conn *grpc.ClientConn) *NodeSvcClient

func (*NodeSvcClient) GetCapabilities

func (c *NodeSvcClient) GetCapabilities(ctx context.Context) (*csi.NodeGetCapabilitiesResponse, error)

func (*NodeSvcClient) GetVolumeStats added in v1.23.0

func (*NodeSvcClient) PublishVolume

func (*NodeSvcClient) StageVolume

func (*NodeSvcClient) UnpublishVolume

func (*NodeSvcClient) UnstageVolume

Jump to

Keyboard shortcuts

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