Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrNotFound indicates the instance doesn't exist. ErrNotFound = errors.New("action not found") )
Functions ¶
This section is empty.
Types ¶
type Action ¶
type Action struct { APIID ffs.APIID Cid cid.Cid Cfg ffs.StorageConfig ReplacedCid cid.Cid }
Action represents an action to be executed by the Scheduler.
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
Store is a Datastore backed implementation of ActionStore, which saves latests PushStorageConfig actions for a Cid.
func New ¶
func New(ds datastore.Datastore) *Store
New returns a new ActionStore backed by the Datastore.
func (*Store) GetRenewable ¶
GetRenewable returns all Actions that have StorageConfigs that have the Renew flag enabled and should be inspected for Deal renewals.
func (*Store) GetRepairable ¶
GetRepairable returns all Actions that have StorageConfigs with enabled auto-repair.
Click to show internal directories.
Click to hide internal directories.