feat: implement image_tag
ci/woodpecker/push/lint Pipeline failed Details

fix-segfaults
Jef Roosens 2023-01-05 13:25:58 +01:00
parent 9258bb8146
commit 5bc54c37f3
Signed by: Jef Roosens
GPG Key ID: B75D4F293C7052DB
2 changed files with 7 additions and 1 deletions

View File

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

View File

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