refactor(docker): removed unused function

main
Jef Roosens 2022-05-16 15:39:23 +02:00
parent 3c87e60293
commit 889d5a0884
Signed by untrusted user: Jef Roosens
GPG Key ID: B75D4F293C7052DB
1 changed files with 0 additions and 21 deletions

View File

@ -9,27 +9,6 @@ struct DockerError {
message string
}
struct Container {
id string [json: Id]
names []string [json: Names]
}
// containers returns a list of all containers.
pub fn (mut d DockerConn) containers() ?[]Container {
d.send_request(Method.get, urllib.parse('/v1.41/containers/json')?)?
head, res := d.read_response()?
if head.status_code != 200 {
data := json.decode(DockerError, res)?
return error(data.message)
}
data := json.decode([]Container, res)?
return data
}
pub struct NewContainer {
image string [json: Image]
entrypoint []string [json: Entrypoint]