Documentation ¶
Index ¶
- Constants
- type BBS
- func (self *BBS) GetAllClaimedRunOnces() ([]models.RunOnce, error)
- func (self *BBS) GetAllCompletedRunOnces() ([]models.RunOnce, error)
- func (self *BBS) GetAllExecutors() ([]string, error)
- func (self *BBS) GetAllPendingRunOnces() ([]models.RunOnce, error)
- func (self *BBS) GetAllStartingRunOnces() ([]models.RunOnce, error)
- type ExecutorBBS
- type FileServerBBS
- type Presence
- type PresenceInterface
- type StagerBBS
Constants ¶
View Source
const ClaimTTL = 10 * time.Second
View Source
const ExecutorSchemaRoot = SchemaRoot + "executor"
View Source
const FileServerSchemaRoot = SchemaRoot + "file_server"
View Source
const RunOnceSchemaRoot = SchemaRoot + "run_once"
View Source
const SchemaRoot = "/v1/"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BBS ¶
type BBS struct { ExecutorBBS StagerBBS FileServerBBS // contains filtered or unexported fields }
func New ¶
func New(store storeadapter.StoreAdapter) *BBS
func (*BBS) GetAllClaimedRunOnces ¶
func (*BBS) GetAllCompletedRunOnces ¶
func (*BBS) GetAllExecutors ¶
func (*BBS) GetAllPendingRunOnces ¶
type ExecutorBBS ¶
type ExecutorBBS interface { MaintainExecutorPresence( heartbeatInterval time.Duration, executorID string, ) (presence PresenceInterface, disappeared <-chan bool, err error) WatchForDesiredRunOnce() (<-chan models.RunOnce, chan<- bool, <-chan error) ClaimRunOnce(models.RunOnce) error StartRunOnce(models.RunOnce) error CompleteRunOnce(models.RunOnce) error ConvergeRunOnce(timeToClaim time.Duration) MaintainConvergeLock(interval time.Duration, executorID string) (disappeared <-chan bool, stop chan<- chan bool, err error) }
type FileServerBBS ¶
type Presence ¶
type Presence struct {
// contains filtered or unexported fields
}
func NewPresence ¶
func NewPresence(store storeadapter.StoreAdapter, key string, value []byte) *Presence
type PresenceInterface ¶
type PresenceInterface interface {
Remove()
}
Source Files ¶
Click to show internal directories.
Click to hide internal directories.