mocks

package
v2.0.0 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ServerListReducer

func ServerListReducer(target *brightbox.ServerGroup) func(mock.Arguments)

ServerListReducer removes a server from the list of servers in the group

Types

type CloudAccess

type CloudAccess struct {
	mock.Mock
}

CloudAccess is an autogenerated mock type for the CloudAccess type

func NewCloudAccess

func NewCloudAccess(t mockConstructorTestingTNewCloudAccess) *CloudAccess

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

func (*CloudAccess) AddServersToServerGroup

func (_m *CloudAccess) AddServersToServerGroup(_a0 context.Context, _a1 string, _a2 brightbox.ServerGroupMemberList) (*brightbox.ServerGroup, error)

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

func (*CloudAccess) CloudIP

func (_m *CloudAccess) CloudIP(_a0 context.Context, _a1 string) (*brightbox.CloudIP, error)

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

func (*CloudAccess) CloudIPs

func (_m *CloudAccess) CloudIPs(_a0 context.Context) ([]brightbox.CloudIP, error)

CloudIPs provides a mock function with given fields: _a0

func (*CloudAccess) ConfigMap

func (_m *CloudAccess) ConfigMap(_a0 context.Context, _a1 string) (*brightbox.ConfigMap, error)

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

func (*CloudAccess) ConfigMaps

func (_m *CloudAccess) ConfigMaps(_a0 context.Context) ([]brightbox.ConfigMap, error)

ConfigMaps provides a mock function with given fields: _a0

func (*CloudAccess) CreateCloudIP

func (_m *CloudAccess) CreateCloudIP(_a0 context.Context, _a1 brightbox.CloudIPOptions) (*brightbox.CloudIP, error)

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

func (*CloudAccess) CreateFirewallPolicy

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

func (*CloudAccess) CreateFirewallRule

func (_m *CloudAccess) CreateFirewallRule(_a0 context.Context, _a1 brightbox.FirewallRuleOptions) (*brightbox.FirewallRule, error)

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

func (*CloudAccess) CreateLoadBalancer

func (_m *CloudAccess) CreateLoadBalancer(_a0 context.Context, _a1 brightbox.LoadBalancerOptions) (*brightbox.LoadBalancer, error)

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

func (*CloudAccess) CreateServer

func (_m *CloudAccess) CreateServer(_a0 context.Context, _a1 brightbox.ServerOptions) (*brightbox.Server, error)

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

func (*CloudAccess) CreateServerGroup

func (_m *CloudAccess) CreateServerGroup(_a0 context.Context, _a1 brightbox.ServerGroupOptions) (*brightbox.ServerGroup, error)

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

func (*CloudAccess) DestroyCloudIP

func (_m *CloudAccess) DestroyCloudIP(_a0 context.Context, _a1 string) (*brightbox.CloudIP, error)

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

func (*CloudAccess) DestroyFirewallPolicy

func (_m *CloudAccess) DestroyFirewallPolicy(_a0 context.Context, _a1 string) (*brightbox.FirewallPolicy, error)

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

func (*CloudAccess) DestroyLoadBalancer

func (_m *CloudAccess) DestroyLoadBalancer(_a0 context.Context, _a1 string) (*brightbox.LoadBalancer, error)

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

func (*CloudAccess) DestroyServer

func (_m *CloudAccess) DestroyServer(_a0 context.Context, _a1 string) (*brightbox.Server, error)

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

func (*CloudAccess) DestroyServerGroup

func (_m *CloudAccess) DestroyServerGroup(_a0 context.Context, _a1 string) (*brightbox.ServerGroup, error)

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

func (*CloudAccess) FirewallPolicies

func (_m *CloudAccess) FirewallPolicies(_a0 context.Context) ([]brightbox.FirewallPolicy, error)

FirewallPolicies provides a mock function with given fields: _a0

func (*CloudAccess) Images

func (_m *CloudAccess) Images(_a0 context.Context) ([]brightbox.Image, error)

Images provides a mock function with given fields: _a0

func (*CloudAccess) LoadBalancer

func (_m *CloudAccess) LoadBalancer(_a0 context.Context, _a1 string) (*brightbox.LoadBalancer, error)

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

func (*CloudAccess) LoadBalancers

func (_m *CloudAccess) LoadBalancers(_a0 context.Context) ([]brightbox.LoadBalancer, error)

LoadBalancers provides a mock function with given fields: _a0

func (*CloudAccess) MapCloudIP

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

func (*CloudAccess) RemoveServersFromServerGroup

func (_m *CloudAccess) RemoveServersFromServerGroup(_a0 context.Context, _a1 string, _a2 brightbox.ServerGroupMemberList) (*brightbox.ServerGroup, error)

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

func (*CloudAccess) Server

func (_m *CloudAccess) Server(_a0 context.Context, _a1 string) (*brightbox.Server, error)

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

func (*CloudAccess) ServerGroup

func (_m *CloudAccess) ServerGroup(_a0 context.Context, _a1 string) (*brightbox.ServerGroup, error)

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

func (*CloudAccess) ServerGroups

func (_m *CloudAccess) ServerGroups(_a0 context.Context) ([]brightbox.ServerGroup, error)

ServerGroups provides a mock function with given fields: _a0

func (*CloudAccess) ServerType

func (_m *CloudAccess) ServerType(_a0 context.Context, _a1 string) (*brightbox.ServerType, error)

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

func (*CloudAccess) ServerTypes

func (_m *CloudAccess) ServerTypes(_a0 context.Context) ([]brightbox.ServerType, error)

ServerTypes provides a mock function with given fields: _a0

func (*CloudAccess) UnMapCloudIP

func (_m *CloudAccess) UnMapCloudIP(_a0 context.Context, _a1 string) (*brightbox.CloudIP, error)

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

func (*CloudAccess) UpdateFirewallRule

func (_m *CloudAccess) UpdateFirewallRule(_a0 context.Context, _a1 brightbox.FirewallRuleOptions) (*brightbox.FirewallRule, error)

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

func (*CloudAccess) UpdateLoadBalancer

func (_m *CloudAccess) UpdateLoadBalancer(_a0 context.Context, _a1 brightbox.LoadBalancerOptions) (*brightbox.LoadBalancer, error)

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

type EC2Metadata

type EC2Metadata struct {
	mock.Mock
}

EC2Metadata is an autogenerated mock type for the EC2Metadata type

func NewEC2Metadata

func NewEC2Metadata(t mockConstructorTestingTNewEC2Metadata) *EC2Metadata

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

func (*EC2Metadata) GetMetadata

func (_m *EC2Metadata) GetMetadata(path string) (string, error)

GetMetadata provides a mock function with given fields: path

Jump to

Keyboard shortcuts

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