Documentation ¶
Overview ¶
Defines the error messages used within KozmoAdmin categorized by common error codes.
Index ¶
- func IsDoesNotExistError(err error) bool
- type KozmoAdminError
- func NewAlreadyInTerminalStateError(ctx context.Context, errorMsg string, curPhase string) KozmoAdminError
- func NewCollectedKozmoAdminError(code codes.Code, errors []error) KozmoAdminError
- func NewIncompatibleClusterError(ctx context.Context, errorMsg, curCluster string) KozmoAdminError
- func NewKozmoAdminError(code codes.Code, message string) KozmoAdminError
- func NewKozmoAdminErrorFromStatus(status *status.Status) KozmoAdminError
- func NewKozmoAdminErrorf(code codes.Code, format string, a ...interface{}) KozmoAdminError
- func NewWorkflowExistsDifferentStructureError(ctx context.Context, request *admin.WorkflowCreateRequest) KozmoAdminError
- func NewWorkflowExistsIdenticalStructureError(ctx context.Context, request *admin.WorkflowCreateRequest) KozmoAdminError
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsDoesNotExistError ¶
Types ¶
type KozmoAdminError ¶
type KozmoAdminError interface { Error() string Code() codes.Code GRPCStatus() *status.Status WithDetails(details proto.Message) (KozmoAdminError, error) String() string }
func NewAlreadyInTerminalStateError ¶
func NewAlreadyInTerminalStateError(ctx context.Context, errorMsg string, curPhase string) KozmoAdminError
func NewCollectedKozmoAdminError ¶
func NewCollectedKozmoAdminError(code codes.Code, errors []error) KozmoAdminError
func NewIncompatibleClusterError ¶
func NewIncompatibleClusterError(ctx context.Context, errorMsg, curCluster string) KozmoAdminError
func NewKozmoAdminError ¶
func NewKozmoAdminError(code codes.Code, message string) KozmoAdminError
func NewKozmoAdminErrorFromStatus ¶
func NewKozmoAdminErrorFromStatus(status *status.Status) KozmoAdminError
func NewKozmoAdminErrorf ¶
func NewKozmoAdminErrorf(code codes.Code, format string, a ...interface{}) KozmoAdminError
func NewWorkflowExistsDifferentStructureError ¶
func NewWorkflowExistsDifferentStructureError(ctx context.Context, request *admin.WorkflowCreateRequest) KozmoAdminError
func NewWorkflowExistsIdenticalStructureError ¶
func NewWorkflowExistsIdenticalStructureError(ctx context.Context, request *admin.WorkflowCreateRequest) KozmoAdminError
Click to show internal directories.
Click to hide internal directories.