cloudapi: add support for uploading to a container registry
Worker ------ Add configuration for the default container registry. Use the default container registry if not provided as part of the image name. When using the default registry use the configured values Return the image url as part of the result. Composer Worker API ------------------- Add `ContainerTargetResultOptions` to return the image url Composer API ------------ Add UploadOptions to allow setting of the image name and tag Add UploadStatus to return the url of the uploaded image Co-Developed-By: Christian Kellner <christian@kellner.me>
This commit is contained in:
parent
14208d872b
commit
3231aabbc0
9 changed files with 277 additions and 130 deletions
|
|
@ -17,6 +17,13 @@ func NewContainerTarget(options *ContainerTargetOptions) *Target {
|
|||
return newTarget(TargetNameContainer, options)
|
||||
}
|
||||
|
||||
func NewContainerTargetResult() *TargetResult {
|
||||
return newTargetResult(TargetNameContainer, nil)
|
||||
type ContainerTargetResultOptions struct {
|
||||
URL string `json:"url"`
|
||||
Digest string `json:"digest"`
|
||||
}
|
||||
|
||||
func (ContainerTargetResultOptions) isTargetResultOptions() {}
|
||||
|
||||
func NewContainerTargetResult(options *ContainerTargetResultOptions) *TargetResult {
|
||||
return newTargetResult(TargetNameContainer, options)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue