http

package
v0.0.0-...-4263410 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 11, 2024 License: GPL-3.0 Imports: 10 Imported by: 0

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

func NewDoerErr(err error) *DoerErr

func (*DoerErr) Error

func (e *DoerErr) Error() string

func (*DoerErr) Unwrap

func (e *DoerErr) Unwrap() error

type HttpRequestDoer

type HttpRequestDoer interface {
	Do(req *http.Request) (*http.Response, error)
}

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

func (*LoggingDoer) Do

func (c *LoggingDoer) Do(req *http.Request) (*http.Response, error)

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL