mocks

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cron

type Cron struct {
	mock.Mock
}

Cron is an autogenerated mock type for the Cron type

func (*Cron) Entries

func (_m *Cron) Entries() []cron.Entry

Entries provides a mock function with given fields:

func (*Cron) Remove

func (_m *Cron) Remove(id cron.EntryID)

Remove provides a mock function with given fields: id

func (*Cron) Schedule

func (_m *Cron) Schedule(schedule cron.Schedule, cmd cron.Job) cron.EntryID

Schedule provides a mock function with given fields: schedule, cmd

func (*Cron) Start

func (_m *Cron) Start()

Start provides a mock function with given fields:

func (*Cron) Stop

func (_m *Cron) Stop() context.Context

Stop provides a mock function with given fields:

type CrontabParser

type CrontabParser struct {
	mock.Mock
}

CrontabParser is an autogenerated mock type for the CrontabParser type

func (*CrontabParser) Changes

func (_m *CrontabParser) Changes(ctx context.Context) (<-chan []crontab.JobSpec, error)

Changes provides a mock function with given fields: ctx

func (*CrontabParser) List

func (_m *CrontabParser) List() ([]crontab.JobSpec, error)

List provides a mock function with given fields:

func (*CrontabParser) String

func (_m *CrontabParser) String() string

String provides a mock function with given fields:

type Notifier

type Notifier struct {
	mock.Mock
}

Notifier is an autogenerated mock type for the Notifier type

func (*Notifier) IsOnCompletion

func (_m *Notifier) IsOnCompletion() bool

IsOnCompletion provides a mock function with given fields:

func (*Notifier) IsOnError

func (_m *Notifier) IsOnError() bool

IsOnError provides a mock function with given fields:

func (*Notifier) MakeCompletionHTML added in v0.2.0

func (_m *Notifier) MakeCompletionHTML(spec string, command string) (string, error)

MakeCompletionHTML provides a mock function with given fields: spec, command

func (*Notifier) MakeErrorHTML added in v0.2.0

func (_m *Notifier) MakeErrorHTML(spec string, command string, errorLog string) (string, error)

MakeErrorHTML provides a mock function with given fields: spec, command, errorLog

func (*Notifier) Send

func (_m *Notifier) Send(subj string, text string) error

Send provides a mock function with given fields: subj, text

type Resumer

type Resumer struct {
	mock.Mock
}

Resumer is an autogenerated mock type for the Resumer type

func (*Resumer) List

func (_m *Resumer) List() []resumer.Cmd

List provides a mock function with given fields:

func (*Resumer) OnFinish

func (_m *Resumer) OnFinish(fname string) error

OnFinish provides a mock function with given fields: fname

func (*Resumer) OnStart

func (_m *Resumer) OnStart(cmd string) (string, error)

OnStart provides a mock function with given fields: cmd

func (*Resumer) String

func (_m *Resumer) String() string

String provides a mock function with given fields:

Jump to

Keyboard shortcuts

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