storage

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: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockStore

type MockStore struct {
	mock.Mock
}

func (*MockStore) AuditJobsExecution added in v0.5.0

func (m *MockStore) AuditJobsExecution(jobsExecutionAuditLog *postgres.JobsExecutionAuditLog) error

func (*MockStore) GetEnabledScheduledJobs added in v0.5.0

func (m *MockStore) GetEnabledScheduledJobs() ([]postgres.JobsSchedule, error)

func (*MockStore) GetJobExecutionStatus

func (m *MockStore) GetJobExecutionStatus(jobName string) (string, error)

func (*MockStore) GetScheduledJob added in v0.5.0

func (m *MockStore) GetScheduledJob(jobID string) ([]postgres.JobsSchedule, error)

func (*MockStore) GetScheduledJobs added in v0.5.0

func (m *MockStore) GetScheduledJobs() ([]postgres.JobsSchedule, error)

func (*MockStore) InsertScheduledJob added in v0.5.0

func (m *MockStore) InsertScheduledJob(jobName, tags, time, notificationEmails, userEmail, groupName string, jobArgs map[string]string) (string, error)

func (*MockStore) RemoveScheduledJob added in v0.5.0

func (m *MockStore) RemoveScheduledJob(jobID string) (int64, error)

func (*MockStore) UpdateJobsExecutionAuditLog

func (m *MockStore) UpdateJobsExecutionAuditLog(JobNameSubmittedForExecution, status string) error

type Store

type Store interface {
	AuditJobsExecution(*postgres.JobsExecutionAuditLog) error
	UpdateJobsExecutionAuditLog(string, string) error
	GetJobExecutionStatus(string) (string, error)
	InsertScheduledJob(string, string, string, string, string, string, map[string]string) (string, error)
	GetScheduledJobs() ([]postgres.JobsSchedule, error)
	GetEnabledScheduledJobs() ([]postgres.JobsSchedule, error)
	GetScheduledJob(string) ([]postgres.JobsSchedule, error)
	RemoveScheduledJob(string) (int64, error)
}

func New

func New(postgresClient postgres.Client) Store

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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