Documentation
¶
Index ¶
- type GRPCClient
- func (c *GRPCClient) Close() error
- func (c *GRPCClient) CreateVolume(ctx context.Context, volumeName string, parameters map[string]string) (*csi.CreateVolumeResponse, error)
- func (c *GRPCClient) DeleteVolume(ctx context.Context, volumeID string) (*csi.DeleteVolumeResponse, error)
- func (c *GRPCClient) PublishStaticInlineVolume(ctx context.Context, volumeID, targetPath, reference string) (*csi.NodePublishVolumeResponse, error)
- func (c *GRPCClient) PublishVolume(ctx context.Context, volumeID, targetPath string) (*csi.NodePublishVolumeResponse, error)
- func (c *GRPCClient) UnpublishVolume(ctx context.Context, volumeID, targetPath string) (*csi.NodeUnpublishVolumeResponse, error)
- type HTTPClient
- func (client *HTTPClient) CreateMount(ctx context.Context, volumeName, mountID, reference string, ...) (*status.Status, error)
- func (client *HTTPClient) DeleteMount(ctx context.Context, volumeName, mountID string) error
- func (client *HTTPClient) GetMount(ctx context.Context, volumeName, mountID string) (*status.Status, error)
- func (client *HTTPClient) ListMounts(ctx context.Context, volumeName string) ([]status.Status, error)
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 (*HTTPClient) DeleteMount ¶
func (client *HTTPClient) DeleteMount(ctx context.Context, volumeName, mountID string) error
func (*HTTPClient) ListMounts ¶
Click to show internal directories.
Click to hide internal directories.