client

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2024 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Overview

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

Generated by this command:

mockgen -copyright_file=hack/boilerplate.go.txt -destination=internal/agent/client/client_mocks.go -package=client github.com/rancher-sandbox/cluster-api-provider-elemental/internal/agent/client Client

Package client is a generated GoMock package.

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrUnexpectedCode = errors.New("unexpected return code")
	ErrInvalidScheme  = errors.New("invalid scheme, use 'https' instead")
)

Functions

This section is empty.

Types

type Client

type Client interface {
	Init(vfs.FS, identity.Identity, config.Config) error
	GetRegistration(token string) (*api.RegistrationResponse, error)
	CreateHost(newHost api.HostCreateRequest, registrationToken string) error
	DeleteHost(hostname string) error
	PatchHost(patch api.HostPatchRequest, hostname string) (*api.HostResponse, error)
	GetBootstrap(hostname string) (*api.BootstrapResponse, error)
}

func NewClient

func NewClient(version string) Client

type MockClient added in v0.0.2

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

MockClient is a mock of Client interface.

func NewMockClient added in v0.0.2

func NewMockClient(ctrl *gomock.Controller) *MockClient

NewMockClient creates a new mock instance.

func (*MockClient) CreateHost added in v0.0.2

func (m *MockClient) CreateHost(arg0 api.HostCreateRequest, arg1 string) error

CreateHost mocks base method.

func (*MockClient) DeleteHost added in v0.0.2

func (m *MockClient) DeleteHost(arg0 string) error

DeleteHost mocks base method.

func (*MockClient) EXPECT added in v0.0.2

func (m *MockClient) EXPECT() *MockClientMockRecorder

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

func (*MockClient) GetBootstrap added in v0.0.2

func (m *MockClient) GetBootstrap(arg0 string) (*api.BootstrapResponse, error)

GetBootstrap mocks base method.

func (*MockClient) GetRegistration added in v0.0.2

func (m *MockClient) GetRegistration(arg0 string) (*api.RegistrationResponse, error)

GetRegistration mocks base method.

func (*MockClient) Init added in v0.0.2

func (m *MockClient) Init(arg0 vfs.FS, arg1 identity.Identity, arg2 config.Config) error

Init mocks base method.

func (*MockClient) PatchHost added in v0.0.2

func (m *MockClient) PatchHost(arg0 api.HostPatchRequest, arg1 string) (*api.HostResponse, error)

PatchHost mocks base method.

type MockClientMockRecorder added in v0.0.2

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

MockClientMockRecorder is the mock recorder for MockClient.

func (*MockClientMockRecorder) CreateHost added in v0.0.2

func (mr *MockClientMockRecorder) CreateHost(arg0, arg1 any) *gomock.Call

CreateHost indicates an expected call of CreateHost.

func (*MockClientMockRecorder) DeleteHost added in v0.0.2

func (mr *MockClientMockRecorder) DeleteHost(arg0 any) *gomock.Call

DeleteHost indicates an expected call of DeleteHost.

func (*MockClientMockRecorder) GetBootstrap added in v0.0.2

func (mr *MockClientMockRecorder) GetBootstrap(arg0 any) *gomock.Call

GetBootstrap indicates an expected call of GetBootstrap.

func (*MockClientMockRecorder) GetRegistration added in v0.0.2

func (mr *MockClientMockRecorder) GetRegistration(arg0 any) *gomock.Call

GetRegistration indicates an expected call of GetRegistration.

func (*MockClientMockRecorder) Init added in v0.0.2

func (mr *MockClientMockRecorder) Init(arg0, arg1, arg2 any) *gomock.Call

Init indicates an expected call of Init.

func (*MockClientMockRecorder) PatchHost added in v0.0.2

func (mr *MockClientMockRecorder) PatchHost(arg0, arg1 any) *gomock.Call

PatchHost indicates an expected call of PatchHost.

Jump to

Keyboard shortcuts

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