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
|
|
@ -194,6 +194,10 @@ func (cl *Client) SetCredentials(username, password string) {
|
|||
cl.sysCtx.DockerAuthConfig.Password = password
|
||||
}
|
||||
|
||||
func (cl *Client) SetDockerCertPath(path string) {
|
||||
cl.sysCtx.DockerCertPath = path
|
||||
}
|
||||
|
||||
// SetSkipTLSVerify controls if TLS verification happens when
|
||||
// making requests. If nil is passed it falls back to the default.
|
||||
func (cl *Client) SetTLSVerify(verify *bool) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue