Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrApplicationTypeNotFound = usrerr.New(404, "application type 'provisioning' not found in sources", "") ErrAuthenticationForSourcesNotFound = usrerr.New(404, "authentications for source weren't found in sources", "") ErrApplicationRead = usrerr.New(500, "application read returned no application type in sources", "") ErrSourcesInvalidAuthentication = usrerr.New(400, "insufficient data for authentication", "") )
Sources
View Source
var ( ErrCloneNotFound = usrerr.New(404, "image clone not found", "") ErrImageStatus = usrerr.New(500, "build of requested image has not finished yet", "image still building") ErrImageArchInvalid = usrerr.New(400, "the image provided has invalid architecture and can not be launch with provided instance type", "invalid image architecture") ErrUnknownImageType = usrerr.New(500, "unknown image type", "") ErrUploadStatus = usrerr.New(500, "cannot get image status", "") ErrImageRequestNotFound = usrerr.New(500, "image compose request not found", "") )
Image Builder
View Source
var ( ErrDuplicatePubkey = usrerr.New(406, "public key already exists in target cloud provider account and region", "") ErrPubkeyNotFound = usrerr.New(404, "pubkey not found in AWS account", "") ErrServiceAccountUnsupportedOp = usrerr.New(500, "unsupported operation on service account", "") ErrARNParsing = usrerr.New(500, "ARN parsing error", "") ErrNoReservation = usrerr.New(404, "no reservation was found in AWS response", "") )
EC2
View Source
var (
ErrRoleAssignmentNotFound = errors.New("Azure role assignment of Contributor to the service was not found in given subscription")
)
Azure
Functions ¶
This section is empty.
Types ¶
type DoerErr ¶
type DoerErr struct {
Err error
}
DoerErr is a simple wrapped error without any message. Additional message would stack for each request as multiple doers are called leading to:
"error in doer1: error in doer2: error in doer3: something happened"
func NewDoerErr ¶
type HttpRequestDoer ¶
func NewPlatformClient ¶
func NewPlatformClient(ctx context.Context, proxy string) HttpRequestDoer
NewPlatformClient returns new HTTP client (doer) with W3C Trace Context, logging tracing and/or HTTP proxy (non-clowder environment only) according to application configuration. Use this function to create HTTP clients for communication with all platform services.
type LoggingDoer ¶
type LoggingDoer struct {
// contains filtered or unexported fields
}
func NewLoggingDoer ¶
func NewLoggingDoer(ctx context.Context, doer HttpRequestDoer) *LoggingDoer
Directories ¶
Path | Synopsis |
---|---|
Package image_builder provides primitives to interact with the openapi HTTP API.
|
Package image_builder provides primitives to interact with the openapi HTTP API. |
Package rbac provides primitives to interact with the openapi HTTP API.
|
Package rbac provides primitives to interact with the openapi HTTP API. |
Package sources provides primitives to interact with the openapi HTTP API.
|
Package sources provides primitives to interact with the openapi HTTP API. |
Click to show internal directories.
Click to hide internal directories.