Documentation ¶
Index ¶
- type Client
- func (_m *Client) AddIPTargetToLoadBalancer(_a0 context.Context, _a1 hcloud.LoadBalancerAddIPTargetOpts, ...) error
- func (_m *Client) AddServerToPlacementGroup(_a0 context.Context, _a1 *hcloud.Server, _a2 *hcloud.PlacementGroup) error
- func (_m *Client) AddServiceToLoadBalancer(_a0 context.Context, _a1 *hcloud.LoadBalancer, ...) error
- func (_m *Client) AddTargetServerToLoadBalancer(_a0 context.Context, _a1 hcloud.LoadBalancerAddServerTargetOpts, ...) error
- func (_m *Client) AttachLoadBalancerToNetwork(_a0 context.Context, _a1 *hcloud.LoadBalancer, ...) error
- func (_m *Client) AttachServerToNetwork(_a0 context.Context, _a1 *hcloud.Server, _a2 hcloud.ServerAttachToNetworkOpts) error
- func (_m *Client) ChangeLoadBalancerAlgorithm(_a0 context.Context, _a1 *hcloud.LoadBalancer, ...) error
- func (_m *Client) ChangeLoadBalancerType(_a0 context.Context, _a1 *hcloud.LoadBalancer, ...) error
- func (_m *Client) Close()
- func (_m *Client) CreateLoadBalancer(_a0 context.Context, _a1 hcloud.LoadBalancerCreateOpts) (*hcloud.LoadBalancer, error)
- func (_m *Client) CreateNetwork(_a0 context.Context, _a1 hcloud.NetworkCreateOpts) (*hcloud.Network, error)
- func (_m *Client) CreatePlacementGroup(_a0 context.Context, _a1 hcloud.PlacementGroupCreateOpts) (*hcloud.PlacementGroup, error)
- func (_m *Client) CreateServer(_a0 context.Context, _a1 hcloud.ServerCreateOpts) (*hcloud.Server, error)
- func (_m *Client) DeleteIPTargetOfLoadBalancer(_a0 context.Context, _a1 *hcloud.LoadBalancer, _a2 net.IP) error
- func (_m *Client) DeleteLoadBalancer(_a0 context.Context, _a1 int64) error
- func (_m *Client) DeleteNetwork(_a0 context.Context, _a1 *hcloud.Network) error
- func (_m *Client) DeletePlacementGroup(_a0 context.Context, _a1 int64) error
- func (_m *Client) DeleteServer(_a0 context.Context, _a1 *hcloud.Server) error
- func (_m *Client) DeleteServiceFromLoadBalancer(_a0 context.Context, _a1 *hcloud.LoadBalancer, _a2 int) error
- func (_m *Client) DeleteTargetServerOfLoadBalancer(_a0 context.Context, _a1 *hcloud.LoadBalancer, _a2 *hcloud.Server) error
- func (_m *Client) GetServer(_a0 context.Context, _a1 int64) (*hcloud.Server, error)
- func (_m *Client) GetServerType(_a0 context.Context, _a1 string) (*hcloud.ServerType, error)
- func (_m *Client) ListImages(_a0 context.Context, _a1 hcloud.ImageListOpts) ([]*hcloud.Image, error)
- func (_m *Client) ListLoadBalancers(_a0 context.Context, _a1 hcloud.LoadBalancerListOpts) ([]*hcloud.LoadBalancer, error)
- func (_m *Client) ListNetworks(_a0 context.Context, _a1 hcloud.NetworkListOpts) ([]*hcloud.Network, error)
- func (_m *Client) ListPlacementGroups(_a0 context.Context, _a1 hcloud.PlacementGroupListOpts) ([]*hcloud.PlacementGroup, error)
- func (_m *Client) ListSSHKeys(_a0 context.Context, _a1 hcloud.SSHKeyListOpts) ([]*hcloud.SSHKey, error)
- func (_m *Client) ListServerTypes(_a0 context.Context) ([]*hcloud.ServerType, error)
- func (_m *Client) ListServers(_a0 context.Context, _a1 hcloud.ServerListOpts) ([]*hcloud.Server, error)
- func (_m *Client) PowerOnServer(_a0 context.Context, _a1 *hcloud.Server) error
- func (_m *Client) RebootServer(_a0 context.Context, _a1 *hcloud.Server) error
- func (_m *Client) ShutdownServer(_a0 context.Context, _a1 *hcloud.Server) error
- func (_m *Client) UpdateLoadBalancer(_a0 context.Context, _a1 *hcloud.LoadBalancer, ...) (*hcloud.LoadBalancer, error)
- type Factory
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
Client is an autogenerated mock type for the Client type
func NewClient ¶
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) 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 ¶
DeleteLoadBalancer provides a mock function with given fields: _a0, _a1
func (*Client) DeleteNetwork ¶
DeleteNetwork provides a mock function with given fields: _a0, _a1
func (*Client) DeletePlacementGroup ¶
DeletePlacementGroup provides a mock function with given fields: _a0, _a1
func (*Client) DeleteServer ¶
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) GetServerType ¶
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 ¶
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 ¶
PowerOnServer provides a mock function with given fields: _a0, _a1
func (*Client) RebootServer ¶
RebootServer provides a mock function with given fields: _a0, _a1
func (*Client) ShutdownServer ¶
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 ¶
Factory is an autogenerated mock type for the Factory type
func NewFactory ¶
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.