mocks

package
v1.8.6 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2024 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 ECS

type ECS struct {
	mock.Mock
}

ECS is an autogenerated mock type for the ECS type

func NewECS

func NewECS(t interface {
	mock.TestingT
	Cleanup(func())
}) *ECS

NewECS creates a new instance of ECS. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*ECS) AssignIpv6Addresses

func (_m *ECS) AssignIpv6Addresses(ctx context.Context, opts ...client.AssignIPv6AddressesOption) ([]netip.Addr, error)

AssignIpv6Addresses provides a mock function with given fields: ctx, opts

func (*ECS) AssignPrivateIPAddress

func (_m *ECS) AssignPrivateIPAddress(ctx context.Context, opts ...client.AssignPrivateIPAddressOption) ([]netip.Addr, error)

AssignPrivateIPAddress provides a mock function with given fields: ctx, opts

func (*ECS) AttachNetworkInterface

func (_m *ECS) AttachNetworkInterface(ctx context.Context, eniID string, instanceID string, trunkENIID string) error

AttachNetworkInterface provides a mock function with given fields: ctx, eniID, instanceID, trunkENIID

func (*ECS) CreateNetworkInterface

func (_m *ECS) CreateNetworkInterface(ctx context.Context, opts ...client.CreateNetworkInterfaceOption) (*client.NetworkInterface, error)

CreateNetworkInterface provides a mock function with given fields: ctx, opts

func (*ECS) DeleteNetworkInterface

func (_m *ECS) DeleteNetworkInterface(ctx context.Context, eniID string) error

DeleteNetworkInterface provides a mock function with given fields: ctx, eniID

func (*ECS) DescribeInstanceTypes

func (_m *ECS) DescribeInstanceTypes(ctx context.Context, types []string) ([]ecs.InstanceType, error)

DescribeInstanceTypes provides a mock function with given fields: ctx, types

func (*ECS) DescribeNetworkInterface

func (_m *ECS) DescribeNetworkInterface(ctx context.Context, vpcID string, eniID []string, instanceID string, instanceType string, status string, tags map[string]string) ([]*client.NetworkInterface, error)

DescribeNetworkInterface provides a mock function with given fields: ctx, vpcID, eniID, instanceID, instanceType, status, tags

func (*ECS) DetachNetworkInterface

func (_m *ECS) DetachNetworkInterface(ctx context.Context, eniID string, instanceID string, trunkENIID string) error

DetachNetworkInterface provides a mock function with given fields: ctx, eniID, instanceID, trunkENIID

func (*ECS) ModifyNetworkInterfaceAttribute

func (_m *ECS) ModifyNetworkInterfaceAttribute(ctx context.Context, eniID string, securityGroupIDs []string) error

ModifyNetworkInterfaceAttribute provides a mock function with given fields: ctx, eniID, securityGroupIDs

func (*ECS) UnAssignIpv6Addresses

func (_m *ECS) UnAssignIpv6Addresses(ctx context.Context, eniID string, ips []netip.Addr) error

UnAssignIpv6Addresses provides a mock function with given fields: ctx, eniID, ips

func (*ECS) UnAssignPrivateIPAddresses

func (_m *ECS) UnAssignPrivateIPAddresses(ctx context.Context, eniID string, ips []netip.Addr) error

UnAssignPrivateIPAddresses provides a mock function with given fields: ctx, eniID, ips

func (*ECS) WaitForNetworkInterface

func (_m *ECS) WaitForNetworkInterface(ctx context.Context, eniID string, status string, backoff wait.Backoff, ignoreNotExist bool) (*client.NetworkInterface, error)

WaitForNetworkInterface provides a mock function with given fields: ctx, eniID, status, backoff, ignoreNotExist

type EFLO

type EFLO struct {
	mock.Mock
}

EFLO is an autogenerated mock type for the EFLO type

func NewEFLO

func NewEFLO(t interface {
	mock.TestingT
	Cleanup(func())
}) *EFLO

NewEFLO creates a new instance of EFLO. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*EFLO) GetNodeInfoForPod

func (_m *EFLO) GetNodeInfoForPod(ctx context.Context, nodeID string) (*eflo.Content, error)

GetNodeInfoForPod provides a mock function with given fields: ctx, nodeID

type VPC

type VPC struct {
	mock.Mock
}

VPC is an autogenerated mock type for the VPC type

func NewVPC

func NewVPC(t interface {
	mock.TestingT
	Cleanup(func())
}) *VPC

NewVPC creates a new instance of VPC. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*VPC) DescribeVSwitchByID

func (_m *VPC) DescribeVSwitchByID(ctx context.Context, vSwitchID string) (*vpc.VSwitch, error)

DescribeVSwitchByID provides a mock function with given fields: ctx, vSwitchID

Jump to

Keyboard shortcuts

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