cloudapi: support container embedding
Add support for embedding container images via the cloud API. For this the container resolve job was plumbed into the cloud api's handler and the API specification updated with a new `containers` section that mimics the blueprint section with the same name.
This commit is contained in:
parent
45850639a0
commit
388154d7f6
7 changed files with 341 additions and 119 deletions
|
|
@ -31,6 +31,7 @@ const (
|
|||
ErrorTargetError ClientErrorCode = 28
|
||||
ErrorParsingJobArgs ClientErrorCode = 29
|
||||
ErrorContainerResolution ClientErrorCode = 30
|
||||
ErrorContainerDependency ClientErrorCode = 31
|
||||
)
|
||||
|
||||
type ClientErrorCode int
|
||||
|
|
@ -94,6 +95,8 @@ func GetStatusCode(err *Error) StatusCode {
|
|||
// IsDependencyError returns true if the error means that a dependency of a job failed
|
||||
func (e *Error) IsDependencyError() bool {
|
||||
switch e.ID {
|
||||
case ErrorContainerDependency:
|
||||
return true
|
||||
case ErrorDepsolveDependency:
|
||||
return true
|
||||
case ErrorManifestDependency:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue