client

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2025 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GRPCClient

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

func NewGRPCClient

func NewGRPCClient(cfg *config.Config, addr string) (*GRPCClient, error)

func (*GRPCClient) Close

func (c *GRPCClient) Close() error

func (*GRPCClient) CreateVolume

func (c *GRPCClient) CreateVolume(ctx context.Context, volumeName string, parameters map[string]string) (*csi.CreateVolumeResponse, error)

func (*GRPCClient) DeleteVolume

func (c *GRPCClient) DeleteVolume(ctx context.Context, volumeID string) (*csi.DeleteVolumeResponse, error)

func (*GRPCClient) PublishStaticInlineVolume

func (c *GRPCClient) PublishStaticInlineVolume(ctx context.Context, volumeID, targetPath, reference string) (*csi.NodePublishVolumeResponse, error)

func (*GRPCClient) PublishVolume

func (c *GRPCClient) PublishVolume(ctx context.Context, volumeID, targetPath string) (*csi.NodePublishVolumeResponse, error)

func (*GRPCClient) UnpublishVolume

func (c *GRPCClient) UnpublishVolume(ctx context.Context, volumeID, targetPath string) (*csi.NodeUnpublishVolumeResponse, error)

type HTTPClient

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

func NewHTTPClient

func NewHTTPClient(addr string) (*HTTPClient, error)

func (*HTTPClient) CreateMount

func (client *HTTPClient) CreateMount(ctx context.Context, volumeName, mountID, reference string, checkDiskQuota bool) (*status.Status, error)

func (*HTTPClient) DeleteMount

func (client *HTTPClient) DeleteMount(ctx context.Context, volumeName, mountID string) error

func (*HTTPClient) GetMount

func (client *HTTPClient) GetMount(ctx context.Context, volumeName, mountID string) (*status.Status, error)

func (*HTTPClient) ListMounts

func (client *HTTPClient) ListMounts(ctx context.Context, volumeName string) ([]status.Status, error)

Jump to

Keyboard shortcuts

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