mocks

package
v1.7.0 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2020 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetLoadBalancerPtr

func GetLoadBalancerPtr(args mock.Arguments, i int) *hcloud.LoadBalancer

Types

type ActionClient

type ActionClient struct {
	mock.Mock
}

func (*ActionClient) MockWatchProgress

func (m *ActionClient) MockWatchProgress(ctx context.Context, a *hcloud.Action, err error)

func (*ActionClient) WatchProgress

func (m *ActionClient) WatchProgress(ctx context.Context, a *hcloud.Action) (<-chan int, <-chan error)

type LoadBalancerClient

type LoadBalancerClient struct {
	mock.Mock
}

func (*LoadBalancerClient) AddServerTarget

func (*LoadBalancerClient) AddService

func (*LoadBalancerClient) AttachToNetwork

func (*LoadBalancerClient) ChangeAlgorithm

func (*LoadBalancerClient) ChangeType added in v1.7.0

func (*LoadBalancerClient) Delete

func (*LoadBalancerClient) DeleteService

func (m *LoadBalancerClient) DeleteService(
	ctx context.Context, lb *hcloud.LoadBalancer, listenPort int,
) (*hcloud.Action, *hcloud.Response, error)

func (*LoadBalancerClient) DetachFromNetwork

func (*LoadBalancerClient) GetByID

func (*LoadBalancerClient) GetByName

func (m *LoadBalancerClient) GetByName(
	ctx context.Context, name string,
) (*hcloud.LoadBalancer, *hcloud.Response, error)

func (*LoadBalancerClient) RemoveServerTarget

func (m *LoadBalancerClient) RemoveServerTarget(ctx context.Context, lb *hcloud.LoadBalancer, server *hcloud.Server) (*hcloud.Action, *hcloud.Response, error)

func (*LoadBalancerClient) UpdateService

type NetworkClient

type NetworkClient struct {
	mock.Mock
}

func (*NetworkClient) GetByID

func (m *NetworkClient) GetByID(ctx context.Context, id int) (*hcloud.Network, *hcloud.Response, error)

Jump to

Keyboard shortcuts

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