Documentation
¶
Index ¶
- func InitData()
- type Config
- type Data
- type DataElement
- type Dataer
- type Entry
- type Table
- func (t Table) Add(i interface{}) Table
- func (t Table) AddEntries(l ...Entry) Table
- func (t Table) AddTable(l Table) Table
- func (t Table) DeepCopy() *Table
- func (t Table) DelEntry(e Entry) Table
- func (t Table) Merge(i interface{}) Table
- func (t Table) MergeEntries(l ...Entry) Table
- func (t Table) MergeEntry(e Entry) Table
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct {
Action string `json:"action"`
Schedule string `json:"schedule"`
Key string `json:"key"`
LastRunFile string `json:"last_run_file"`
LastSuccessFile string `json:"last_success_file"`
MaxParallel int `json:"max_parallel"`
Require string `json:"require"`
RequireCollector bool `json:"require_collector"`
RequireProvisioned bool `json:"require_provisioned"`
}
type Data ¶
Data defines a shared holder for all objects Dataer
var ( // TableData is the package data holder for all objects schedule TableData *Data[Table] )
func (*Data[T]) GetAll ¶
func (c *Data[T]) GetAll() []DataElement[T]
type DataElement ¶
type Entry ¶
type Entry struct {
Config
LastRunAt time.Time `json:"last_run_at"`
NextRunAt time.Time `json:"next_run_at"`
Node string `json:"node"`
Path naming.Path `json:"path"`
RunDir string `json:"run_dir"`
}
func (Entry) GetLastRun ¶
type Table ¶
type Table []Entry
func (Table) AddEntries ¶
func (Table) MergeEntries ¶
func (Table) MergeEntry ¶
Click to show internal directories.
Click to hide internal directories.