impl

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2025 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DismountVolumeRequest

type DismountVolumeRequest struct {
	VolumeId string
	Path     string
}

type DismountVolumeResponse

type DismountVolumeResponse struct{}

type FormatVolumeRequest

type FormatVolumeRequest struct {
	VolumeId string
}

type FormatVolumeResponse

type FormatVolumeResponse struct {
}

type GetClosestVolumeIDFromTargetPathRequest added in v1.1.0

type GetClosestVolumeIDFromTargetPathRequest struct {
	TargetPath string
}

type GetClosestVolumeIDFromTargetPathResponse added in v1.1.0

type GetClosestVolumeIDFromTargetPathResponse struct {
	VolumeId string
}

type GetDiskNumberFromVolumeIDRequest

type GetDiskNumberFromVolumeIDRequest struct {
	VolumeId string
}

type GetDiskNumberFromVolumeIDResponse

type GetDiskNumberFromVolumeIDResponse struct {
	DiskNumber uint32
}

type GetVolumeIDFromTargetPathRequest

type GetVolumeIDFromTargetPathRequest struct {
	TargetPath string
}

type GetVolumeIDFromTargetPathResponse

type GetVolumeIDFromTargetPathResponse struct {
	VolumeId string
}

type GetVolumeStatsRequest

type GetVolumeStatsRequest struct {
	VolumeId string
}

type GetVolumeStatsResponse

type GetVolumeStatsResponse struct {
	TotalBytes int64
	UsedBytes  int64
}

type IsVolumeFormattedRequest

type IsVolumeFormattedRequest struct {
	VolumeId string
}

type IsVolumeFormattedResponse

type IsVolumeFormattedResponse struct {
	Formatted bool
}

type ListVolumesOnDiskRequest

type ListVolumesOnDiskRequest struct {
	DiskNumber      uint32
	PartitionNumber uint32
}

type ListVolumesOnDiskResponse

type ListVolumesOnDiskResponse struct {
	VolumeIds []string
}

type MountVolumeRequest

type MountVolumeRequest struct {
	VolumeId   string
	TargetPath string
}

type MountVolumeResponse

type MountVolumeResponse struct {
}

type ResizeVolumeRequest

type ResizeVolumeRequest struct {
	VolumeId  string
	SizeBytes int64
}

type ResizeVolumeResponse

type ResizeVolumeResponse struct {
}

type ServerInterface

type ServerInterface interface {
	DismountVolume(context.Context, *DismountVolumeRequest, apiversion.Version) (*DismountVolumeResponse, error)
	FormatVolume(context.Context, *FormatVolumeRequest, apiversion.Version) (*FormatVolumeResponse, error)
	GetClosestVolumeIDFromTargetPath(context.Context, *GetClosestVolumeIDFromTargetPathRequest, apiversion.Version) (*GetClosestVolumeIDFromTargetPathResponse, error)
	GetDiskNumberFromVolumeID(context.Context, *GetDiskNumberFromVolumeIDRequest, apiversion.Version) (*GetDiskNumberFromVolumeIDResponse, error)
	GetVolumeDiskNumber(context.Context, *VolumeDiskNumberRequest, apiversion.Version) (*VolumeDiskNumberResponse, error)
	GetVolumeIDFromMount(context.Context, *VolumeIDFromMountRequest, apiversion.Version) (*VolumeIDFromMountResponse, error)
	GetVolumeIDFromTargetPath(context.Context, *GetVolumeIDFromTargetPathRequest, apiversion.Version) (*GetVolumeIDFromTargetPathResponse, error)
	GetVolumeStats(context.Context, *GetVolumeStatsRequest, apiversion.Version) (*GetVolumeStatsResponse, error)
	IsVolumeFormatted(context.Context, *IsVolumeFormattedRequest, apiversion.Version) (*IsVolumeFormattedResponse, error)
	ListVolumesOnDisk(context.Context, *ListVolumesOnDiskRequest, apiversion.Version) (*ListVolumesOnDiskResponse, error)
	MountVolume(context.Context, *MountVolumeRequest, apiversion.Version) (*MountVolumeResponse, error)
	ResizeVolume(context.Context, *ResizeVolumeRequest, apiversion.Version) (*ResizeVolumeResponse, error)
	UnmountVolume(context.Context, *UnmountVolumeRequest, apiversion.Version) (*UnmountVolumeResponse, error)
	VolumeStats(context.Context, *VolumeStatsRequest, apiversion.Version) (*VolumeStatsResponse, error)
	WriteVolumeCache(context.Context, *WriteVolumeCacheRequest, apiversion.Version) (*WriteVolumeCacheResponse, error)
}

All the functions this group's server needs to define.

type UnmountVolumeRequest

type UnmountVolumeRequest struct {
	VolumeId   string
	TargetPath string
}

type UnmountVolumeResponse

type UnmountVolumeResponse struct {
}

type VersionedAPI

type VersionedAPI interface {
	Register(grpcServer *grpc.Server)
}

type VolumeDiskNumberRequest

type VolumeDiskNumberRequest struct {
	VolumeId string
}

type VolumeDiskNumberResponse

type VolumeDiskNumberResponse struct {
	DiskNumber int64
}

type VolumeIDFromMountRequest

type VolumeIDFromMountRequest struct {
	Mount string
}

type VolumeIDFromMountResponse

type VolumeIDFromMountResponse struct {
	VolumeId string
}

type VolumeStatsRequest

type VolumeStatsRequest struct {
	VolumeId string
}

type VolumeStatsResponse

type VolumeStatsResponse struct {
	VolumeSize     int64
	VolumeUsedSize int64
}

type WriteVolumeCacheRequest

type WriteVolumeCacheRequest struct {
	VolumeId string
}

type WriteVolumeCacheResponse

type WriteVolumeCacheResponse struct {
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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