Documentation ¶
Index ¶
- Constants
- func CheckIfObjectImplementsType[T any](_ T, n interface{}) bool
- func ConvertErrorToText(err *ErrorResponse) string
- func ErrorToErrorResponse(err error) string
- type AlreadyExists
- func (e *AlreadyExists) Error() string
- func (e *AlreadyExists) GetCode() string
- func (e *AlreadyExists) GetDetails() map[string]interface{}
- func (e *AlreadyExists) GetError() error
- func (e *AlreadyExists) GetID() string
- func (e *AlreadyExists) GetMessage() string
- func (e *AlreadyExists) SetCode(string)
- func (e *AlreadyExists) SetError(err error)
- func (e *AlreadyExists) SetID(s string)
- func (e *AlreadyExists) SetMessage(s string)
- type BacalhauErrorInterface
- type ContextCanceledError
- func (e *ContextCanceledError) Error() string
- func (e *ContextCanceledError) GetCode() string
- func (e *ContextCanceledError) GetDetails() map[string]interface{}
- func (e *ContextCanceledError) GetError() error
- func (e *ContextCanceledError) GetMessage() string
- func (e *ContextCanceledError) SetCode(string)
- func (e *ContextCanceledError) SetError(err error)
- func (e *ContextCanceledError) SetMessage(s string)
- type ErrorResponse
- type EvaluationNotFound
- func (e *EvaluationNotFound) Error() string
- func (e *EvaluationNotFound) GetCode() string
- func (e *EvaluationNotFound) GetDetails() map[string]interface{}
- func (e *EvaluationNotFound) GetError() error
- func (e *EvaluationNotFound) GetID() string
- func (e *EvaluationNotFound) GetMessage() string
- func (e *EvaluationNotFound) SetCode(string)
- func (e *EvaluationNotFound) SetError(err error)
- func (e *EvaluationNotFound) SetID(s string)
- func (e *EvaluationNotFound) SetMessage(s string)
- type ExecutableNotFound
- func (e *ExecutableNotFound) Error() string
- func (e *ExecutableNotFound) GetCode() string
- func (e *ExecutableNotFound) GetDetails() map[string]interface{}
- func (e *ExecutableNotFound) GetError() error
- func (e *ExecutableNotFound) GetMessage() string
- func (e *ExecutableNotFound) SetCode(string)
- func (e *ExecutableNotFound) SetError(err error)
- func (e *ExecutableNotFound) SetMessage(s string)
- type GenericError
- func (e *GenericError) Error() string
- func (e *GenericError) GetCode() string
- func (e *GenericError) GetDetails() map[string]interface{}
- func (e *GenericError) GetError() error
- func (e *GenericError) GetMessage() string
- func (e *GenericError) SetCode(string)
- func (e *GenericError) SetError(err error)
- func (e *GenericError) SetMessage(s string)
- type ImageNotFound
- func (e *ImageNotFound) Error() string
- func (e *ImageNotFound) GetCode() string
- func (e *ImageNotFound) GetDetails() map[string]interface{}
- func (e *ImageNotFound) GetError() error
- func (e *ImageNotFound) GetImageName() string
- func (e *ImageNotFound) GetMessage() string
- func (e *ImageNotFound) SetCode(string)
- func (e *ImageNotFound) SetError(err error)
- func (e *ImageNotFound) SetImageName(s string)
- func (e *ImageNotFound) SetMessage(s string)
- type JobNotFound
- func (e *JobNotFound) Error() string
- func (e *JobNotFound) GetCode() string
- func (e *JobNotFound) GetDetails() map[string]interface{}
- func (e *JobNotFound) GetError() error
- func (e *JobNotFound) GetID() string
- func (e *JobNotFound) GetMessage() string
- func (e *JobNotFound) SetCode(string)
- func (e *JobNotFound) SetError(err error)
- func (e *JobNotFound) SetID(s string)
- func (e *JobNotFound) SetMessage(s string)
- type MultipleJobsFound
- func (e *MultipleJobsFound) Error() string
- func (e *MultipleJobsFound) GetCode() string
- func (e *MultipleJobsFound) GetDetails() map[string]interface{}
- func (e *MultipleJobsFound) GetError() error
- func (e *MultipleJobsFound) GetMessage() string
- func (e *MultipleJobsFound) SetCode(string)
- func (e *MultipleJobsFound) SetError(err error)
- func (e *MultipleJobsFound) SetMessage(s string)
- type UnknownServerError
- func (e *UnknownServerError) Error() string
- func (e *UnknownServerError) GetCode() string
- func (e *UnknownServerError) GetDetails() map[string]interface{}
- func (e *UnknownServerError) GetError() error
- func (e *UnknownServerError) GetMessage() string
- func (e *UnknownServerError) SetCode(string)
- func (e *UnknownServerError) SetError(err error)
- func (e *UnknownServerError) SetMessage(s string)
Constants ¶
View Source
const ( ErrorCodeAlreadyExists = "error-already-exists" ErrorMessageAlreadyExists = "%s (%s) already exists." )
View Source
const ( ErrorCodeEvaluationNotFound = "error-evaluation-not-found" ErrorMessageEvaluationNotFound = "Evaluation not found. ID: %s" )
View Source
const ( ErrorCodeExecutableNotFound = "error-executable-not-found" ErrorMessageExecutableNotFound = "Executable not found. Command: %s" )
View Source
const ( ErrorCodeImageNotFound = "error-image-not-found" ErrorMessageImageNotFound = "Image not found. Image: %s" )
View Source
const ( ErrorCodeJobNotFound = "error-job-not-found" ErrorMessageJobNotFound = "Job not found. ID: %s" )
View Source
const ( ErrorCodeMultipleJobsFound = "ambiguous-job-id" ErrorMessageMultipleJobsFound = "Multiple jobs found for jobID prefix: %s, matching jobIDs: %v" )
View Source
const (
ErrorCodeContextCanceledError = "error-context-canceled-error"
)
View Source
const (
ErrorCodeGenericError = "error-generic-error"
)
View Source
const (
ErrorCodeUnknownServerError = "error-unknown-server-error"
)
View Source
const UnknownError = "error-unknown"
Variables ¶
This section is empty.
Functions ¶
func CheckIfObjectImplementsType ¶
Checks to see if an object implements an interface First parameter is the interface, second is the object
func ConvertErrorToText ¶
func ConvertErrorToText(err *ErrorResponse) string
func ErrorToErrorResponse ¶
Types ¶
type AlreadyExists ¶ added in v1.0.4
type AlreadyExists GenericError
func NewAlreadyExists ¶ added in v1.0.4
func NewAlreadyExists(id string, typ string) *AlreadyExists
func (*AlreadyExists) Error ¶ added in v1.0.4
func (e *AlreadyExists) Error() string
func (*AlreadyExists) GetCode ¶ added in v1.0.4
func (e *AlreadyExists) GetCode() string
func (*AlreadyExists) GetDetails ¶ added in v1.0.4
func (e *AlreadyExists) GetDetails() map[string]interface{}
func (*AlreadyExists) GetError ¶ added in v1.0.4
func (e *AlreadyExists) GetError() error
func (*AlreadyExists) GetID ¶ added in v1.0.4
func (e *AlreadyExists) GetID() string
func (*AlreadyExists) GetMessage ¶ added in v1.0.4
func (e *AlreadyExists) GetMessage() string
func (*AlreadyExists) SetCode ¶ added in v1.0.4
func (e *AlreadyExists) SetCode(string)
func (*AlreadyExists) SetError ¶ added in v1.0.4
func (e *AlreadyExists) SetError(err error)
func (*AlreadyExists) SetID ¶ added in v1.0.4
func (e *AlreadyExists) SetID(s string)
func (*AlreadyExists) SetMessage ¶ added in v1.0.4
func (e *AlreadyExists) SetMessage(s string)
type BacalhauErrorInterface ¶
type ContextCanceledError ¶
type ContextCanceledError GenericError
func NewContextCanceledError ¶
func NewContextCanceledError(msg string) *ContextCanceledError
func (*ContextCanceledError) Error ¶
func (e *ContextCanceledError) Error() string
func (*ContextCanceledError) GetCode ¶
func (e *ContextCanceledError) GetCode() string
func (*ContextCanceledError) GetDetails ¶
func (e *ContextCanceledError) GetDetails() map[string]interface{}
func (*ContextCanceledError) GetError ¶
func (e *ContextCanceledError) GetError() error
func (*ContextCanceledError) GetMessage ¶
func (e *ContextCanceledError) GetMessage() string
func (*ContextCanceledError) SetCode ¶
func (e *ContextCanceledError) SetCode(string)
func (*ContextCanceledError) SetError ¶
func (e *ContextCanceledError) SetError(err error)
func (*ContextCanceledError) SetMessage ¶
func (e *ContextCanceledError) SetMessage(s string)
type ErrorResponse ¶
type ErrorResponse struct { Code string `json:"Code"` Message string `json:"Message"` Details map[string]interface{} `json:"Details"` Err string `json:"Err"` }
func ErrorToErrorResponseObject ¶
func ErrorToErrorResponseObject(err error) *ErrorResponse
func NewResponseUnknownError ¶
func NewResponseUnknownError(err error) *ErrorResponse
func (*ErrorResponse) Error ¶
func (e *ErrorResponse) Error() string
type EvaluationNotFound ¶ added in v1.0.4
type EvaluationNotFound GenericError
func NewEvaluationNotFound ¶ added in v1.0.4
func NewEvaluationNotFound(id string) *EvaluationNotFound
func (*EvaluationNotFound) Error ¶ added in v1.0.4
func (e *EvaluationNotFound) Error() string
func (*EvaluationNotFound) GetCode ¶ added in v1.0.4
func (e *EvaluationNotFound) GetCode() string
func (*EvaluationNotFound) GetDetails ¶ added in v1.0.4
func (e *EvaluationNotFound) GetDetails() map[string]interface{}
func (*EvaluationNotFound) GetError ¶ added in v1.0.4
func (e *EvaluationNotFound) GetError() error
func (*EvaluationNotFound) GetID ¶ added in v1.0.4
func (e *EvaluationNotFound) GetID() string
func (*EvaluationNotFound) GetMessage ¶ added in v1.0.4
func (e *EvaluationNotFound) GetMessage() string
func (*EvaluationNotFound) SetCode ¶ added in v1.0.4
func (e *EvaluationNotFound) SetCode(string)
func (*EvaluationNotFound) SetError ¶ added in v1.0.4
func (e *EvaluationNotFound) SetError(err error)
func (*EvaluationNotFound) SetID ¶ added in v1.0.4
func (e *EvaluationNotFound) SetID(s string)
func (*EvaluationNotFound) SetMessage ¶ added in v1.0.4
func (e *EvaluationNotFound) SetMessage(s string)
type ExecutableNotFound ¶
type ExecutableNotFound GenericError
func NewExecutableNotFound ¶
func NewExecutableNotFound(commandLine string) *ExecutableNotFound
func (*ExecutableNotFound) Error ¶
func (e *ExecutableNotFound) Error() string
func (*ExecutableNotFound) GetCode ¶
func (e *ExecutableNotFound) GetCode() string
func (*ExecutableNotFound) GetDetails ¶
func (e *ExecutableNotFound) GetDetails() map[string]interface{}
func (*ExecutableNotFound) GetError ¶
func (e *ExecutableNotFound) GetError() error
func (*ExecutableNotFound) GetMessage ¶
func (e *ExecutableNotFound) GetMessage() string
func (*ExecutableNotFound) SetCode ¶
func (e *ExecutableNotFound) SetCode(string)
func (*ExecutableNotFound) SetError ¶
func (e *ExecutableNotFound) SetError(err error)
func (*ExecutableNotFound) SetMessage ¶
func (e *ExecutableNotFound) SetMessage(s string)
type GenericError ¶
type GenericError struct { Code string `json:"Code"` //nolint:unused Message string `json:"Message"` Details map[string]interface{} `json:"Details"` Err error `json:"Error"` }
func NewGenericError ¶
func NewGenericError(err error) *GenericError
func (*GenericError) Error ¶
func (e *GenericError) Error() string
func (*GenericError) GetCode ¶
func (e *GenericError) GetCode() string
func (*GenericError) GetDetails ¶
func (e *GenericError) GetDetails() map[string]interface{}
func (*GenericError) GetError ¶
func (e *GenericError) GetError() error
func (*GenericError) GetMessage ¶
func (e *GenericError) GetMessage() string
func (*GenericError) SetCode ¶
func (e *GenericError) SetCode(string)
func (*GenericError) SetError ¶
func (e *GenericError) SetError(err error)
func (*GenericError) SetMessage ¶
func (e *GenericError) SetMessage(s string)
type ImageNotFound ¶
type ImageNotFound GenericError
func NewImageNotFound ¶
func NewImageNotFound(id string) *ImageNotFound
func (*ImageNotFound) Error ¶
func (e *ImageNotFound) Error() string
func (*ImageNotFound) GetCode ¶
func (e *ImageNotFound) GetCode() string
func (*ImageNotFound) GetDetails ¶
func (e *ImageNotFound) GetDetails() map[string]interface{}
func (*ImageNotFound) GetError ¶
func (e *ImageNotFound) GetError() error
func (*ImageNotFound) GetImageName ¶
func (e *ImageNotFound) GetImageName() string
func (*ImageNotFound) GetMessage ¶
func (e *ImageNotFound) GetMessage() string
func (*ImageNotFound) SetCode ¶
func (e *ImageNotFound) SetCode(string)
func (*ImageNotFound) SetError ¶
func (e *ImageNotFound) SetError(err error)
func (*ImageNotFound) SetImageName ¶
func (e *ImageNotFound) SetImageName(s string)
func (*ImageNotFound) SetMessage ¶
func (e *ImageNotFound) SetMessage(s string)
type JobNotFound ¶
type JobNotFound GenericError
func NewJobNotFound ¶
func NewJobNotFound(id string) *JobNotFound
func (*JobNotFound) Error ¶
func (e *JobNotFound) Error() string
func (*JobNotFound) GetCode ¶
func (e *JobNotFound) GetCode() string
func (*JobNotFound) GetDetails ¶
func (e *JobNotFound) GetDetails() map[string]interface{}
func (*JobNotFound) GetError ¶
func (e *JobNotFound) GetError() error
func (*JobNotFound) GetID ¶
func (e *JobNotFound) GetID() string
func (*JobNotFound) GetMessage ¶
func (e *JobNotFound) GetMessage() string
func (*JobNotFound) SetCode ¶
func (e *JobNotFound) SetCode(string)
func (*JobNotFound) SetError ¶
func (e *JobNotFound) SetError(err error)
func (*JobNotFound) SetID ¶
func (e *JobNotFound) SetID(s string)
func (*JobNotFound) SetMessage ¶
func (e *JobNotFound) SetMessage(s string)
type MultipleJobsFound ¶ added in v1.1.4
type MultipleJobsFound GenericError
func NewMultipleJobsFound ¶ added in v1.1.4
func NewMultipleJobsFound(id string, matchingJobIDs []string) *MultipleJobsFound
func (*MultipleJobsFound) Error ¶ added in v1.1.4
func (e *MultipleJobsFound) Error() string
func (*MultipleJobsFound) GetCode ¶ added in v1.1.4
func (e *MultipleJobsFound) GetCode() string
func (*MultipleJobsFound) GetDetails ¶ added in v1.1.4
func (e *MultipleJobsFound) GetDetails() map[string]interface{}
func (*MultipleJobsFound) GetError ¶ added in v1.1.4
func (e *MultipleJobsFound) GetError() error
func (*MultipleJobsFound) GetMessage ¶ added in v1.1.4
func (e *MultipleJobsFound) GetMessage() string
func (*MultipleJobsFound) SetCode ¶ added in v1.1.4
func (e *MultipleJobsFound) SetCode(string)
func (*MultipleJobsFound) SetError ¶ added in v1.1.4
func (e *MultipleJobsFound) SetError(err error)
func (*MultipleJobsFound) SetMessage ¶ added in v1.1.4
func (e *MultipleJobsFound) SetMessage(s string)
type UnknownServerError ¶
type UnknownServerError GenericError
func NewUnknownServerError ¶
func NewUnknownServerError(msg string) *UnknownServerError
func (*UnknownServerError) Error ¶
func (e *UnknownServerError) Error() string
func (*UnknownServerError) GetCode ¶
func (e *UnknownServerError) GetCode() string
func (*UnknownServerError) GetDetails ¶
func (e *UnknownServerError) GetDetails() map[string]interface{}
func (*UnknownServerError) GetError ¶
func (e *UnknownServerError) GetError() error
func (*UnknownServerError) GetMessage ¶
func (e *UnknownServerError) GetMessage() string
func (*UnknownServerError) SetCode ¶
func (e *UnknownServerError) SetCode(string)
func (*UnknownServerError) SetError ¶
func (e *UnknownServerError) SetError(err error)
func (*UnknownServerError) SetMessage ¶
func (e *UnknownServerError) SetMessage(s string)
Click to show internal directories.
Click to hide internal directories.