Documentation ¶
Index ¶
- func GetTimeAgo(jobTime time.Time) string
- type ConfigureJobTableEntries
- func (editJobTableEntries *ConfigureJobTableEntries) GetScriptEntryText() taskrunner.Script
- func (editJobTableEntries *ConfigureJobTableEntries) GetScriptScrollWindow() *gtk.ScrolledWindow
- func (editJobTableEntries *ConfigureJobTableEntries) ToJob(jobId uint) (*taskrunner.Job, error)
- func (editJobTableEntries *ConfigureJobTableEntries) ToWidget() gtk.IWidget
- type EditJobView
- type HomeScene
- type JobRunScene
- type JobScene
- type Scene
- type TaskrunnerGUI
- func (taskrunnerGUI *TaskrunnerGUI) NewConfigureJobTableEntries(job *taskrunner.Job, udevRulesDAL *triggers.UdevRulesDAL) *ConfigureJobTableEntries
- func (taskrunnerGUI *TaskrunnerGUI) NewEditJobView(job *taskrunner.Job, udevRulesDAL *triggers.UdevRulesDAL) *EditJobView
- func (taskrunner *TaskrunnerGUI) NewHomeScene() *HomeScene
- func (taskrunnerGUI *TaskrunnerGUI) NewJobRunScene(jobRun *taskrunner.JobRun) *JobRunScene
- func (taskrunnerGUI *TaskrunnerGUI) NewJobScene(job *taskrunner.Job) *JobScene
- func (taskrunnerGUI *TaskrunnerGUI) RenderScene(scene Scene)
- type TaskrunnerGUIOptions
- type ValidationLabel
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetTimeAgo ¶
if < 24 hours, x hours if < 7 days, x days ignores leap years, clock changes, etc. Just a rough conversion for display purposes.
Types ¶
type ConfigureJobTableEntries ¶
type ConfigureJobTableEntries struct { NameEntry *gtk.Entry DescriptionEntry *gtk.Entry ScriptEntry *gtk.TextView *ValidationLabel *TaskrunnerGUI *taskrunner.Job // contains filtered or unexported fields }
func (*ConfigureJobTableEntries) GetScriptEntryText ¶
func (editJobTableEntries *ConfigureJobTableEntries) GetScriptEntryText() taskrunner.Script
func (*ConfigureJobTableEntries) GetScriptScrollWindow ¶
func (editJobTableEntries *ConfigureJobTableEntries) GetScriptScrollWindow() *gtk.ScrolledWindow
func (*ConfigureJobTableEntries) ToJob ¶
func (editJobTableEntries *ConfigureJobTableEntries) ToJob(jobId uint) (*taskrunner.Job, error)
func (*ConfigureJobTableEntries) ToWidget ¶
func (editJobTableEntries *ConfigureJobTableEntries) ToWidget() gtk.IWidget
type EditJobView ¶
type EditJobView struct { *TaskrunnerGUI Job *taskrunner.Job // contains filtered or unexported fields }
func (*EditJobView) Content ¶
func (editJobView *EditJobView) Content() gtk.IWidget
func (*EditJobView) OnJobRunStatusChange ¶
func (editJobView *EditJobView) OnJobRunStatusChange(jobRun *taskrunner.JobRun)
func (*EditJobView) Title ¶
func (editJobView *EditJobView) Title() string
type HomeScene ¶
type HomeScene struct {
*TaskrunnerGUI
}
func (*HomeScene) OnJobRunStatusChange ¶
func (homeScreen *HomeScene) OnJobRunStatusChange(jobRun *taskrunner.JobRun)
type JobRunScene ¶
type JobRunScene struct { *TaskrunnerGUI // contains filtered or unexported fields }
func (*JobRunScene) Content ¶
func (jobRunScene *JobRunScene) Content() gtk.IWidget
func (*JobRunScene) OnJobRunStatusChange ¶
func (jobRunScene *JobRunScene) OnJobRunStatusChange(jobRun *taskrunner.JobRun)
func (*JobRunScene) Title ¶
func (jobRunScene *JobRunScene) Title() string
type JobScene ¶
type JobScene struct { *TaskrunnerGUI Job *taskrunner.Job }
func (*JobScene) OnJobRunStatusChange ¶
func (jobScene *JobScene) OnJobRunStatusChange(jobRun *taskrunner.JobRun)
type Scene ¶
type Scene interface { Title() string Content() gtk.IWidget OnJobRunStatusChange(jobRun *taskrunner.JobRun) }
type TaskrunnerGUI ¶
type TaskrunnerGUI struct { PaneContent Scene Window *gtk.Window *taskrunnerdal.TaskrunnerDAL JobStatusChangeChan chan *taskrunner.JobRun // job runs // contains filtered or unexported fields }
func NewTaskrunnerGUI ¶
func NewTaskrunnerGUI(taskrunnerDAL *taskrunnerdal.TaskrunnerDAL, udevRulesDAL *triggers.UdevRulesDAL, options TaskrunnerGUIOptions) *TaskrunnerGUI
func (*TaskrunnerGUI) NewConfigureJobTableEntries ¶
func (taskrunnerGUI *TaskrunnerGUI) NewConfigureJobTableEntries(job *taskrunner.Job, udevRulesDAL *triggers.UdevRulesDAL) *ConfigureJobTableEntries
func (*TaskrunnerGUI) NewEditJobView ¶
func (taskrunnerGUI *TaskrunnerGUI) NewEditJobView(job *taskrunner.Job, udevRulesDAL *triggers.UdevRulesDAL) *EditJobView
func (*TaskrunnerGUI) NewHomeScene ¶
func (taskrunner *TaskrunnerGUI) NewHomeScene() *HomeScene
func (*TaskrunnerGUI) NewJobRunScene ¶
func (taskrunnerGUI *TaskrunnerGUI) NewJobRunScene(jobRun *taskrunner.JobRun) *JobRunScene
func (*TaskrunnerGUI) NewJobScene ¶
func (taskrunnerGUI *TaskrunnerGUI) NewJobScene(job *taskrunner.Job) *JobScene
func (*TaskrunnerGUI) RenderScene ¶
func (taskrunnerGUI *TaskrunnerGUI) RenderScene(scene Scene)
type TaskrunnerGUIOptions ¶
type ValidationLabel ¶
func NewValidationLabel ¶
func NewValidationLabel(errColor *gdk.Color) *ValidationLabel
func (*ValidationLabel) Clear ¶
func (validationLabel *ValidationLabel) Clear()
func (*ValidationLabel) SetText ¶
func (validationLabel *ValidationLabel) SetText(text string)
Click to show internal directories.
Click to hide internal directories.