Documentation ¶
Index ¶
- func NewPresenter(logger *log.Logger) *presenter
- type AppError
- func BadGateway(format string, a ...interface{}) AppError
- func BadRequest(format string, a ...interface{}) AppError
- func External(format string, a ...interface{}) AppError
- func Forbidden(format string, a ...interface{}) AppError
- func Internal(format string, a ...interface{}) AppError
- func InvalidTenant(format string, a ...interface{}) AppError
- type CauseCode
- type ErrCode
- type ErrComponent
- type ErrReason
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewPresenter ¶
Types ¶
type AppError ¶
type AppError interface { Append(string, ...interface{}) AppError SetReason(ErrReason) AppError SetComponent(ErrComponent) AppError Code() ErrCode Cause() CauseCode Component() ErrComponent Reason() ErrReason Error() string }
func BadGateway ¶
func BadRequest ¶
func InvalidTenant ¶
type ErrComponent ¶
type ErrComponent string
const ( ErrDB ErrComponent = "db - provisioner" ErrProvisionerK8SClient ErrComponent = "k8s client - provisioner" ErrProvisioner ErrComponent = "provisioner" ErrCompassDirectorClient ErrComponent = "compass director client" ErrCompassDirector ErrComponent = "compass director" ErrMpsOAuth2 ErrComponent = "mps oauth2" ErrCompassConnectionClient ErrComponent = "compass connection client" ErrCompassConnection ErrComponent = "compass connection" ErrGardenerClient ErrComponent = "k8s client - gardener" ErrGardener ErrComponent = "gardener" ErrClusterK8SClient ErrComponent = "k8s client - cluster" ErrKymaInstaller ErrComponent = "kyma installer" )
type ErrReason ¶
type ErrReason string
const ( ErrProvisionerInternal ErrReason = "err_provisioner_internal" ErrProvisionerTimeout ErrReason = "err_provisioner_timeout" ErrProvisionerStepNotFound ErrReason = "err_provisioner_step_not_found" ErrDirectorNilResponse ErrReason = "err_director_nil_response" ErrDirectorRuntimeIDMismatch ErrReason = "err_director_runtime_id_mismatch" ErrDirectorClientGraphqlizer ErrReason = "err_director_client_graphqlizer" ErrCheckKymaInstallationState ErrReason = "err_check_kyma_installation_state" ErrTriggerKymaInstall ErrReason = "err_trigger_kyma_install" ErrTriggerKymaUninstall ErrReason = "err_trigger_kyma_uninstall" )
Click to show internal directories.
Click to hide internal directories.