package
1.6.3
Repository: https://github.com/deepsquare-io/grid.git
Documentation: pkg.go.dev

# Functions

CheckAffinities checks if the given labels satisfy the given affinities.
No description provided by the author
CompareValues compares two values using the given operator.
CreditToDuration converts credits to a job duration based on pricing and resources allocation.
DurationToCredit converts a job duration to credits based on pricing and resources allocation.
IsPanicError checks if the byte of an error data is a panic error code.
JobIDFromHex converts a 32 bytes hexstring to a jobID.
JobIDToHex converts a jobID to an 32 bytes hexstring.
NewEventSubscriber creates an EventSubscriber used to watch events.
NewJobsByProviderFetcher instanciates a JobsByProviderFetcher.
NewOracle instanciates an Oracle.
NewRPCClientSet creates an RPCClientSet.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Constants

DefaultOracleURL is the default oracle URL.
JobStatusCancelled means that the job has been cancelled by the user or admin.
JobStatusFailed means that the job has failed.
JobStatusFinished means that the job has finished with success.
JobStatusMetaScheduled means that the job has been scheduled to a cluster, but that cluster has not yet handled it.
JobStatusOutOfCredits means that the job has timed out.
JobStatusPanicked means that the job has failed from an unexpected error.
JobStatusPending means the job has been submitted, but the meta-scheduler hasn't considered to schedule it yet.
JobStatusRunning means that the job is running on a worker node.
JobStatusScheduled means that the job has been scheduled to a worker node.
JobStatusUnknown is a unknown state.
PanicErrorArithmeticUnderOrOverflow happens when a number under or overflows.
PanicErrorArrayAccessOutOfBounds happens when calling an element from an index out of bounds of an array.
PanicErrorAssertionError happens when `assert` fails.
PanicErrorDivisionByZero happens when a number is divided by a zero denominator.
PanicErrorEnumConversionOutOfBounds happens when a number is out of bounds of an enum.
PanicErrorIncorrectlyEncodedStorageByteArray happens when byte array is badly encoded.
PanicErrorPopOnEmptyArray happens when calling pop on an empty array.
PanicErrorTooMuchMemoryAllocated happens when there is too much memory allocated for the EVM.
PanicErrorZeroInitializedVariable happens when a variable is not initialized and it is forbidden to use the zero value of that variable.

# Variables

ErrDivByZero is the error returned when a division by zero happens.
ErrNewRequestJobNotFound happens when submitting a job, but the job is not found.

# Structs

AllowanceManager is a manager for allowances.
No description provided by the author
No description provided by the author
Backend is a wrapper around the EthereumBackend used to interact with the Meta-Scheduler smart-contract.
No description provided by the author
CreditManager is a manager for credits.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
EventSubscriber is a subscriber for events.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
JobFetcher is a fetcher for jobs.
No description provided by the author
No description provided by the author
JobScheduler is a scheduler for jobs.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Oracle is a client for the meta-scheduler oracle.
OracleOptions are options for the oracle.
ProviderManager is a manager for providers.
No description provided by the author
No description provided by the author
RPCClientSet is a set of clients that interact with DeepSquare.
No description provided by the author
RunningJobsByProviderFetcher is a fetcher for jobs by provider.
No description provided by the author
No description provided by the author
No description provided by the author

# Interfaces

EthereumBackend combines [bind.ContractBackend] and [bind.DeployBackend].

# Type aliases

JobStatus is the job status stored in the smart-contract.
PanicError is an native EVM error.