mocks

package
v0.0.0-...-ab17c91 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AwsClient

type AwsClient struct {
	mock.Mock
}

AwsClient is an autogenerated mock type for the AwsClient type

func (*AwsClient) AssignPrivateIPAddresses

func (_m *AwsClient) AssignPrivateIPAddresses(request *ec2.AssignPrivateIpAddressesInput) (*ec2.AssignPrivateIpAddressesOutput, error)

AssignPrivateIPAddresses provides a mock function with given fields: request

func (*AwsClient) DescribeInstances

func (_m *AwsClient) DescribeInstances(request *ec2.DescribeInstancesInput) (*ec2.DescribeInstancesOutput, error)

DescribeInstances provides a mock function with given fields: request

func (*AwsClient) DescribeNetworkInterfaces

func (_m *AwsClient) DescribeNetworkInterfaces(request *ec2.DescribeNetworkInterfacesInput) (*ec2.DescribeNetworkInterfacesOutput, error)

DescribeNetworkInterfaces provides a mock function with given fields: request

func (*AwsClient) DescribeSubnets

func (_m *AwsClient) DescribeSubnets(request *ec2.DescribeSubnetsInput) (*ec2.DescribeSubnetsOutput, error)

DescribeSubnets provides a mock function with given fields: request

func (*AwsClient) GetRegion

func (_m *AwsClient) GetRegion() string

GetRegion provides a mock function with given fields:

func (*AwsClient) UnassignPrivateIPAddresses

func (_m *AwsClient) UnassignPrivateIPAddresses(request *ec2.UnassignPrivateIpAddressesInput) (*ec2.UnassignPrivateIpAddressesOutput, error)

UnassignPrivateIPAddresses provides a mock function with given fields: request

type CloudInstance

type CloudInstance struct {
	mock.Mock
}

CloudInstance is an autogenerated mock type for the CloudInstance type

func (*CloudInstance) FailureRegion

func (_m *CloudInstance) FailureRegion() string

FailureRegion provides a mock function with given fields:

func (*CloudInstance) FailureZone

func (_m *CloudInstance) FailureZone() string

FailureZone provides a mock function with given fields:

func (*CloudInstance) HostName

func (_m *CloudInstance) HostName() string

HostName provides a mock function with given fields:

func (*CloudInstance) ID

func (_m *CloudInstance) ID() string

ID provides a mock function with given fields:

func (*CloudInstance) NetworkInterface

func (_m *CloudInstance) NetworkInterface() string

NetworkInterface provides a mock function with given fields:

func (*CloudInstance) PrimaryIP

func (_m *CloudInstance) PrimaryIP() *net.IP

PrimaryIP provides a mock function with given fields:

func (*CloudInstance) SecondaryIps

func (_m *CloudInstance) SecondaryIps() []*net.IP

SecondaryIps provides a mock function with given fields:

func (*CloudInstance) Tags

func (_m *CloudInstance) Tags() *map[string]string

Tags provides a mock function with given fields:

func (*CloudInstance) URI

func (_m *CloudInstance) URI() string

URI provides a mock function with given fields:

type CloudNetwork

type CloudNetwork struct {
	mock.Mock
}

CloudNetwork is an autogenerated mock type for the CloudNetwork type

func (*CloudNetwork) AvailableIPCount

func (_m *CloudNetwork) AvailableIPCount() int64

AvailableIPCount provides a mock function with given fields:

func (*CloudNetwork) Cidr

func (_m *CloudNetwork) Cidr() *net.IPNet

Cidr provides a mock function with given fields:

func (*CloudNetwork) DefaultForFailureZone

func (_m *CloudNetwork) DefaultForFailureZone() bool

DefaultForFailureZone provides a mock function with given fields:

func (*CloudNetwork) FailureZone

func (_m *CloudNetwork) FailureZone() string

FailureZone provides a mock function with given fields:

func (*CloudNetwork) IsIPInNetwork

func (_m *CloudNetwork) IsIPInNetwork(ip *net.IP) bool

IsIPInNetwork provides a mock function with given fields: ip

func (*CloudNetwork) Name

func (_m *CloudNetwork) Name() string

Name provides a mock function with given fields:

func (*CloudNetwork) URI

func (_m *CloudNetwork) URI() string

URI provides a mock function with given fields:

type CloudProvider

type CloudProvider struct {
	mock.Mock
}

CloudProvider is an autogenerated mock type for the CloudProvider type

func (*CloudProvider) AddRandomIPs

func (_m *CloudProvider) AddRandomIPs() ([]string, []*net.IP, error)

AddRandomIPs provides a mock function with given fields:

func (*CloudProvider) AddSpecifiedIPs

func (_m *CloudProvider) AddSpecifiedIPs(ips []*net.IP) ([]string, error)

AddSpecifiedIPs provides a mock function with given fields: ips

func (*CloudProvider) ClusterTag

func (_m *CloudProvider) ClusterTag() (string, string)

ClusterTag provides a mock function with given fields:

func (*CloudProvider) Instance

func (_m *CloudProvider) Instance(instanceID string) (*cloudprovider.CloudInstance, error)

Instance provides a mock function with given fields: instanceID

func (*CloudProvider) InstanceByHostName

func (_m *CloudProvider) InstanceByHostName(hostname string) (*cloudprovider.CloudInstance, error)

InstanceByHostName provides a mock function with given fields: hostname

func (*CloudProvider) RemoveIP

func (_m *CloudProvider) RemoveIP(ip *net.IP) (string, error)

RemoveIP provides a mock function with given fields: ip

type OcpClient

type OcpClient struct {
	mock.Mock
}

OcpClient is an autogenerated mock type for the OcpClient type

func (*OcpClient) Get

Get provides a mock function with given fields: ctx, key, obj

func (*OcpClient) Update

func (_m *OcpClient) Update(ctx context.Context, obj runtime.Object, opts ...client.UpdateOption) error

Update provides a mock function with given fields: ctx, obj, opts

Jump to

Keyboard shortcuts

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