Documentation ¶
Index ¶
- type Handler
- func (_m *Handler) Close()
- func (_m *Handler) CreateJob(job *schedule.Config, schedules []*calendar.Event, permission string) error
- func (_m *Handler) DisplayJobStatus(job *schedule.Config) error
- func (_m *Handler) DisplayParsedSchedules(command string, events []*calendar.Event)
- func (_m *Handler) DisplaySchedules(command string, schedules []string) error
- func (_m *Handler) DisplayStatus(profileName string) error
- func (_m *Handler) EXPECT() *Handler_Expecter
- func (_m *Handler) Init() error
- func (_m *Handler) ParseSchedules(schedules []string) ([]*calendar.Event, error)
- func (_m *Handler) RemoveJob(job *schedule.Config, permission string) error
- type Handler_Close_Call
- type Handler_CreateJob_Call
- func (_c *Handler_CreateJob_Call) Return(_a0 error) *Handler_CreateJob_Call
- func (_c *Handler_CreateJob_Call) Run(run func(job *schedule.Config, schedules []*calendar.Event, permission string)) *Handler_CreateJob_Call
- func (_c *Handler_CreateJob_Call) RunAndReturn(run func(*schedule.Config, []*calendar.Event, string) error) *Handler_CreateJob_Call
- type Handler_DisplayJobStatus_Call
- func (_c *Handler_DisplayJobStatus_Call) Return(_a0 error) *Handler_DisplayJobStatus_Call
- func (_c *Handler_DisplayJobStatus_Call) Run(run func(job *schedule.Config)) *Handler_DisplayJobStatus_Call
- func (_c *Handler_DisplayJobStatus_Call) RunAndReturn(run func(*schedule.Config) error) *Handler_DisplayJobStatus_Call
- type Handler_DisplayParsedSchedules_Call
- func (_c *Handler_DisplayParsedSchedules_Call) Return() *Handler_DisplayParsedSchedules_Call
- func (_c *Handler_DisplayParsedSchedules_Call) Run(run func(command string, events []*calendar.Event)) *Handler_DisplayParsedSchedules_Call
- func (_c *Handler_DisplayParsedSchedules_Call) RunAndReturn(run func(string, []*calendar.Event)) *Handler_DisplayParsedSchedules_Call
- type Handler_DisplaySchedules_Call
- func (_c *Handler_DisplaySchedules_Call) Return(_a0 error) *Handler_DisplaySchedules_Call
- func (_c *Handler_DisplaySchedules_Call) Run(run func(command string, schedules []string)) *Handler_DisplaySchedules_Call
- func (_c *Handler_DisplaySchedules_Call) RunAndReturn(run func(string, []string) error) *Handler_DisplaySchedules_Call
- type Handler_DisplayStatus_Call
- type Handler_Expecter
- func (_e *Handler_Expecter) Close() *Handler_Close_Call
- func (_e *Handler_Expecter) CreateJob(job interface{}, schedules interface{}, permission interface{}) *Handler_CreateJob_Call
- func (_e *Handler_Expecter) DisplayJobStatus(job interface{}) *Handler_DisplayJobStatus_Call
- func (_e *Handler_Expecter) DisplayParsedSchedules(command interface{}, events interface{}) *Handler_DisplayParsedSchedules_Call
- func (_e *Handler_Expecter) DisplaySchedules(command interface{}, schedules interface{}) *Handler_DisplaySchedules_Call
- func (_e *Handler_Expecter) DisplayStatus(profileName interface{}) *Handler_DisplayStatus_Call
- func (_e *Handler_Expecter) Init() *Handler_Init_Call
- func (_e *Handler_Expecter) ParseSchedules(schedules interface{}) *Handler_ParseSchedules_Call
- func (_e *Handler_Expecter) RemoveJob(job interface{}, permission interface{}) *Handler_RemoveJob_Call
- type Handler_Init_Call
- type Handler_ParseSchedules_Call
- func (_c *Handler_ParseSchedules_Call) Return(_a0 []*calendar.Event, _a1 error) *Handler_ParseSchedules_Call
- func (_c *Handler_ParseSchedules_Call) Run(run func(schedules []string)) *Handler_ParseSchedules_Call
- func (_c *Handler_ParseSchedules_Call) RunAndReturn(run func([]string) ([]*calendar.Event, error)) *Handler_ParseSchedules_Call
- type Handler_RemoveJob_Call
- func (_c *Handler_RemoveJob_Call) Return(_a0 error) *Handler_RemoveJob_Call
- func (_c *Handler_RemoveJob_Call) Run(run func(job *schedule.Config, permission string)) *Handler_RemoveJob_Call
- func (_c *Handler_RemoveJob_Call) RunAndReturn(run func(*schedule.Config, string) error) *Handler_RemoveJob_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Handler ¶
Handler is an autogenerated mock type for the Handler type
func NewHandler ¶
NewHandler creates a new instance of Handler. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*Handler) Close ¶
func (_m *Handler) Close()
Close provides a mock function with given fields:
func (*Handler) CreateJob ¶
func (_m *Handler) CreateJob(job *schedule.Config, schedules []*calendar.Event, permission string) error
CreateJob provides a mock function with given fields: job, schedules, permission
func (*Handler) DisplayJobStatus ¶
DisplayJobStatus provides a mock function with given fields: job
func (*Handler) DisplayParsedSchedules ¶
DisplayParsedSchedules provides a mock function with given fields: command, events
func (*Handler) DisplaySchedules ¶
DisplaySchedules provides a mock function with given fields: command, schedules
func (*Handler) DisplayStatus ¶
DisplayStatus provides a mock function with given fields: profileName
func (*Handler) EXPECT ¶
func (_m *Handler) EXPECT() *Handler_Expecter
func (*Handler) ParseSchedules ¶
ParseSchedules provides a mock function with given fields: schedules
type Handler_Close_Call ¶
Handler_Close_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Close'
func (*Handler_Close_Call) Return ¶
func (_c *Handler_Close_Call) Return() *Handler_Close_Call
func (*Handler_Close_Call) Run ¶
func (_c *Handler_Close_Call) Run(run func()) *Handler_Close_Call
func (*Handler_Close_Call) RunAndReturn ¶
func (_c *Handler_Close_Call) RunAndReturn(run func()) *Handler_Close_Call
type Handler_CreateJob_Call ¶
Handler_CreateJob_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateJob'
func (*Handler_CreateJob_Call) Return ¶
func (_c *Handler_CreateJob_Call) Return(_a0 error) *Handler_CreateJob_Call
func (*Handler_CreateJob_Call) Run ¶
func (_c *Handler_CreateJob_Call) Run(run func(job *schedule.Config, schedules []*calendar.Event, permission string)) *Handler_CreateJob_Call
func (*Handler_CreateJob_Call) RunAndReturn ¶
func (_c *Handler_CreateJob_Call) RunAndReturn(run func(*schedule.Config, []*calendar.Event, string) error) *Handler_CreateJob_Call
type Handler_DisplayJobStatus_Call ¶
Handler_DisplayJobStatus_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DisplayJobStatus'
func (*Handler_DisplayJobStatus_Call) Return ¶
func (_c *Handler_DisplayJobStatus_Call) Return(_a0 error) *Handler_DisplayJobStatus_Call
func (*Handler_DisplayJobStatus_Call) Run ¶
func (_c *Handler_DisplayJobStatus_Call) Run(run func(job *schedule.Config)) *Handler_DisplayJobStatus_Call
func (*Handler_DisplayJobStatus_Call) RunAndReturn ¶
func (_c *Handler_DisplayJobStatus_Call) RunAndReturn(run func(*schedule.Config) error) *Handler_DisplayJobStatus_Call
type Handler_DisplayParsedSchedules_Call ¶
Handler_DisplayParsedSchedules_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DisplayParsedSchedules'
func (*Handler_DisplayParsedSchedules_Call) Return ¶
func (_c *Handler_DisplayParsedSchedules_Call) Return() *Handler_DisplayParsedSchedules_Call
func (*Handler_DisplayParsedSchedules_Call) Run ¶
func (_c *Handler_DisplayParsedSchedules_Call) Run(run func(command string, events []*calendar.Event)) *Handler_DisplayParsedSchedules_Call
func (*Handler_DisplayParsedSchedules_Call) RunAndReturn ¶
func (_c *Handler_DisplayParsedSchedules_Call) RunAndReturn(run func(string, []*calendar.Event)) *Handler_DisplayParsedSchedules_Call
type Handler_DisplaySchedules_Call ¶
Handler_DisplaySchedules_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DisplaySchedules'
func (*Handler_DisplaySchedules_Call) Return ¶
func (_c *Handler_DisplaySchedules_Call) Return(_a0 error) *Handler_DisplaySchedules_Call
func (*Handler_DisplaySchedules_Call) Run ¶
func (_c *Handler_DisplaySchedules_Call) Run(run func(command string, schedules []string)) *Handler_DisplaySchedules_Call
func (*Handler_DisplaySchedules_Call) RunAndReturn ¶
func (_c *Handler_DisplaySchedules_Call) RunAndReturn(run func(string, []string) error) *Handler_DisplaySchedules_Call
type Handler_DisplayStatus_Call ¶
Handler_DisplayStatus_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DisplayStatus'
func (*Handler_DisplayStatus_Call) Return ¶
func (_c *Handler_DisplayStatus_Call) Return(_a0 error) *Handler_DisplayStatus_Call
func (*Handler_DisplayStatus_Call) Run ¶
func (_c *Handler_DisplayStatus_Call) Run(run func(profileName string)) *Handler_DisplayStatus_Call
func (*Handler_DisplayStatus_Call) RunAndReturn ¶
func (_c *Handler_DisplayStatus_Call) RunAndReturn(run func(string) error) *Handler_DisplayStatus_Call
type Handler_Expecter ¶
type Handler_Expecter struct {
// contains filtered or unexported fields
}
func (*Handler_Expecter) Close ¶
func (_e *Handler_Expecter) Close() *Handler_Close_Call
Close is a helper method to define mock.On call
func (*Handler_Expecter) CreateJob ¶
func (_e *Handler_Expecter) CreateJob(job interface{}, schedules interface{}, permission interface{}) *Handler_CreateJob_Call
CreateJob is a helper method to define mock.On call
- job *schedule.Config
- schedules []*calendar.Event
- permission string
func (*Handler_Expecter) DisplayJobStatus ¶
func (_e *Handler_Expecter) DisplayJobStatus(job interface{}) *Handler_DisplayJobStatus_Call
DisplayJobStatus is a helper method to define mock.On call
- job *schedule.Config
func (*Handler_Expecter) DisplayParsedSchedules ¶
func (_e *Handler_Expecter) DisplayParsedSchedules(command interface{}, events interface{}) *Handler_DisplayParsedSchedules_Call
DisplayParsedSchedules is a helper method to define mock.On call
- command string
- events []*calendar.Event
func (*Handler_Expecter) DisplaySchedules ¶
func (_e *Handler_Expecter) DisplaySchedules(command interface{}, schedules interface{}) *Handler_DisplaySchedules_Call
DisplaySchedules is a helper method to define mock.On call
- command string
- schedules []string
func (*Handler_Expecter) DisplayStatus ¶
func (_e *Handler_Expecter) DisplayStatus(profileName interface{}) *Handler_DisplayStatus_Call
DisplayStatus is a helper method to define mock.On call
- profileName string
func (*Handler_Expecter) Init ¶
func (_e *Handler_Expecter) Init() *Handler_Init_Call
Init is a helper method to define mock.On call
func (*Handler_Expecter) ParseSchedules ¶
func (_e *Handler_Expecter) ParseSchedules(schedules interface{}) *Handler_ParseSchedules_Call
ParseSchedules is a helper method to define mock.On call
- schedules []string
func (*Handler_Expecter) RemoveJob ¶
func (_e *Handler_Expecter) RemoveJob(job interface{}, permission interface{}) *Handler_RemoveJob_Call
RemoveJob is a helper method to define mock.On call
- job *schedule.Config
- permission string
type Handler_Init_Call ¶
Handler_Init_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Init'
func (*Handler_Init_Call) Return ¶
func (_c *Handler_Init_Call) Return(_a0 error) *Handler_Init_Call
func (*Handler_Init_Call) Run ¶
func (_c *Handler_Init_Call) Run(run func()) *Handler_Init_Call
func (*Handler_Init_Call) RunAndReturn ¶
func (_c *Handler_Init_Call) RunAndReturn(run func() error) *Handler_Init_Call
type Handler_ParseSchedules_Call ¶
Handler_ParseSchedules_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ParseSchedules'
func (*Handler_ParseSchedules_Call) Return ¶
func (_c *Handler_ParseSchedules_Call) Return(_a0 []*calendar.Event, _a1 error) *Handler_ParseSchedules_Call
func (*Handler_ParseSchedules_Call) Run ¶
func (_c *Handler_ParseSchedules_Call) Run(run func(schedules []string)) *Handler_ParseSchedules_Call
func (*Handler_ParseSchedules_Call) RunAndReturn ¶
func (_c *Handler_ParseSchedules_Call) RunAndReturn(run func([]string) ([]*calendar.Event, error)) *Handler_ParseSchedules_Call
type Handler_RemoveJob_Call ¶
Handler_RemoveJob_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RemoveJob'
func (*Handler_RemoveJob_Call) Return ¶
func (_c *Handler_RemoveJob_Call) Return(_a0 error) *Handler_RemoveJob_Call
func (*Handler_RemoveJob_Call) Run ¶
func (_c *Handler_RemoveJob_Call) Run(run func(job *schedule.Config, permission string)) *Handler_RemoveJob_Call
func (*Handler_RemoveJob_Call) RunAndReturn ¶
func (_c *Handler_RemoveJob_Call) RunAndReturn(run func(*schedule.Config, string) error) *Handler_RemoveJob_Call