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
|
module docker
|
||||||
|
|
||||||
import time
|
import time
|
||||||
import net.http
|
|
||||||
import types { ContainerListItem }
|
import types { ContainerListItem }
|
||||||
|
|
||||||
[params]
|
[params]
|
||||||
|
|
1
images.v
1
images.v
|
@ -1,6 +1,5 @@
|
||||||
module docker
|
module docker
|
||||||
|
|
||||||
import net.http
|
|
||||||
import types { Image }
|
import types { Image }
|
||||||
|
|
||||||
pub fn (mut d DockerConn) image_inspect(image string) !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
|
module docker
|
||||||
|
|
||||||
import net.http
|
|
||||||
import time
|
import time
|
||||||
|
import types { Volume }
|
||||||
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]
|
|
||||||
}
|
|
||||||
|
|
||||||
[params]
|
[params]
|
||||||
pub struct VolumeListFilter {
|
pub struct VolumeListFilter {
|
||||||
|
|
Loading…
Reference in New Issue