Documentation
¶
Index ¶
- type DiskIDs
- type DiskLocation
- type DiskStatsRequest
- type DiskStatsResponse
- type GetDiskNumberByNameRequest
- type GetDiskNumberByNameResponse
- type ListDiskIDsRequest
- type ListDiskIDsResponse
- type ListDiskLocationsRequest
- type ListDiskLocationsResponse
- type PartitionDiskRequest
- type PartitionDiskResponse
- type RescanRequest
- type RescanResponse
- type ServerInterface
- type VersionedAPI
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DiskLocation ¶
type DiskStatsRequest ¶ added in v0.2.0
type DiskStatsRequest struct {
DiskID string
}
type DiskStatsResponse ¶ added in v0.2.0
type DiskStatsResponse struct {
DiskSize int64
}
type GetDiskNumberByNameRequest ¶
type GetDiskNumberByNameRequest struct { // Disk device ID of the disk to partition DiskName string }
type GetDiskNumberByNameResponse ¶
type GetDiskNumberByNameResponse struct {
DiskNumber string
}
type ListDiskIDsRequest ¶ added in v0.2.0
type ListDiskIDsRequest struct { }
type ListDiskIDsResponse ¶ added in v0.2.0
type ListDiskLocationsRequest ¶
type ListDiskLocationsRequest struct { }
type ListDiskLocationsResponse ¶
type ListDiskLocationsResponse struct { // Map of disk device IDs and <adapter, bus, target, lun ID> associated with each disk device DiskLocations map[string]*DiskLocation }
type PartitionDiskRequest ¶
type PartitionDiskRequest struct { // Disk device ID of the disk to partition DiskID string }
type PartitionDiskResponse ¶
type PartitionDiskResponse struct { }
type RescanRequest ¶
type RescanRequest struct { }
type RescanResponse ¶
type RescanResponse struct { }
type ServerInterface ¶
type ServerInterface interface { DiskStats(context.Context, *DiskStatsRequest, apiversion.Version) (*DiskStatsResponse, error) GetDiskNumberByName(context.Context, *GetDiskNumberByNameRequest, apiversion.Version) (*GetDiskNumberByNameResponse, error) ListDiskIDs(context.Context, *ListDiskIDsRequest, apiversion.Version) (*ListDiskIDsResponse, error) ListDiskLocations(context.Context, *ListDiskLocationsRequest, apiversion.Version) (*ListDiskLocationsResponse, error) PartitionDisk(context.Context, *PartitionDiskRequest, apiversion.Version) (*PartitionDiskResponse, error) Rescan(context.Context, *RescanRequest, apiversion.Version) (*RescanResponse, error) }
All the functions this group's server needs to define.
type VersionedAPI ¶
Click to show internal directories.
Click to hide internal directories.