Documentation ¶
Index ¶
- Constants
- func ErrorConflict(message string) render.Renderer
- func ErrorInvalidRequest(message string) render.Renderer
- func ErrorInvalidRequestFromError(err error) render.Renderer
- func ErrorNotFound() render.Renderer
- func ExecutePorterCommand(args []string) ([]byte, error)
- func GetInstallationName(trimmedBundleTag string, requestPath string) string
- func GetResourceDetails(r *http.Request) (*azure.Resource, *string, *string, error)
- func UserAgent() string
- func Version() string
- type ErrorResponse
- type PorterOutput
- type RequestError
Constants ¶
View Source
const ( UserAgentPrefix = "cnab-custom-resource-handler" ProvisioningStateSucceeded = "Succeeded" ProvisioningStateFailed = "Failed" ProvisioningStateDeleting = "Deleting" StatusSucceeded = "Succeeded" StatusFailed = "Failed" APIVersion = "2018-09-01-preview" AsyncOperationComplete = "Succeeded" AsyncOperationFailed = "Failed" AsyncOperationUnknown = "Unknown" )
Variables ¶
This section is empty.
Functions ¶
func ErrorConflict ¶
func ErrorInvalidRequest ¶
func ErrorNotFound ¶
func ExecutePorterCommand ¶
func GetInstallationName ¶
func GetResourceDetails ¶
GetResourceDetails parses the request header containing resource details and returns the details of the resource
Types ¶
type ErrorResponse ¶
type ErrorResponse struct {
*RequestError `json:"ErrorResponse"`
}
func ErrorInternalServerError ¶
func ErrorInternalServerError(message string) *ErrorResponse
func ErrorInternalServerErrorFromError ¶
func ErrorInternalServerErrorFromError(err error) *ErrorResponse
func (*ErrorResponse) Render ¶
func (e *ErrorResponse) Render(w http.ResponseWriter, r *http.Request) error
type PorterOutput ¶
type PorterOutput struct { Name string `json:"Name"` Value string `json:"Value"` Type string `json:"Type"` }
func GetBundleOutput ¶
type RequestError ¶
Click to show internal directories.
Click to hide internal directories.