Nice bit of refactoring #1

Merged
Jef Roosens merged 9 commits from fix-segfaults into main 2023-01-05 16:58:20 +01:00
2 changed files with 7 additions and 1 deletions
Showing only changes of commit 5bc54c37f3 - Show all commits

View file

@ -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

View file

@ -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()!
}