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
|
||||
- [ ] Get the history of an image
|
||||
- [ ] Push an image
|
||||
- [ ] Tag an image
|
||||
- [x] Tag an image
|
||||
- [ ] Remove an image
|
||||
- [ ] Search 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.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