refactor: moving some stuff
ci/woodpecker/push/lint Pipeline was successful Details

fix-segfaults
Jef Roosens 2023-01-05 13:11:41 +01:00
parent 6b578a80cd
commit 9258bb8146
Signed by: Jef Roosens
GPG Key ID: B75D4F293C7052DB
4 changed files with 23 additions and 22 deletions

View File

@ -1,7 +1,6 @@
module docker
import time
import net.http
import types { ContainerListItem }
[params]

View File

@ -1,6 +1,5 @@
module docker
import net.http
import types { Image }
pub fn (mut d DockerConn) image_inspect(image string) !Image {

22
types/volume.v 100644
View 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]
}

View File

@ -1,26 +1,7 @@
module docker
import net.http
import time
struct UsageData {
size int [json: Size]
ref_count int [json: RefCount]
}
struct Volume {
created_at_str string [json: CreatedAt]
pub mut:
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]
}
import types { Volume }
[params]
pub struct VolumeListFilter {