daemon

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2019 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client interface {
	ListProcs() ([]proc_metadata.Metadata, error)
	ExecuteProc(string, map[string]string) (string, error)
	StreamProcLogs(string) error
	GetDefinitiveProcExecutionStatus(string) (string, error)
	ScheduleJob(string, string, string, string, string, map[string]string) (string, error)
	ListScheduledProcs() ([]schedule.ScheduledJob, error)
	DescribeScheduledProc(string) (schedule.ScheduledJob, error)
	RemoveScheduledProc(string) error
}

func NewClient

func NewClient(printer io.Printer, proctorConfigLoader config.Loader) Client

type MockClient

type MockClient struct {
	mock.Mock
}

func (*MockClient) DescribeScheduledProc added in v0.5.0

func (m *MockClient) DescribeScheduledProc(jobID string) (schedule.ScheduledJob, error)

func (*MockClient) ExecuteProc

func (m *MockClient) ExecuteProc(name string, procArgs map[string]string) (string, error)

func (*MockClient) GetDefinitiveProcExecutionStatus added in v0.4.0

func (m *MockClient) GetDefinitiveProcExecutionStatus(name string) (string, error)

func (*MockClient) ListProcs

func (m *MockClient) ListProcs() ([]proc_metadata.Metadata, error)

func (*MockClient) ListScheduledProcs added in v0.5.0

func (m *MockClient) ListScheduledProcs() ([]schedule.ScheduledJob, error)

func (*MockClient) RemoveScheduledProc added in v0.5.0

func (m *MockClient) RemoveScheduledProc(jobID string) error

func (*MockClient) ScheduleJob added in v0.5.0

func (m *MockClient) ScheduleJob(name, tags, time, notificationEmails string, group string, jobArgs map[string]string) (string, error)

func (*MockClient) StreamProcLogs

func (m *MockClient) StreamProcLogs(name string) error

type ProcToExecute

type ProcToExecute struct {
	Name string            `json:"name"`
	Args map[string]string `json:"args"`
}

type ScheduleJobPayload added in v0.5.0

type ScheduleJobPayload struct {
	ID                 string            `json:"id"`
	Name               string            `json:"name"`
	Tags               string            `json:"tags"`
	Time               string            `json:"time"`
	NotificationEmails string            `json:"notification_emails"`
	Group              string            `json:"group_name"`
	Args               map[string]string `json:"args"`
}

Jump to

Keyboard shortcuts

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