models

package
v0.0.0-...-5e0bfd6 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2017 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cache

type Cache struct {
	Macros []Macro
}

type Duration

type Duration struct {
	time.Duration
}

func (*Duration) MarshalJSON

func (d *Duration) MarshalJSON() (b []byte, err error)

func (*Duration) UnmarshalJSON

func (d *Duration) UnmarshalJSON(b []byte) error

type Macro

type Macro struct {
	Command string
	Args    []interface{}
}

type Task

type Task struct {
	Name                   string
	Command                string
	Args                   []string
	Interval               Duration
	Timeout                Duration
	IterationOnFail        int
	LogFilePath            string
	CacheEngineModuleName  string
	CacheEngineCredentials *json.RawMessage
	// contains filtered or unexported fields
}

func (*Task) Initialize

func (t *Task) Initialize() error

func (*Task) Log

func (t *Task) Log() *log.Logger

Jump to

Keyboard shortcuts

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