Documentation ¶
Overview ¶
Package ops is a generated GoMock package.
Index ¶
- type MockOps
- func (m *MockOps) EXPECT() *MockOpsMockRecorder
- func (m *MockOps) ExecCommand(verbose bool, command string, args ...string) (string, error)
- func (m *MockOps) ExecPrivilegeCommand(verbose bool, command string, args ...string) (string, error)
- func (m *MockOps) ExtractFromIgnition(ignitionPath, fileToExtract string) error
- func (m *MockOps) Mkdir(dirName string) error
- func (m *MockOps) PrepareController() error
- func (m *MockOps) Reboot() error
- func (m *MockOps) SystemctlAction(action string, args ...string) error
- func (m *MockOps) WriteImageToDisk(ignitionPath, device, image string) error
- type MockOpsMockRecorder
- func (mr *MockOpsMockRecorder) ExecCommand(verbose, command interface{}, args ...interface{}) *gomock.Call
- func (mr *MockOpsMockRecorder) ExecPrivilegeCommand(verbose, command interface{}, args ...interface{}) *gomock.Call
- func (mr *MockOpsMockRecorder) ExtractFromIgnition(ignitionPath, fileToExtract interface{}) *gomock.Call
- func (mr *MockOpsMockRecorder) Mkdir(dirName interface{}) *gomock.Call
- func (mr *MockOpsMockRecorder) PrepareController() *gomock.Call
- func (mr *MockOpsMockRecorder) Reboot() *gomock.Call
- func (mr *MockOpsMockRecorder) SystemctlAction(action interface{}, args ...interface{}) *gomock.Call
- func (mr *MockOpsMockRecorder) WriteImageToDisk(ignitionPath, device, image interface{}) *gomock.Call
- type Ops
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockOps ¶
type MockOps struct {
// contains filtered or unexported fields
}
MockOps is a mock of Ops interface
func NewMockOps ¶
func NewMockOps(ctrl *gomock.Controller) *MockOps
NewMockOps creates a new mock instance
func (*MockOps) EXPECT ¶
func (m *MockOps) EXPECT() *MockOpsMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockOps) ExecCommand ¶
ExecCommand mocks base method
func (*MockOps) ExecPrivilegeCommand ¶
func (m *MockOps) ExecPrivilegeCommand(verbose bool, command string, args ...string) (string, error)
ExecPrivilegeCommand mocks base method
func (*MockOps) ExtractFromIgnition ¶
ExtractFromIgnition mocks base method
func (*MockOps) PrepareController ¶
PrepareController mocks base method
func (*MockOps) SystemctlAction ¶
SystemctlAction mocks base method
func (*MockOps) WriteImageToDisk ¶
WriteImageToDisk mocks base method
type MockOpsMockRecorder ¶
type MockOpsMockRecorder struct {
// contains filtered or unexported fields
}
MockOpsMockRecorder is the mock recorder for MockOps
func (*MockOpsMockRecorder) ExecCommand ¶
func (mr *MockOpsMockRecorder) ExecCommand(verbose, command interface{}, args ...interface{}) *gomock.Call
ExecCommand indicates an expected call of ExecCommand
func (*MockOpsMockRecorder) ExecPrivilegeCommand ¶
func (mr *MockOpsMockRecorder) ExecPrivilegeCommand(verbose, command interface{}, args ...interface{}) *gomock.Call
ExecPrivilegeCommand indicates an expected call of ExecPrivilegeCommand
func (*MockOpsMockRecorder) ExtractFromIgnition ¶
func (mr *MockOpsMockRecorder) ExtractFromIgnition(ignitionPath, fileToExtract interface{}) *gomock.Call
ExtractFromIgnition indicates an expected call of ExtractFromIgnition
func (*MockOpsMockRecorder) Mkdir ¶
func (mr *MockOpsMockRecorder) Mkdir(dirName interface{}) *gomock.Call
Mkdir indicates an expected call of Mkdir
func (*MockOpsMockRecorder) PrepareController ¶
func (mr *MockOpsMockRecorder) PrepareController() *gomock.Call
PrepareController indicates an expected call of PrepareController
func (*MockOpsMockRecorder) Reboot ¶
func (mr *MockOpsMockRecorder) Reboot() *gomock.Call
Reboot indicates an expected call of Reboot
func (*MockOpsMockRecorder) SystemctlAction ¶
func (mr *MockOpsMockRecorder) SystemctlAction(action interface{}, args ...interface{}) *gomock.Call
SystemctlAction indicates an expected call of SystemctlAction
func (*MockOpsMockRecorder) WriteImageToDisk ¶
func (mr *MockOpsMockRecorder) WriteImageToDisk(ignitionPath, device, image interface{}) *gomock.Call
WriteImageToDisk indicates an expected call of WriteImageToDisk
type Ops ¶
type Ops interface { ExecPrivilegeCommand(verbose bool, command string, args ...string) (string, error) ExecCommand(verbose bool, command string, args ...string) (string, error) Mkdir(dirName string) error WriteImageToDisk(ignitionPath string, device string, image string) error Reboot() error ExtractFromIgnition(ignitionPath string, fileToExtract string) error SystemctlAction(action string, args ...string) error PrepareController() error }