mocks

package
v1.0.0-beta.34 Latest Latest
Warning

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

Go to latest
Published: May 9, 2024 License: Apache-2.0 Imports: 5 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 interface {
	mock.TestingT
	Cleanup(func())
}) *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. The first argument is typically a *testing.T value.

func (*Client) AddIPTargetToLoadBalancer

func (_m *Client) AddIPTargetToLoadBalancer(_a0 context.Context, _a1 hcloud.LoadBalancerAddIPTargetOpts, _a2 *hcloud.LoadBalancer) error

AddIPTargetToLoadBalancer provides a mock function with given fields: _a0, _a1, _a2

func (*Client) AddServerToPlacementGroup

func (_m *Client) AddServerToPlacementGroup(_a0 context.Context, _a1 *hcloud.Server, _a2 *hcloud.PlacementGroup) error

AddServerToPlacementGroup provides a mock function with given fields: _a0, _a1, _a2

func (*Client) AddServiceToLoadBalancer

func (_m *Client) AddServiceToLoadBalancer(_a0 context.Context, _a1 *hcloud.LoadBalancer, _a2 hcloud.LoadBalancerAddServiceOpts) error

AddServiceToLoadBalancer provides a mock function with given fields: _a0, _a1, _a2

func (*Client) AddTargetServerToLoadBalancer

func (_m *Client) AddTargetServerToLoadBalancer(_a0 context.Context, _a1 hcloud.LoadBalancerAddServerTargetOpts, _a2 *hcloud.LoadBalancer) error

AddTargetServerToLoadBalancer provides a mock function with given fields: _a0, _a1, _a2

func (*Client) AttachLoadBalancerToNetwork

func (_m *Client) AttachLoadBalancerToNetwork(_a0 context.Context, _a1 *hcloud.LoadBalancer, _a2 hcloud.LoadBalancerAttachToNetworkOpts) error

AttachLoadBalancerToNetwork provides a mock function with given fields: _a0, _a1, _a2

func (*Client) AttachServerToNetwork

func (_m *Client) AttachServerToNetwork(_a0 context.Context, _a1 *hcloud.Server, _a2 hcloud.ServerAttachToNetworkOpts) error

AttachServerToNetwork provides a mock function with given fields: _a0, _a1, _a2

func (*Client) ChangeLoadBalancerAlgorithm

func (_m *Client) ChangeLoadBalancerAlgorithm(_a0 context.Context, _a1 *hcloud.LoadBalancer, _a2 hcloud.LoadBalancerChangeAlgorithmOpts) error

ChangeLoadBalancerAlgorithm provides a mock function with given fields: _a0, _a1, _a2

func (*Client) ChangeLoadBalancerType

func (_m *Client) ChangeLoadBalancerType(_a0 context.Context, _a1 *hcloud.LoadBalancer, _a2 hcloud.LoadBalancerChangeTypeOpts) error

ChangeLoadBalancerType provides a mock function with given fields: _a0, _a1, _a2

func (*Client) Close

func (_m *Client) Close()

Close provides a mock function with given fields:

func (*Client) CreateLoadBalancer

func (_m *Client) CreateLoadBalancer(_a0 context.Context, _a1 hcloud.LoadBalancerCreateOpts) (*hcloud.LoadBalancer, error)

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

func (*Client) CreateNetwork

func (_m *Client) CreateNetwork(_a0 context.Context, _a1 hcloud.NetworkCreateOpts) (*hcloud.Network, error)

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

func (*Client) CreatePlacementGroup

func (_m *Client) CreatePlacementGroup(_a0 context.Context, _a1 hcloud.PlacementGroupCreateOpts) (*hcloud.PlacementGroup, error)

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

func (*Client) CreateServer

func (_m *Client) CreateServer(_a0 context.Context, _a1 hcloud.ServerCreateOpts) (*hcloud.Server, error)

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

func (*Client) DeleteIPTargetOfLoadBalancer

func (_m *Client) DeleteIPTargetOfLoadBalancer(_a0 context.Context, _a1 *hcloud.LoadBalancer, _a2 net.IP) error

DeleteIPTargetOfLoadBalancer provides a mock function with given fields: _a0, _a1, _a2

func (*Client) DeleteLoadBalancer

func (_m *Client) DeleteLoadBalancer(_a0 context.Context, _a1 int64) error

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

func (*Client) DeleteNetwork

func (_m *Client) DeleteNetwork(_a0 context.Context, _a1 *hcloud.Network) error

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

func (*Client) DeletePlacementGroup

func (_m *Client) DeletePlacementGroup(_a0 context.Context, _a1 int64) error

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

func (*Client) DeleteServer

func (_m *Client) DeleteServer(_a0 context.Context, _a1 *hcloud.Server) error

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

func (*Client) DeleteServiceFromLoadBalancer

func (_m *Client) DeleteServiceFromLoadBalancer(_a0 context.Context, _a1 *hcloud.LoadBalancer, _a2 int) error

DeleteServiceFromLoadBalancer provides a mock function with given fields: _a0, _a1, _a2

func (*Client) DeleteTargetServerOfLoadBalancer

func (_m *Client) DeleteTargetServerOfLoadBalancer(_a0 context.Context, _a1 *hcloud.LoadBalancer, _a2 *hcloud.Server) error

DeleteTargetServerOfLoadBalancer provides a mock function with given fields: _a0, _a1, _a2

func (*Client) GetServer

func (_m *Client) GetServer(_a0 context.Context, _a1 int64) (*hcloud.Server, error)

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

func (*Client) GetServerType

func (_m *Client) GetServerType(_a0 context.Context, _a1 string) (*hcloud.ServerType, error)

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

func (*Client) ListImages

func (_m *Client) ListImages(_a0 context.Context, _a1 hcloud.ImageListOpts) ([]*hcloud.Image, error)

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

func (*Client) ListLoadBalancers

func (_m *Client) ListLoadBalancers(_a0 context.Context, _a1 hcloud.LoadBalancerListOpts) ([]*hcloud.LoadBalancer, error)

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

func (*Client) ListNetworks

func (_m *Client) ListNetworks(_a0 context.Context, _a1 hcloud.NetworkListOpts) ([]*hcloud.Network, error)

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

func (*Client) ListPlacementGroups

func (_m *Client) ListPlacementGroups(_a0 context.Context, _a1 hcloud.PlacementGroupListOpts) ([]*hcloud.PlacementGroup, error)

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

func (*Client) ListSSHKeys

func (_m *Client) ListSSHKeys(_a0 context.Context, _a1 hcloud.SSHKeyListOpts) ([]*hcloud.SSHKey, error)

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

func (*Client) ListServerTypes

func (_m *Client) ListServerTypes(_a0 context.Context) ([]*hcloud.ServerType, error)

ListServerTypes provides a mock function with given fields: _a0

func (*Client) ListServers

func (_m *Client) ListServers(_a0 context.Context, _a1 hcloud.ServerListOpts) ([]*hcloud.Server, error)

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

func (*Client) PowerOnServer

func (_m *Client) PowerOnServer(_a0 context.Context, _a1 *hcloud.Server) error

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

func (*Client) RebootServer

func (_m *Client) RebootServer(_a0 context.Context, _a1 *hcloud.Server) error

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

func (*Client) ShutdownServer

func (_m *Client) ShutdownServer(_a0 context.Context, _a1 *hcloud.Server) error

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

func (*Client) UpdateLoadBalancer

func (_m *Client) UpdateLoadBalancer(_a0 context.Context, _a1 *hcloud.LoadBalancer, _a2 hcloud.LoadBalancerUpdateOpts) (*hcloud.LoadBalancer, error)

UpdateLoadBalancer provides a mock function with given fields: _a0, _a1, _a2

type Factory

type Factory struct {
	mock.Mock
}

Factory is an autogenerated mock type for the Factory type

func NewFactory

func NewFactory(t interface {
	mock.TestingT
	Cleanup(func())
}) *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. The first argument is typically a *testing.T value.

func (*Factory) NewClient

func (_m *Factory) NewClient(hcloudToken string) hcloudclient.Client

NewClient provides a mock function with given fields: hcloudToken

Jump to

Keyboard shortcuts

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