Debian Codegraph @

client/cache.go

raw
1 package client
2
3 type CacheResource struct {
4 CacheVolumes []CacheVolume `json:"cache_volumes,omitempty"`
5 }
6
7 type CacheVolume struct {
8 VolumeNumber int32 `json:"volume_number,omitempty"`
9 // block device path
10 DevicePath string `json:"device_path,omitempty"`
11 // block device path used as cache device
12 DevicePathCache string `json:"device_path_cache,omitempty"`
13 // block device path used as meta device
14 DeviceMetaCache string `json:"device_meta_cache,omitempty"`
15 AllocatedSizeKib int64 `json:"allocated_size_kib,omitempty"`
16 UsableSizeKib int64 `json:"usable_size_kib,omitempty"`
17 // String describing current volume state
18 DiskState string `json:"disk_state,omitempty"`
19 }