hostname

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Code generated by MockGen. DO NOT EDIT. Source: github.com/rancher-sandbox/cluster-api-provider-elemental/internal/agent/hostname (interfaces: Manager)

Generated by this command:

mockgen -copyright_file=hack/boilerplate.go.txt -destination=internal/agent/hostname/hostname_mocks.go -package=hostname github.com/rancher-sandbox/cluster-api-provider-elemental/internal/agent/hostname Manager

Package hostname 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.0.2

type Manager interface {
	SetHostname(hostname string) error
	PickHostname(conf infrastructurev1beta1.Hostname) (string, error)
	GetCurrentHostname() (string, error)
}

func NewManager added in v0.0.2

func NewManager() Manager

type MockManager added in v0.0.2

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

MockManager is a mock of Manager interface.

func NewMockManager added in v0.0.2

func NewMockManager(ctrl *gomock.Controller) *MockManager

NewMockManager creates a new mock instance.

func (*MockManager) EXPECT added in v0.0.2

func (m *MockManager) EXPECT() *MockManagerMockRecorder

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

func (*MockManager) GetCurrentHostname added in v0.0.2

func (m *MockManager) GetCurrentHostname() (string, error)

GetCurrentHostname mocks base method.

func (*MockManager) PickHostname added in v0.0.2

func (m *MockManager) PickHostname(arg0 v1beta1.Hostname) (string, error)

PickHostname mocks base method.

func (*MockManager) SetHostname added in v0.0.2

func (m *MockManager) SetHostname(arg0 string) error

SetHostname mocks base method.

type MockManagerMockRecorder added in v0.0.2

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

MockManagerMockRecorder is the mock recorder for MockManager.

func (*MockManagerMockRecorder) GetCurrentHostname added in v0.0.2

func (mr *MockManagerMockRecorder) GetCurrentHostname() *gomock.Call

GetCurrentHostname indicates an expected call of GetCurrentHostname.

func (*MockManagerMockRecorder) PickHostname added in v0.0.2

func (mr *MockManagerMockRecorder) PickHostname(arg0 any) *gomock.Call

PickHostname indicates an expected call of PickHostname.

func (*MockManagerMockRecorder) SetHostname added in v0.0.2

func (mr *MockManagerMockRecorder) SetHostname(arg0 any) *gomock.Call

SetHostname indicates an expected call of SetHostname.

Jump to

Keyboard shortcuts

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