task_store

package
v0.1.1-rc1 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2015 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Dir string `toml:"dir"`
}

func NewConfig

func NewConfig() Config

func (Config) Validate

func (c Config) Validate() error

type Service

type Service struct {
	HTTPDService interface {
		AddRoutes([]httpd.Route) error
		DelRoutes([]httpd.Route)
	}
	TaskMaster interface {
		StartTask(t *kapacitor.Task) (*kapacitor.ExecutingTask, error)
		StopTask(name string)
	}
	// contains filtered or unexported fields
}

func NewService

func NewService(conf Config, l *log.Logger) *Service

func (*Service) Close

func (ts *Service) Close() error

func (*Service) Delete

func (ts *Service) Delete(name string) error

func (*Service) Disable

func (ts *Service) Disable(name string) error

func (*Service) Enable

func (ts *Service) Enable(name string) error

func (*Service) GetTaskInfo

func (ts *Service) GetTaskInfo(tasks []string) ([]taskInfo, error)

func (*Service) IsEnabled

func (ts *Service) IsEnabled(name string) (e bool)

func (*Service) Load

func (ts *Service) Load(name string) (*kapacitor.Task, error)

func (*Service) LoadRaw

func (ts *Service) LoadRaw(name string) (*rawTask, error)

func (*Service) Open

func (ts *Service) Open() error

func (*Service) Save

func (ts *Service) Save(task *rawTask) error

func (*Service) StartTask

func (ts *Service) StartTask(t *kapacitor.Task) error

type TaskInfo

type TaskInfo struct {
	Name       string
	Type       kapacitor.TaskType
	DBRPs      []kapacitor.DBRP
	TICKscript string
	Dot        string
	Enabled    bool
	Error      string
}

Jump to

Keyboard shortcuts

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