Documentation ¶
Index ¶
- type AwsClient
- func (_m *AwsClient) AssignPrivateIPAddresses(request *ec2.AssignPrivateIpAddressesInput) (*ec2.AssignPrivateIpAddressesOutput, error)
- func (_m *AwsClient) DescribeInstances(request *ec2.DescribeInstancesInput) (*ec2.DescribeInstancesOutput, error)
- func (_m *AwsClient) DescribeNetworkInterfaces(request *ec2.DescribeNetworkInterfacesInput) (*ec2.DescribeNetworkInterfacesOutput, error)
- func (_m *AwsClient) DescribeSubnets(request *ec2.DescribeSubnetsInput) (*ec2.DescribeSubnetsOutput, error)
- func (_m *AwsClient) GetRegion() string
- func (_m *AwsClient) UnassignPrivateIPAddresses(request *ec2.UnassignPrivateIpAddressesInput) (*ec2.UnassignPrivateIpAddressesOutput, error)
- type CloudInstance
- func (_m *CloudInstance) FailureRegion() string
- func (_m *CloudInstance) FailureZone() string
- func (_m *CloudInstance) HostName() string
- func (_m *CloudInstance) ID() string
- func (_m *CloudInstance) NetworkInterface() string
- func (_m *CloudInstance) PrimaryIP() *net.IP
- func (_m *CloudInstance) SecondaryIps() []*net.IP
- func (_m *CloudInstance) Tags() *map[string]string
- func (_m *CloudInstance) URI() string
- type CloudNetwork
- func (_m *CloudNetwork) AvailableIPCount() int64
- func (_m *CloudNetwork) Cidr() *net.IPNet
- func (_m *CloudNetwork) DefaultForFailureZone() bool
- func (_m *CloudNetwork) FailureZone() string
- func (_m *CloudNetwork) IsIPInNetwork(ip *net.IP) bool
- func (_m *CloudNetwork) Name() string
- func (_m *CloudNetwork) URI() string
- type CloudProvider
- func (_m *CloudProvider) AddRandomIPs() ([]string, []*net.IP, error)
- func (_m *CloudProvider) AddSpecifiedIPs(ips []*net.IP) ([]string, error)
- func (_m *CloudProvider) ClusterTag() (string, string)
- func (_m *CloudProvider) Instance(instanceID string) (*cloudprovider.CloudInstance, error)
- func (_m *CloudProvider) InstanceByHostName(hostname string) (*cloudprovider.CloudInstance, error)
- func (_m *CloudProvider) RemoveIP(ip *net.IP) (string, error)
- type OcpClient
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AwsClient ¶
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) UnassignPrivateIPAddresses ¶
func (_m *AwsClient) UnassignPrivateIPAddresses(request *ec2.UnassignPrivateIpAddressesInput) (*ec2.UnassignPrivateIpAddressesOutput, error)
UnassignPrivateIPAddresses provides a mock function with given fields: request
type CloudInstance ¶
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 ¶
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 ¶
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