Documentation ¶
Index ¶
Constants ¶
View Source
const ( GitStructureByDevice = "by_device" GitStructureByJob = "by_job" GitDirPerm = 0755 GitFilePerm = 0644 )
View Source
const MaxJobBytes int64 = 524288000
500 meg
Variables ¶
View Source
var Verbose bool
TODO: maybe remove this as a global var
Functions ¶
func RunController ¶
configFileName can be empty which means default config
Types ¶
type Controller ¶
type Controller struct { JobStore DeviceStore DataStore Scheduler // contains filtered or unexported fields }
func NewController ¶
func NewController(conf *config.Config) (*Controller, error)
func (*Controller) NewLocalScheduler ¶
func (c *Controller) NewLocalScheduler() (Scheduler, error)
func (*Controller) Start ¶
func (c *Controller) Start() error
type DataStore ¶
type DataStore interface {
Store(job *DataStoreJob)
}
type DataStoreJob ¶
type DeviceStore ¶
func NewDeviceStoreFromConfig ¶
func NewDeviceStoreFromConfig(conf *config.DeviceStore, jobStore JobStore) (DeviceStore, error)
Click to show internal directories.
Click to hide internal directories.