Documentation ¶
Overview ¶
Package watcher is a generated GoMock package.
Index ¶
- type Machine
- type MockMachine
- func (m *MockMachine) ChoriaStatusFile() (string, int)
- func (m *MockMachine) Debugf(name, format string, args ...interface{})
- func (m *MockMachine) Directory() string
- func (m *MockMachine) EXPECT() *MockMachineMockRecorder
- func (m *MockMachine) Errorf(name, format string, args ...interface{})
- func (m *MockMachine) Identity() string
- func (m *MockMachine) Infof(name, format string, args ...interface{})
- func (m *MockMachine) InstanceID() string
- func (m *MockMachine) Name() string
- func (m *MockMachine) NotifyWatcherState(arg0 string, arg1 interface{})
- func (m *MockMachine) OverrideData() ([]byte, error)
- func (m *MockMachine) State() string
- func (m *MockMachine) TextFileDirectory() string
- func (m *MockMachine) TimeStampSeconds() int64
- func (m *MockMachine) Transition(t string, args ...interface{}) error
- func (m *MockMachine) Version() string
- type MockMachineMockRecorder
- func (mr *MockMachineMockRecorder) ChoriaStatusFile() *gomock.Call
- func (mr *MockMachineMockRecorder) Debugf(name, format interface{}, args ...interface{}) *gomock.Call
- func (mr *MockMachineMockRecorder) Directory() *gomock.Call
- func (mr *MockMachineMockRecorder) Errorf(name, format interface{}, args ...interface{}) *gomock.Call
- func (mr *MockMachineMockRecorder) Identity() *gomock.Call
- func (mr *MockMachineMockRecorder) Infof(name, format interface{}, args ...interface{}) *gomock.Call
- func (mr *MockMachineMockRecorder) InstanceID() *gomock.Call
- func (mr *MockMachineMockRecorder) Name() *gomock.Call
- func (mr *MockMachineMockRecorder) NotifyWatcherState(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockMachineMockRecorder) OverrideData() *gomock.Call
- func (mr *MockMachineMockRecorder) State() *gomock.Call
- func (mr *MockMachineMockRecorder) TextFileDirectory() *gomock.Call
- func (mr *MockMachineMockRecorder) TimeStampSeconds() *gomock.Call
- func (mr *MockMachineMockRecorder) Transition(t interface{}, args ...interface{}) *gomock.Call
- func (mr *MockMachineMockRecorder) Version() *gomock.Call
- type Watcher
- func (w *Watcher) AnnounceInterval() time.Duration
- func (w *Watcher) CurrentState() interface{}
- func (w *Watcher) Debugf(format string, args ...interface{})
- func (w *Watcher) Delete()
- func (w *Watcher) Errorf(format string, args ...interface{})
- func (w *Watcher) FailEvent() string
- func (w *Watcher) FailureTransition() error
- func (w *Watcher) Infof(format string, args ...interface{})
- func (w *Watcher) Machine() Machine
- func (w *Watcher) Name() string
- func (w *Watcher) NotifyStateChance()
- func (w *Watcher) NotifyWatcherState(state interface{})
- func (w *Watcher) SetDeleteFunc(f func())
- func (w *Watcher) ShouldWatch() bool
- func (w *Watcher) StateChangeC() chan struct{}
- func (w *Watcher) SuccessEvent() string
- func (w *Watcher) SuccessTransition() error
- func (w *Watcher) Transition(event string) error
- func (w *Watcher) Type() string
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) 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) 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) 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
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 (*Watcher) AnnounceInterval ¶
func (*Watcher) CurrentState ¶
func (w *Watcher) CurrentState() interface{}
func (*Watcher) FailureTransition ¶
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 (*Watcher) StateChangeC ¶
func (w *Watcher) StateChangeC() chan struct{}