mocks

package
v1.0.0-beta.4 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	mock.Mock
}

Client is an autogenerated mock type for the Client type

func NewClient

func NewClient(t mockConstructorTestingTNewClient) *Client

NewClient creates a new instance of Client. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*Client) DeleteBootRescue

func (_m *Client) DeleteBootRescue(id int) (*models.Rescue, error)

DeleteBootRescue provides a mock function with given fields: id

func (*Client) GetBMServer

func (_m *Client) GetBMServer(_a0 int) (*models.Server, error)

GetBMServer provides a mock function with given fields: _a0

func (*Client) GetBootRescue

func (_m *Client) GetBootRescue(id int) (*models.Rescue, error)

GetBootRescue provides a mock function with given fields: id

func (*Client) GetReboot

func (_m *Client) GetReboot(_a0 int) (*models.Reset, error)

GetReboot provides a mock function with given fields: _a0

func (*Client) ListBMServers

func (_m *Client) ListBMServers() ([]models.Server, error)

ListBMServers provides a mock function with given fields:

func (*Client) ListSSHKeys

func (_m *Client) ListSSHKeys() ([]models.Key, error)

ListSSHKeys provides a mock function with given fields:

func (*Client) RebootBMServer

func (_m *Client) RebootBMServer(_a0 int, _a1 v1beta1.RebootType) (*models.ResetPost, error)

RebootBMServer provides a mock function with given fields: _a0, _a1

func (*Client) SetBMServerName

func (_m *Client) SetBMServerName(_a0 int, _a1 string) (*models.Server, error)

SetBMServerName provides a mock function with given fields: _a0, _a1

func (*Client) SetBootRescue

func (_m *Client) SetBootRescue(id int, fingerprint string) (*models.Rescue, error)

SetBootRescue provides a mock function with given fields: id, fingerprint

func (*Client) SetSSHKey

func (_m *Client) SetSSHKey(name string, publickey string) (*models.Key, error)

SetSSHKey provides a mock function with given fields: name, publickey

func (*Client) ValidateCredentials

func (_m *Client) ValidateCredentials() error

ValidateCredentials provides a mock function with given fields:

type Factory

type Factory struct {
	mock.Mock
}

Factory is an autogenerated mock type for the Factory type

func NewFactory

func NewFactory(t mockConstructorTestingTNewFactory) *Factory

NewFactory creates a new instance of Factory. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*Factory) NewClient

func (_m *Factory) NewClient(_a0 robotclient.Credentials) robotclient.Client

NewClient provides a mock function with given fields: _a0

Jump to

Keyboard shortcuts

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