package
0.0.0-20241014125530-633498bcee1c
Repository: https://github.com/substra/orchestrator.git
Documentation: pkg.go.dev
# Functions
FromValidationError returns an OrcError with ErrInvalidAsset kind wrapping the underlying validation error.
NewBadRequest returns an ErrBadRequest kind of OrcError with given message.
NewCannotDisableAsset returns an ErrCannotDisableModel kind of OrcError with given message.
NewCannotDisableModel returns an ErrCannotDisableModel kind of OrcError with given message.
NewConflict returns an ErrConflict kind of OrcError with relevant message.
NewError creates an OrcError with given kind and message.
No description provided by the author
NewInternal returns an ErrInternalError kind of OrcError with given message.
NewInvalidAsset returns an ErrInvalidAsset kind of OrcError with given message.
No description provided by the author
NewNotFound returns an ErrNotFound kind of OrcError with relevant message.
NewPermissionDenied returns an ErrPermissionDenied kind of OrcError with given message.
NewTerminatedComputePlan returns an ErrTerminatedComputePlan kind of OrcError with given message.
NewTerminatedComputeTask returns an ErrTerminatedComputeTask kind of OrcError with given message.
NewUnimplemented returns an ErrUnimplemented kind of OrcError with given message.
# Variables
ErrBadRequest happens when the request can't be fulfilled.
ErrByteArray happens when attempting to load invalid data as json byte array.
ErrCannotDisableModel occurs when attempting to disable a model that is not eligible.
ErrCannotDisableOutput occurs when attempting to disable an output that is not eligible.
value 6 match gRPC AlreadyExists status code.
ErrIncompatibleKind occurs when attempting to register an asset for a task output of a different kind.
ErrIncompatibleTaskStatus occurs when a task cannot be processed due to its status.
ErrInternal happens when an unexpected error occurs (eg; unreachable code).
ErrInvalidAsset marks asset validation errors.
ErrMissingTaskOutput occurs when attempting to register an asset referencing a non-existing task output.
ErrNotFound happens when the asset is not present in the persistence layer.
ErrPermissionDenied happens when you try to perform an action on an asset that you do not own.
ErrTerminatedComputePlan occurs when attempting to cancel or fail an already terminated compute plan.
ErrTerminatedComputeTask occurs when attempting to cancel or fail an already terminated compute plan.
ErrUnimplemented occurs when unimplemented code is triggered.
# Type aliases
ErrorKind is unique per kind of orchestration error.