Nice bit of refactoring #1
2 changed files with 7 additions and 1 deletions
|
|
@ -42,7 +42,7 @@ reference](https://docs.docker.com/engine/api/v1.41/).
|
||||||
- [ ] Inspect an image
|
- [ ] Inspect an image
|
||||||
- [ ] Get the history of an image
|
- [ ] Get the history of an image
|
||||||
- [ ] Push an image
|
- [ ] Push an image
|
||||||
- [ ] Tag an image
|
- [x] Tag an image
|
||||||
- [ ] Remove an image
|
- [ ] Remove an image
|
||||||
- [ ] Search images
|
- [ ] Search images
|
||||||
- [ ] Delete unused images
|
- [ ] Delete unused images
|
||||||
|
|
|
||||||
6
images.v
6
images.v
|
|
@ -49,3 +49,9 @@ pub fn (mut d DockerConn) image_remove(id string) ! {
|
||||||
d.send()!
|
d.send()!
|
||||||
d.read_response()!
|
d.read_response()!
|
||||||
}
|
}
|
||||||
|
|
||||||
|
pub fn (mut d DockerConn) image_tag(name string, repo string, tag string) ! {
|
||||||
|
d.request(.post, '/images/$name/tag', {'repo': repo, 'tag': tag})
|
||||||
|
d.send()!
|
||||||
|
d.read_response()!
|
||||||
|
}
|
||||||
|
|
|
||||||
Reference in a new issue