Documentation
¶
Index ¶
- Constants
- func Delete(w http.ResponseWriter, r *http.Request)
- func Deploy(w http.ResponseWriter, r *http.Request)
- func ErrorAnyPathParamRequired(params ...string) error
- func ErrorAnyQueryParamRequired(params ...string) error
- func ErrorAppNotDeployed(appName string) error
- func ErrorAuthAPIError() error
- func ErrorAuthHeaderMalformed() error
- func ErrorAuthHeaderMissing() error
- func ErrorAuthInvalid() error
- func ErrorAuthOtherAccount() error
- func ErrorFormFileMustBeProvided(fileName string) error
- func ErrorPathParamRequired(param string) error
- func ErrorPending() error
- func ErrorQueryParamRequired(param string) error
- func GetDeployments(w http.ResponseWriter, r *http.Request)
- func GetMetrics(w http.ResponseWriter, r *http.Request)
- func GetResources(w http.ResponseWriter, r *http.Request)
- func Info(w http.ResponseWriter, r *http.Request)
- func ReadLogs(w http.ResponseWriter, r *http.Request)
- func RecoverAndRespond(w http.ResponseWriter, strs ...string)
- func Respond(w http.ResponseWriter, response interface{})
- func RespondError(w http.ResponseWriter, err error, strs ...string)
- func RespondErrorCode(w http.ResponseWriter, code int, err error, strs ...string)
- type Error
- type ErrorKind
Constants ¶
View Source
const ( ResDeploymentStarted = "deployment started" ResDeploymentUpdated = "deployment updated" ResDeploymentDeleted = "deployment deleted" ResDeploymentUpToDate = "deployment is up-to-date" ResDeploymentUpToDateUpdating = "deployment is already updating" ResDifferentDeploymentUpdating = "previous deployment is currently updating, use --force to override" ResCachedDeletedDeploymentStarted = "cache deleted, deployment started" )
Variables ¶
This section is empty.
Functions ¶
func ErrorAnyPathParamRequired ¶ added in v0.4.0
func ErrorAnyQueryParamRequired ¶ added in v0.4.0
func ErrorAppNotDeployed ¶ added in v0.4.0
func ErrorAuthAPIError ¶
func ErrorAuthAPIError() error
func ErrorAuthHeaderMalformed ¶
func ErrorAuthHeaderMalformed() error
func ErrorAuthHeaderMissing ¶
func ErrorAuthHeaderMissing() error
func ErrorAuthInvalid ¶ added in v0.10.0
func ErrorAuthInvalid() error
func ErrorAuthOtherAccount ¶ added in v0.10.0
func ErrorAuthOtherAccount() error
func ErrorFormFileMustBeProvided ¶ added in v0.4.0
func ErrorPathParamRequired ¶ added in v0.4.0
func ErrorPending ¶ added in v0.4.0
func ErrorPending() error
func ErrorQueryParamRequired ¶ added in v0.4.0
func GetDeployments ¶ added in v0.7.0
func GetDeployments(w http.ResponseWriter, r *http.Request)
func GetMetrics ¶ added in v0.8.0
func GetMetrics(w http.ResponseWriter, r *http.Request)
func GetResources ¶
func GetResources(w http.ResponseWriter, r *http.Request)
func RecoverAndRespond ¶
func RecoverAndRespond(w http.ResponseWriter, strs ...string)
func Respond ¶
func Respond(w http.ResponseWriter, response interface{})
func RespondError ¶
func RespondError(w http.ResponseWriter, err error, strs ...string)
func RespondErrorCode ¶
func RespondErrorCode(w http.ResponseWriter, code int, err error, strs ...string)
Types ¶
type Error ¶ added in v0.2.0
type Error struct { Kind ErrorKind // contains filtered or unexported fields }
type ErrorKind ¶
type ErrorKind int
func (ErrorKind) MarshalBinary ¶
MarshalBinary satisfies BinaryMarshaler
func (ErrorKind) MarshalText ¶
MarshalText satisfies TextMarshaler
func (*ErrorKind) UnmarshalBinary ¶
UnmarshalBinary satisfies BinaryUnmarshaler Needed for msgpack
func (*ErrorKind) UnmarshalText ¶
UnmarshalText satisfies TextUnmarshaler
Click to show internal directories.
Click to hide internal directories.