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" ErrMpsOAuth2 ErrComponent = "mps oauth2" ErrGardenerClient ErrComponent = "k8s client - gardener" ErrGardener ErrComponent = "gardener" ErrClusterK8SClient ErrComponent = "k8s client - cluster" )
Click to show internal directories.
Click to hide internal directories.