watcher

package
v0.20.0 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2021 License: Apache-2.0 Imports: 5 Imported by: 2

Documentation

Overview

Package watcher is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Machine

type Machine interface {
	State() string
	Transition(t string, args ...interface{}) error
	NotifyWatcherState(string, interface{})
	Name() string
	Directory() string
	TextFileDirectory() string
	Identity() string
	InstanceID() string
	Version() string
	TimeStampSeconds() int64
	OverrideData() ([]byte, error)
	ChoriaStatusFile() (string, int)
	Debugf(name string, format string, args ...interface{})
	Infof(name string, format string, args ...interface{})
	Errorf(name string, format string, args ...interface{})
}

type MockMachine

type MockMachine struct {
	// contains filtered or unexported fields
}

MockMachine is a mock of Machine interface

func NewMockMachine

func NewMockMachine(ctrl *gomock.Controller) *MockMachine

NewMockMachine creates a new mock instance

func (*MockMachine) ChoriaStatusFile

func (m *MockMachine) ChoriaStatusFile() (string, int)

ChoriaStatusFile mocks base method

func (*MockMachine) Debugf

func (m *MockMachine) Debugf(name, format string, args ...interface{})

Debugf mocks base method

func (*MockMachine) Directory

func (m *MockMachine) Directory() string

Directory mocks base method

func (*MockMachine) EXPECT

func (m *MockMachine) EXPECT() *MockMachineMockRecorder

EXPECT returns an object that allows the caller to indicate expected use

func (*MockMachine) Errorf

func (m *MockMachine) Errorf(name, format string, args ...interface{})

Errorf mocks base method

func (*MockMachine) Identity

func (m *MockMachine) Identity() string

Identity mocks base method

func (*MockMachine) Infof

func (m *MockMachine) Infof(name, format string, args ...interface{})

Infof mocks base method

func (*MockMachine) InstanceID

func (m *MockMachine) InstanceID() string

InstanceID mocks base method

func (*MockMachine) Name

func (m *MockMachine) Name() string

Name mocks base method

func (*MockMachine) NotifyWatcherState

func (m *MockMachine) NotifyWatcherState(arg0 string, arg1 interface{})

NotifyWatcherState mocks base method

func (*MockMachine) OverrideData

func (m *MockMachine) OverrideData() ([]byte, error)

OverrideData mocks base method

func (*MockMachine) State

func (m *MockMachine) State() string

State mocks base method

func (*MockMachine) TextFileDirectory

func (m *MockMachine) TextFileDirectory() string

TextFileDirectory mocks base method

func (*MockMachine) TimeStampSeconds

func (m *MockMachine) TimeStampSeconds() int64

TimeStampSeconds mocks base method

func (*MockMachine) Transition

func (m *MockMachine) Transition(t string, args ...interface{}) error

Transition mocks base method

func (*MockMachine) Version

func (m *MockMachine) Version() string

Version mocks base method

type MockMachineMockRecorder

type MockMachineMockRecorder struct {
	// contains filtered or unexported fields
}

MockMachineMockRecorder is the mock recorder for MockMachine

func (*MockMachineMockRecorder) ChoriaStatusFile

func (mr *MockMachineMockRecorder) ChoriaStatusFile() *gomock.Call

ChoriaStatusFile indicates an expected call of ChoriaStatusFile

func (*MockMachineMockRecorder) Debugf

func (mr *MockMachineMockRecorder) Debugf(name, format interface{}, args ...interface{}) *gomock.Call

Debugf indicates an expected call of Debugf

func (*MockMachineMockRecorder) Directory

func (mr *MockMachineMockRecorder) Directory() *gomock.Call

Directory indicates an expected call of Directory

func (*MockMachineMockRecorder) Errorf

func (mr *MockMachineMockRecorder) Errorf(name, format interface{}, args ...interface{}) *gomock.Call

Errorf indicates an expected call of Errorf

func (*MockMachineMockRecorder) Identity

func (mr *MockMachineMockRecorder) Identity() *gomock.Call

Identity indicates an expected call of Identity

func (*MockMachineMockRecorder) Infof

func (mr *MockMachineMockRecorder) Infof(name, format interface{}, args ...interface{}) *gomock.Call

Infof indicates an expected call of Infof

func (*MockMachineMockRecorder) InstanceID

func (mr *MockMachineMockRecorder) InstanceID() *gomock.Call

InstanceID indicates an expected call of InstanceID

func (*MockMachineMockRecorder) Name

func (mr *MockMachineMockRecorder) Name() *gomock.Call

Name indicates an expected call of Name

func (*MockMachineMockRecorder) NotifyWatcherState

func (mr *MockMachineMockRecorder) NotifyWatcherState(arg0, arg1 interface{}) *gomock.Call

NotifyWatcherState indicates an expected call of NotifyWatcherState

func (*MockMachineMockRecorder) OverrideData

func (mr *MockMachineMockRecorder) OverrideData() *gomock.Call

OverrideData indicates an expected call of OverrideData

func (*MockMachineMockRecorder) State

func (mr *MockMachineMockRecorder) State() *gomock.Call

State indicates an expected call of State

func (*MockMachineMockRecorder) TextFileDirectory

func (mr *MockMachineMockRecorder) TextFileDirectory() *gomock.Call

TextFileDirectory indicates an expected call of TextFileDirectory

func (*MockMachineMockRecorder) TimeStampSeconds

func (mr *MockMachineMockRecorder) TimeStampSeconds() *gomock.Call

TimeStampSeconds indicates an expected call of TimeStampSeconds

func (*MockMachineMockRecorder) Transition

func (mr *MockMachineMockRecorder) Transition(t interface{}, args ...interface{}) *gomock.Call

Transition indicates an expected call of Transition

func (*MockMachineMockRecorder) Version

func (mr *MockMachineMockRecorder) Version() *gomock.Call

Version indicates an expected call of Version

type Watcher

type Watcher struct {
	// contains filtered or unexported fields
}

func NewWatcher

func NewWatcher(name string, wtype string, announceInterval time.Duration, activeStates []string, machine Machine, fail string, success string) (*Watcher, error)

func (*Watcher) AnnounceInterval

func (w *Watcher) AnnounceInterval() time.Duration

func (*Watcher) CurrentState

func (w *Watcher) CurrentState() interface{}

func (*Watcher) Debugf

func (w *Watcher) Debugf(format string, args ...interface{})

func (*Watcher) Delete

func (w *Watcher) Delete()

func (*Watcher) Errorf

func (w *Watcher) Errorf(format string, args ...interface{})

func (*Watcher) FailEvent

func (w *Watcher) FailEvent() string

func (*Watcher) FailureTransition

func (w *Watcher) FailureTransition() error

func (*Watcher) Infof

func (w *Watcher) Infof(format string, args ...interface{})

func (*Watcher) Machine

func (w *Watcher) Machine() Machine

func (*Watcher) Name

func (w *Watcher) Name() string

func (*Watcher) NotifyStateChance

func (w *Watcher) NotifyStateChance()

func (*Watcher) NotifyWatcherState

func (w *Watcher) NotifyWatcherState(state interface{})

func (*Watcher) SetDeleteFunc

func (w *Watcher) SetDeleteFunc(f func())

func (*Watcher) ShouldWatch

func (w *Watcher) ShouldWatch() bool

func (*Watcher) StateChangeC

func (w *Watcher) StateChangeC() chan struct{}

func (*Watcher) SuccessEvent

func (w *Watcher) SuccessEvent() string

func (*Watcher) SuccessTransition

func (w *Watcher) SuccessTransition() error

func (*Watcher) Transition

func (w *Watcher) Transition(event string) error

func (*Watcher) Type

func (w *Watcher) Type() string

Jump to

Keyboard shortcuts

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