mocks

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2023 License: MIT Imports: 2 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 added in v0.8.0

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(identifier string, serverIds []string) (*gobrightbox.ServerGroup, error)

AddServersToServerGroup provides a mock function with given fields: identifier, serverIds

func (*CloudAccess) CloudIP

func (_m *CloudAccess) CloudIP(identifier string) (*gobrightbox.CloudIP, error)

CloudIP provides a mock function with given fields: identifier

func (*CloudAccess) CloudIPs

func (_m *CloudAccess) CloudIPs() ([]gobrightbox.CloudIP, error)

CloudIPs provides a mock function with given fields:

func (*CloudAccess) ConfigMap added in v0.4.0

func (_m *CloudAccess) ConfigMap(identifier string) (*gobrightbox.ConfigMap, error)

ConfigMap provides a mock function with given fields: identifier

func (*CloudAccess) ConfigMaps added in v0.4.0

func (_m *CloudAccess) ConfigMaps() ([]gobrightbox.ConfigMap, error)

ConfigMaps provides a mock function with given fields:

func (*CloudAccess) CreateCloudIP

func (_m *CloudAccess) CreateCloudIP(newCloudIP *gobrightbox.CloudIPOptions) (*gobrightbox.CloudIP, error)

CreateCloudIP provides a mock function with given fields: newCloudIP

func (*CloudAccess) CreateFirewallPolicy

func (_m *CloudAccess) CreateFirewallPolicy(policyOptions *gobrightbox.FirewallPolicyOptions) (*gobrightbox.FirewallPolicy, error)

CreateFirewallPolicy provides a mock function with given fields: policyOptions

func (*CloudAccess) CreateFirewallRule

func (_m *CloudAccess) CreateFirewallRule(ruleOptions *gobrightbox.FirewallRuleOptions) (*gobrightbox.FirewallRule, error)

CreateFirewallRule provides a mock function with given fields: ruleOptions

func (*CloudAccess) CreateLoadBalancer

func (_m *CloudAccess) CreateLoadBalancer(newDetails *gobrightbox.LoadBalancerOptions) (*gobrightbox.LoadBalancer, error)

CreateLoadBalancer provides a mock function with given fields: newDetails

func (*CloudAccess) CreateServer

func (_m *CloudAccess) CreateServer(newServer *gobrightbox.ServerOptions) (*gobrightbox.Server, error)

CreateServer provides a mock function with given fields: newServer

func (*CloudAccess) CreateServerGroup

func (_m *CloudAccess) CreateServerGroup(newServerGroup *gobrightbox.ServerGroupOptions) (*gobrightbox.ServerGroup, error)

CreateServerGroup provides a mock function with given fields: newServerGroup

func (*CloudAccess) DestroyCloudIP

func (_m *CloudAccess) DestroyCloudIP(identifier string) error

DestroyCloudIP provides a mock function with given fields: identifier

func (*CloudAccess) DestroyFirewallPolicy

func (_m *CloudAccess) DestroyFirewallPolicy(identifier string) error

DestroyFirewallPolicy provides a mock function with given fields: identifier

func (*CloudAccess) DestroyLoadBalancer

func (_m *CloudAccess) DestroyLoadBalancer(identifier string) error

DestroyLoadBalancer provides a mock function with given fields: identifier

func (*CloudAccess) DestroyServer

func (_m *CloudAccess) DestroyServer(identifier string) error

DestroyServer provides a mock function with given fields: identifier

func (*CloudAccess) DestroyServerGroup

func (_m *CloudAccess) DestroyServerGroup(identifier string) error

DestroyServerGroup provides a mock function with given fields: identifier

func (*CloudAccess) FirewallPolicies

func (_m *CloudAccess) FirewallPolicies() ([]gobrightbox.FirewallPolicy, error)

FirewallPolicies provides a mock function with given fields:

func (*CloudAccess) Images added in v0.8.0

func (_m *CloudAccess) Images() ([]gobrightbox.Image, error)

Images provides a mock function with given fields:

func (*CloudAccess) LoadBalancer

func (_m *CloudAccess) LoadBalancer(identifier string) (*gobrightbox.LoadBalancer, error)

LoadBalancer provides a mock function with given fields: identifier

func (*CloudAccess) LoadBalancers

func (_m *CloudAccess) LoadBalancers() ([]gobrightbox.LoadBalancer, error)

LoadBalancers provides a mock function with given fields:

func (*CloudAccess) MapCloudIP

func (_m *CloudAccess) MapCloudIP(identifier string, destination string) error

MapCloudIP provides a mock function with given fields: identifier, destination

func (*CloudAccess) RemoveServersFromServerGroup

func (_m *CloudAccess) RemoveServersFromServerGroup(identifier string, serverIds []string) (*gobrightbox.ServerGroup, error)

RemoveServersFromServerGroup provides a mock function with given fields: identifier, serverIds

func (*CloudAccess) Server

func (_m *CloudAccess) Server(identifier string) (*gobrightbox.Server, error)

Server provides a mock function with given fields: identifier

func (*CloudAccess) ServerGroup

func (_m *CloudAccess) ServerGroup(identifier string) (*gobrightbox.ServerGroup, error)

ServerGroup provides a mock function with given fields: identifier

func (*CloudAccess) ServerGroups

func (_m *CloudAccess) ServerGroups() ([]gobrightbox.ServerGroup, error)

ServerGroups provides a mock function with given fields:

func (*CloudAccess) ServerType added in v0.5.0

func (_m *CloudAccess) ServerType(identifier string) (*gobrightbox.ServerType, error)

ServerType provides a mock function with given fields: identifier

func (*CloudAccess) ServerTypes added in v0.5.0

func (_m *CloudAccess) ServerTypes() ([]gobrightbox.ServerType, error)

ServerTypes provides a mock function with given fields:

func (*CloudAccess) UnMapCloudIP

func (_m *CloudAccess) UnMapCloudIP(identifier string) error

UnMapCloudIP provides a mock function with given fields: identifier

func (*CloudAccess) UpdateFirewallRule

func (_m *CloudAccess) UpdateFirewallRule(ruleOptions *gobrightbox.FirewallRuleOptions) (*gobrightbox.FirewallRule, error)

UpdateFirewallRule provides a mock function with given fields: ruleOptions

func (*CloudAccess) UpdateLoadBalancer

func (_m *CloudAccess) UpdateLoadBalancer(newDetails *gobrightbox.LoadBalancerOptions) (*gobrightbox.LoadBalancer, error)

UpdateLoadBalancer provides a mock function with given fields: newDetails

type EC2Metadata

type EC2Metadata struct {
	mock.Mock
}

EC2Metadata is an autogenerated mock type for the EC2Metadata type

func NewEC2Metadata added in v0.8.0

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