Documentation ¶
Index ¶
- func IsPanicError(value byte) bool
- func ParseArrayLengthMismatch(inputs []interface{}) error
- func ParseDoubleEndedQueueError(name string, inputs []interface{}) error
- func ParseError(name string, inputs []interface{}) error
- func ParseInvalidNodesCount(inputs []interface{}) error
- func ParseInvalidTotalCpus(inputs []interface{}) error
- func ParseInvalidTotalMem(inputs []interface{}) error
- func ParseNoJob(inputs []interface{}) error
- func WrapError(originalErr error) (newErr error)
- type AlreadyDone
- type ArrayLengthMismatch
- type Banned
- type CustomerMetaSchedulerProviderOnly
- type CustomerOnly
- type DoubleEndedQueueEmpty
- type DoubleEndedQueueOutOfBounds
- type EthereumBackend
- type InsufficientFunds
- type InvalidJob
- type InvalidJobDefinition
- type InvalidNodesCount
- type InvalidTotalCpus
- type InvalidTotalMem
- type InvalidTransition
- type Job
- type JobHotStatusOnly
- type JobProviderOnly
- type JobStatus
- type MetaScheduledScheduledStatusOnly
- type NewJobRequestDisabled
- type NoJob
- type NoProvider
- type NoSpendingAuthority
- type PanicError
- type ProviderNotJoined
- type RemainingTimeAboveLimit
- type RunningColdStatusOnly
- type RunningScheduledStatusOnly
- type SameStatusError
- type WaitingApprovalOnly
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsPanicError ¶
func ParseArrayLengthMismatch ¶
func ParseArrayLengthMismatch(inputs []interface{}) error
func ParseError ¶
func ParseInvalidNodesCount ¶
func ParseInvalidNodesCount(inputs []interface{}) error
func ParseInvalidTotalCpus ¶
func ParseInvalidTotalCpus(inputs []interface{}) error
func ParseInvalidTotalMem ¶
func ParseInvalidTotalMem(inputs []interface{}) error
func ParseNoJob ¶
func ParseNoJob(inputs []interface{}) error
Types ¶
type AlreadyDone ¶
type AlreadyDone struct{}
func ParseAlreadyDone ¶
func ParseAlreadyDone(inputs []interface{}) *AlreadyDone
func (*AlreadyDone) Error ¶
func (e *AlreadyDone) Error() string
type ArrayLengthMismatch ¶
type ArrayLengthMismatch struct{}
func (*ArrayLengthMismatch) Error ¶
func (e *ArrayLengthMismatch) Error() string
type Banned ¶
type Banned struct{}
func ParseBanned ¶
func ParseBanned(inputs []interface{}) *Banned
type CustomerMetaSchedulerProviderOnly ¶
type CustomerMetaSchedulerProviderOnly struct{}
func ParseCustomerMetaSchedulerProviderOnly ¶
func ParseCustomerMetaSchedulerProviderOnly( inputs []interface{}, ) *CustomerMetaSchedulerProviderOnly
func (*CustomerMetaSchedulerProviderOnly) Error ¶
func (e *CustomerMetaSchedulerProviderOnly) Error() string
type CustomerOnly ¶
func ParseCustomerOnly ¶
func ParseCustomerOnly(inputs []interface{}) *CustomerOnly
func (*CustomerOnly) Error ¶
func (e *CustomerOnly) Error() string
type DoubleEndedQueueEmpty ¶
type DoubleEndedQueueEmpty struct{}
func ParseDoubleEndedQueueEmpty ¶
func ParseDoubleEndedQueueEmpty(inputs []interface{}) *DoubleEndedQueueEmpty
func (*DoubleEndedQueueEmpty) Error ¶
func (e *DoubleEndedQueueEmpty) Error() string
type DoubleEndedQueueOutOfBounds ¶
type DoubleEndedQueueOutOfBounds struct{}
func ParseDoubleEndedQueueOutOfBounds ¶
func ParseDoubleEndedQueueOutOfBounds(inputs []interface{}) *DoubleEndedQueueOutOfBounds
func (*DoubleEndedQueueOutOfBounds) Error ¶
func (e *DoubleEndedQueueOutOfBounds) Error() string
type EthereumBackend ¶
type EthereumBackend interface { bind.ContractBackend bind.DeployBackend }
type InsufficientFunds ¶
func ParseInsufficientFunds ¶
func ParseInsufficientFunds(inputs []interface{}) *InsufficientFunds
func (*InsufficientFunds) Error ¶
func (e *InsufficientFunds) Error() string
type InvalidJob ¶
type InvalidJob struct{}
func ParseInvalidJob ¶
func ParseInvalidJob(inputs []interface{}) *InvalidJob
func (*InvalidJob) Error ¶
func (e *InvalidJob) Error() string
type InvalidJobDefinition ¶
type InvalidJobDefinition struct{}
func ParseInvalidJobDefinition ¶
func ParseInvalidJobDefinition( inputs []interface{}, ) *InvalidJobDefinition
func (*InvalidJobDefinition) Error ¶
func (e *InvalidJobDefinition) Error() string
type InvalidNodesCount ¶
type InvalidNodesCount struct{}
func (*InvalidNodesCount) Error ¶
func (e *InvalidNodesCount) Error() string
type InvalidTotalCpus ¶
type InvalidTotalCpus struct{}
func (*InvalidTotalCpus) Error ¶
func (e *InvalidTotalCpus) Error() string
type InvalidTotalMem ¶
type InvalidTotalMem struct{}
func (*InvalidTotalMem) Error ¶
func (e *InvalidTotalMem) Error() string
type InvalidTransition ¶
func ParseInvalidTransition ¶
func ParseInvalidTransition(inputs []interface{}) *InvalidTransition
func (*InvalidTransition) Error ¶
func (e *InvalidTransition) Error() string
type Job ¶
type Job struct { JobID [32]byte Status JobStatus CustomerAddr common.Address ProviderAddr common.Address Definition metaschedulerabi.JobDefinition Cost metaschedulerabi.JobCost Time metaschedulerabi.JobTime JobName [32]byte HasCancelRequest bool LastError string }
func FromStructToJob ¶
func FromStructToJob(s metaschedulerabi.Job) Job
type JobHotStatusOnly ¶
type JobHotStatusOnly struct {
Current JobStatus
}
func ParseJobHotStatusOnly ¶
func ParseJobHotStatusOnly(inputs []interface{}) *JobHotStatusOnly
func (*JobHotStatusOnly) Error ¶
func (e *JobHotStatusOnly) Error() string
type JobProviderOnly ¶
func ParseJobProviderOnly ¶
func ParseJobProviderOnly(inputs []interface{}) *JobProviderOnly
func (*JobProviderOnly) Error ¶
func (e *JobProviderOnly) Error() string
type JobStatus ¶
type JobStatus uint8
const ( JobStatusPending JobStatus = 0 JobStatusMetaScheduled JobStatus = 1 JobStatusScheduled JobStatus = 2 JobStatusRunning JobStatus = 3 JobStatusCancelled JobStatus = 4 JobStatusFinished JobStatus = 5 JobStatusFailed JobStatus = 6 JobStatusOutOfCredits JobStatus = 7 JobStatusPanicked JobStatus = 8 JobStatusUnknown JobStatus = 255 )
type MetaScheduledScheduledStatusOnly ¶
type MetaScheduledScheduledStatusOnly struct {
Current JobStatus
}
func ParseMetaScheduledScheduledStatusOnly ¶
func ParseMetaScheduledScheduledStatusOnly( inputs []interface{}, ) *MetaScheduledScheduledStatusOnly
func (*MetaScheduledScheduledStatusOnly) Error ¶
func (e *MetaScheduledScheduledStatusOnly) Error() string
type NewJobRequestDisabled ¶
type NewJobRequestDisabled struct{}
func ParseNewJobRequestDisabled ¶
func ParseNewJobRequestDisabled(inputs []interface{}) *NewJobRequestDisabled
func (*NewJobRequestDisabled) Error ¶
func (e *NewJobRequestDisabled) Error() string
type NoProvider ¶
type NoProvider struct{}
func ParseNoProvider ¶
func ParseNoProvider(inputs []interface{}) *NoProvider
func (*NoProvider) Error ¶
func (e *NoProvider) Error() string
type NoSpendingAuthority ¶
type NoSpendingAuthority struct{}
func ParseNoSpendingAuthority ¶
func ParseNoSpendingAuthority(inputs []interface{}) *NoSpendingAuthority
func (*NoSpendingAuthority) Error ¶
func (e *NoSpendingAuthority) Error() string
type PanicError ¶
type PanicError byte
const ( PanicErrorAssertionError PanicError = 0x1 PanicErrorArithmeticUnderOrOverflow PanicError = 0x11 PanicErrorDivisionByZero PanicError = 0x12 PanicErrorEnumConversionOutOfBounds PanicError = 0x21 PanicErrorIncorrectlyEncodedStorageByteArray PanicError = 0x22 PanicErrorPopOnEmptyArray PanicError = 0x31 PanicErrorArrayAccessOutOfBounds PanicError = 0x32 PanicErrorTooMuchMemoryAllocated PanicError = 0x41 PanicErrorZeroInitializedVariable PanicError = 0x51 )
func (PanicError) Error ¶
func (e PanicError) Error() string
type ProviderNotJoined ¶
type ProviderNotJoined struct{}
func ParseProviderNotJoined ¶
func ParseProviderNotJoined(inputs []interface{}) *ProviderNotJoined
func (*ProviderNotJoined) Error ¶
func (e *ProviderNotJoined) Error() string
type RemainingTimeAboveLimit ¶
func ParseRemainingTimeAboveLimit ¶
func ParseRemainingTimeAboveLimit( inputs []interface{}, ) *RemainingTimeAboveLimit
func (*RemainingTimeAboveLimit) Error ¶
func (e *RemainingTimeAboveLimit) Error() string
type RunningColdStatusOnly ¶
type RunningColdStatusOnly struct {
Current JobStatus
}
func ParseRunningColdStatusOnly ¶
func ParseRunningColdStatusOnly( inputs []interface{}, ) *RunningColdStatusOnly
func (*RunningColdStatusOnly) Error ¶
func (e *RunningColdStatusOnly) Error() string
type RunningScheduledStatusOnly ¶
type RunningScheduledStatusOnly struct {
Current JobStatus
}
func ParseRunningScheduledStatusOnly ¶
func ParseRunningScheduledStatusOnly( inputs []interface{}, ) *RunningScheduledStatusOnly
func (*RunningScheduledStatusOnly) Error ¶
func (e *RunningScheduledStatusOnly) Error() string
type SameStatusError ¶
type SameStatusError struct{}
func ParseSameStatusError ¶
func ParseSameStatusError(inputs []interface{}) *SameStatusError
func (*SameStatusError) Error ¶
func (e *SameStatusError) Error() string
type WaitingApprovalOnly ¶
type WaitingApprovalOnly struct{}
func ParseWaitingApprovalOnly ¶
func ParseWaitingApprovalOnly(inputs []interface{}) *WaitingApprovalOnly
func (*WaitingApprovalOnly) Error ¶
func (e *WaitingApprovalOnly) Error() string
Click to show internal directories.
Click to hide internal directories.