mocks

package
v0.0.0-...-7b44715 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2024 License: Apache-2.0, 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)

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(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

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

ConfigMap provides a mock function with given fields: identifier

func (*CloudAccess) ConfigMaps

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

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

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

ServerType provides a mock function with given fields: identifier

func (*CloudAccess) ServerTypes

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 (*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