Documentation ¶
Overview ¶
Code generated by MockGen. DO NOT EDIT. Source: github.com/rancher-sandbox/cluster-api-provider-elemental/internal/agent/host (interfaces: Manager)
Generated by this command:
mockgen -copyright_file=hack/boilerplate.go.txt -destination=internal/agent/host/host_mocks.go -package=host github.com/rancher-sandbox/cluster-api-provider-elemental/internal/agent/host Manager
Package host is a generated GoMock package.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Manager ¶ added in v0.1.0
type Manager interface { PowerOff() error Reboot() error SetHostname(hostname string) error GetCurrentHostname() (string, error) }
func NewManager ¶ added in v0.1.0
func NewManager() Manager
type MockManager ¶ added in v0.1.0
type MockManager struct {
// contains filtered or unexported fields
}
MockManager is a mock of Manager interface.
func NewMockManager ¶ added in v0.1.0
func NewMockManager(ctrl *gomock.Controller) *MockManager
NewMockManager creates a new mock instance.
func (*MockManager) EXPECT ¶ added in v0.1.0
func (m *MockManager) EXPECT() *MockManagerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockManager) GetCurrentHostname ¶ added in v0.1.0
func (m *MockManager) GetCurrentHostname() (string, error)
GetCurrentHostname mocks base method.
func (*MockManager) PowerOff ¶ added in v0.1.0
func (m *MockManager) PowerOff() error
PowerOff mocks base method.
func (*MockManager) Reboot ¶ added in v0.1.0
func (m *MockManager) Reboot() error
Reboot mocks base method.
func (*MockManager) SetHostname ¶ added in v0.1.0
func (m *MockManager) SetHostname(arg0 string) error
SetHostname mocks base method.
type MockManagerMockRecorder ¶ added in v0.1.0
type MockManagerMockRecorder struct {
// contains filtered or unexported fields
}
MockManagerMockRecorder is the mock recorder for MockManager.
func (*MockManagerMockRecorder) GetCurrentHostname ¶ added in v0.1.0
func (mr *MockManagerMockRecorder) GetCurrentHostname() *gomock.Call
GetCurrentHostname indicates an expected call of GetCurrentHostname.
func (*MockManagerMockRecorder) PowerOff ¶ added in v0.1.0
func (mr *MockManagerMockRecorder) PowerOff() *gomock.Call
PowerOff indicates an expected call of PowerOff.
func (*MockManagerMockRecorder) Reboot ¶ added in v0.1.0
func (mr *MockManagerMockRecorder) Reboot() *gomock.Call
Reboot indicates an expected call of Reboot.
func (*MockManagerMockRecorder) SetHostname ¶ added in v0.1.0
func (mr *MockManagerMockRecorder) SetHostname(arg0 any) *gomock.Call
SetHostname indicates an expected call of SetHostname.