ops

package
v1.0.9 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2020 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Overview

Package ops is a generated GoMock package.

Index

Constants

View Source
const MinProgressDelta = 5

Variables

This section is empty.

Functions

This section is empty.

Types

type CoreosInstallerLogWriter

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

func NewCoreosInstallerLogWriter

func NewCoreosInstallerLogWriter(logger *logrus.Logger, progressReporter inventory_client.InventoryClient, hostID string) *CoreosInstallerLogWriter

func (*CoreosInstallerLogWriter) Write

func (l *CoreosInstallerLogWriter) Write(p []byte) (n int, err error)

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

func (m *MockOps) ExecCommand(liveLogger io.Writer, command string, args ...string) (string, error)

ExecCommand mocks base method

func (*MockOps) ExecPrivilegeCommand

func (m *MockOps) ExecPrivilegeCommand(liveLogger io.Writer, command string, args ...string) (string, error)

ExecPrivilegeCommand mocks base method

func (*MockOps) ExtractFromIgnition

func (m *MockOps) ExtractFromIgnition(ignitionPath, fileToExtract string) error

ExtractFromIgnition mocks base method

func (*MockOps) GetMCSLogs

func (m *MockOps) GetMCSLogs() (string, error)

GetMCSLogs mocks base method

func (*MockOps) GetVGByPV

func (m *MockOps) GetVGByPV(pvName string) (string, error)

GetVGByPV mocks base method

func (*MockOps) Mkdir

func (m *MockOps) Mkdir(dirName string) error

Mkdir mocks base method

func (*MockOps) PrepareController

func (m *MockOps) PrepareController() error

PrepareController mocks base method

func (*MockOps) Reboot

func (m *MockOps) Reboot() error

Reboot mocks base method

func (*MockOps) RemoveLV

func (m *MockOps) RemoveLV(lvName, vgName string) error

RemoveLV mocks base method

func (*MockOps) RemovePV

func (m *MockOps) RemovePV(pvName string) error

RemovePV mocks base method

func (*MockOps) RemoveVG

func (m *MockOps) RemoveVG(vgName string) error

RemoveVG mocks base method

func (*MockOps) SetFileInIgnition

func (m *MockOps) SetFileInIgnition(ignitionPath, filePath, contents string, mode int) error

SetFileInIgnition mocks base method

func (*MockOps) SystemctlAction

func (m *MockOps) SystemctlAction(action string, args ...string) error

SystemctlAction mocks base method

func (*MockOps) UploadInstallationLogs

func (m *MockOps) UploadInstallationLogs(isBootstrap bool) (string, error)

UploadInstallationLogs mocks base method

func (*MockOps) WriteImageToDisk

func (m *MockOps) WriteImageToDisk(ignitionPath, device, image string, progressReporter inventory_client.InventoryClient) error

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(liveLogger, command interface{}, args ...interface{}) *gomock.Call

ExecCommand indicates an expected call of ExecCommand

func (*MockOpsMockRecorder) ExecPrivilegeCommand

func (mr *MockOpsMockRecorder) ExecPrivilegeCommand(liveLogger, 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) GetMCSLogs

func (mr *MockOpsMockRecorder) GetMCSLogs() *gomock.Call

GetMCSLogs indicates an expected call of GetMCSLogs

func (*MockOpsMockRecorder) GetVGByPV

func (mr *MockOpsMockRecorder) GetVGByPV(pvName interface{}) *gomock.Call

GetVGByPV indicates an expected call of GetVGByPV

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) RemoveLV

func (mr *MockOpsMockRecorder) RemoveLV(lvName, vgName interface{}) *gomock.Call

RemoveLV indicates an expected call of RemoveLV

func (*MockOpsMockRecorder) RemovePV

func (mr *MockOpsMockRecorder) RemovePV(pvName interface{}) *gomock.Call

RemovePV indicates an expected call of RemovePV

func (*MockOpsMockRecorder) RemoveVG

func (mr *MockOpsMockRecorder) RemoveVG(vgName interface{}) *gomock.Call

RemoveVG indicates an expected call of RemoveVG

func (*MockOpsMockRecorder) SetFileInIgnition

func (mr *MockOpsMockRecorder) SetFileInIgnition(ignitionPath, filePath, contents, mode interface{}) *gomock.Call

SetFileInIgnition indicates an expected call of SetFileInIgnition

func (*MockOpsMockRecorder) SystemctlAction

func (mr *MockOpsMockRecorder) SystemctlAction(action interface{}, args ...interface{}) *gomock.Call

SystemctlAction indicates an expected call of SystemctlAction

func (*MockOpsMockRecorder) UploadInstallationLogs

func (mr *MockOpsMockRecorder) UploadInstallationLogs(isBootstrap interface{}) *gomock.Call

UploadInstallationLogs indicates an expected call of UploadInstallationLogs

func (*MockOpsMockRecorder) WriteImageToDisk

func (mr *MockOpsMockRecorder) WriteImageToDisk(ignitionPath, device, image, progressReporter interface{}) *gomock.Call

WriteImageToDisk indicates an expected call of WriteImageToDisk

type Ops

type Ops interface {
	ExecPrivilegeCommand(liveLogger io.Writer, command string, args ...string) (string, error)
	ExecCommand(liveLogger io.Writer, command string, args ...string) (string, error)
	Mkdir(dirName string) error
	WriteImageToDisk(ignitionPath string, device string, image string, progressReporter inventory_client.InventoryClient) error
	Reboot() error
	ExtractFromIgnition(ignitionPath string, fileToExtract string) error
	SetFileInIgnition(ignitionPath, filePath, contents string, mode int) error
	SystemctlAction(action string, args ...string) error
	PrepareController() error
	GetVGByPV(pvName string) (string, error)
	RemoveVG(vgName string) error
	RemoveLV(lvName, vgName string) error
	RemovePV(pvName string) error
	GetMCSLogs() (string, error)
	UploadInstallationLogs(isBootstrap bool) (string, error)
}

func NewOps

func NewOps(logger *logrus.Logger) Ops

NewOps return a new ops interface

Jump to

Keyboard shortcuts

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