refactor: moving some stuff
All checks were successful
ci/woodpecker/push/lint Pipeline was successful
All checks were successful
ci/woodpecker/push/lint Pipeline was successful
This commit is contained in:
parent
6b578a80cd
commit
9258bb8146
4 changed files with 23 additions and 22 deletions
22
types/volume.v
Normal file
22
types/volume.v
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
module types
|
||||
|
||||
import time
|
||||
|
||||
pub struct UsageData {
|
||||
size int [json: Size]
|
||||
ref_count int [json: RefCount]
|
||||
}
|
||||
|
||||
pub struct Volume {
|
||||
pub mut:
|
||||
created_at_str string [json: CreatedAt]
|
||||
created_at time.Time [skip]
|
||||
name string [json: Name]
|
||||
driver string [json: Driver]
|
||||
mountpoint string [json: Mountpoint]
|
||||
status map[string]string [json: Status]
|
||||
labels map[string]string [json: Labels]
|
||||
scope string [json: Scope]
|
||||
options map[string]string [json: Options]
|
||||
usage_data UsageData [json: UsageData]
|
||||
}
|
||||
Reference in a new issue