tasks

package
v0.0.0-...-ea906fb Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 17, 2023 License: BSD-3-Clause Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FileTaskHandler

type FileTaskHandler struct {
	BasePath string
}

func (*FileTaskHandler) Handle

func (f *FileTaskHandler) Handle(t *Task) error

type HangTaskHandler

type HangTaskHandler struct{}

func (*HangTaskHandler) Handle

func (h *HangTaskHandler) Handle(t *Task) error

type StdErrTaskHandler

type StdErrTaskHandler struct {
	BasePath string
}

func (*StdErrTaskHandler) Handle

func (h *StdErrTaskHandler) Handle(t *Task) error

type StdOutTaskHandler

type StdOutTaskHandler struct {
	BasePath string
}

func (*StdOutTaskHandler) Handle

func (h *StdOutTaskHandler) Handle(t *Task) error

type Task

type Task struct {
	Name        string `yaml:"name"`
	Type        string `yaml:"type"`
	Input       string `yaml:"input"`
	Delay       int    `yaml:"delay"`
	InitDelay   int    `yaml:"initdelay"`
	Repeat      string `yaml:"repeat"`
	OutPath     string `yaml:"outPath"`
	Permissions uint32 `yaml:"perms"`
}

type TaskHandler

type TaskHandler interface {
	Handle(t *Task) error
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL