feat: implement image_tag
ci/woodpecker/push/lint Pipeline failed
Details
ci/woodpecker/push/lint Pipeline failed
Details
parent
9258bb8146
commit
5bc54c37f3
|
@ -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()!
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue