refactor: moving some stuff
ci/woodpecker/push/lint Pipeline was successful
Details
ci/woodpecker/push/lint Pipeline was successful
Details
parent
6b578a80cd
commit
9258bb8146
|
@ -1,7 +1,6 @@
|
|||
module docker
|
||||
|
||||
import time
|
||||
import net.http
|
||||
import types { ContainerListItem }
|
||||
|
||||
[params]
|
||||
|
|
1
images.v
1
images.v
|
@ -1,6 +1,5 @@
|
|||
module docker
|
||||
|
||||
import net.http
|
||||
import types { Image }
|
||||
|
||||
pub fn (mut d DockerConn) image_inspect(image string) !Image {
|
||||
|
|
|
@ -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]
|
||||
}
|
21
volumes.v
21
volumes.v
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue