mocks

package
v1.14.5 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2025 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) AssignIpv6Addresses2 added in v1.14.5

func (_m *ECS) AssignIpv6Addresses2(ctx context.Context, opts ...client.AssignIPv6AddressesOption) ([]client.IPSet, error)

AssignIpv6Addresses2 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) AssignPrivateIPAddress2 added in v1.14.5

func (_m *ECS) AssignPrivateIPAddress2(ctx context.Context, opts ...client.AssignPrivateIPAddressOption) ([]client.IPSet, error)

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

func (*ECS) AttachNetworkInterface

func (_m *ECS) AttachNetworkInterface(ctx context.Context, opts ...client.AttachNetworkInterfaceOption) error

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

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) DescribeNetworkInterface2 added in v1.14.5

func (_m *ECS) DescribeNetworkInterface2(ctx context.Context, opts ...client.DescribeNetworkInterfaceOption) ([]*client.NetworkInterface, error)

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

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) DetachNetworkInterface2 added in v1.14.5

func (_m *ECS) DetachNetworkInterface2(ctx context.Context, opts ...client.DetachNetworkInterfaceOption) error

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

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) UnAssignIpv6Addresses2 added in v1.14.5

func (_m *ECS) UnAssignIpv6Addresses2(ctx context.Context, eniID string, ips []client.IPSet) error

UnAssignIpv6Addresses2 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) UnAssignPrivateIPAddresses2 added in v1.14.5

func (_m *ECS) UnAssignPrivateIPAddresses2(ctx context.Context, eniID string, ips []client.IPSet) error

UnAssignPrivateIPAddresses2 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) AssignLeniPrivateIPAddress2 added in v1.14.5

func (_m *EFLO) AssignLeniPrivateIPAddress2(ctx context.Context, opts ...client.AssignPrivateIPAddressOption) ([]client.IPSet, error)

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

func (*EFLO) AttachHDENI added in v1.14.5

func (_m *EFLO) AttachHDENI(ctx context.Context, opts ...client.AttachNetworkInterfaceOption) error

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

func (*EFLO) AttachLeni added in v1.14.5

func (_m *EFLO) AttachLeni(ctx context.Context, opts ...client.AttachNetworkInterfaceOption) error

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

func (*EFLO) CreateElasticNetworkInterfaceV2 added in v1.14.5

func (_m *EFLO) CreateElasticNetworkInterfaceV2(ctx context.Context, opts ...client.CreateNetworkInterfaceOption) (*client.NetworkInterface, error)

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

func (*EFLO) CreateHDENI added in v1.14.5

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

func (*EFLO) DeleteElasticNetworkInterface added in v1.14.5

func (_m *EFLO) DeleteElasticNetworkInterface(ctx context.Context, eniID string) error

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

func (*EFLO) DeleteHDENI added in v1.14.5

func (_m *EFLO) DeleteHDENI(ctx context.Context, eniID string) error

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

func (*EFLO) DescribeHDENI added in v1.14.5

func (_m *EFLO) DescribeHDENI(ctx context.Context, opts ...client.DescribeNetworkInterfaceOption) ([]*client.NetworkInterface, error)

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

func (*EFLO) DescribeLeniNetworkInterface added in v1.14.5

func (_m *EFLO) DescribeLeniNetworkInterface(ctx context.Context, opts ...client.DescribeNetworkInterfaceOption) ([]*client.NetworkInterface, error)

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

func (*EFLO) DetachHDENI added in v1.14.5

func (_m *EFLO) DetachHDENI(ctx context.Context, opts ...client.DetachNetworkInterfaceOption) error

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

func (*EFLO) DetachLeni added in v1.14.5

func (_m *EFLO) DetachLeni(ctx context.Context, opts ...client.DetachNetworkInterfaceOption) error

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

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

func (*EFLO) ListLeniPrivateIPAddresses added in v1.14.5

func (_m *EFLO) ListLeniPrivateIPAddresses(ctx context.Context, eniID string, ipName string, ipAddress string) (*eflo.Content, error)

ListLeniPrivateIPAddresses provides a mock function with given fields: ctx, eniID, ipName, ipAddress

func (*EFLO) UnAssignLeniPrivateIPAddresses2 added in v1.14.5

func (_m *EFLO) UnAssignLeniPrivateIPAddresses2(ctx context.Context, eniID string, ips []client.IPSet) error

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

func (*EFLO) UnassignLeniPrivateIPAddress added in v1.14.5

func (_m *EFLO) UnassignLeniPrivateIPAddress(ctx context.Context, eniID string, ipName string) error

UnassignLeniPrivateIPAddress provides a mock function with given fields: ctx, eniID, ipName

func (*EFLO) WaitForLeniNetworkInterface added in v1.14.5

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

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

type LimitProvider added in v1.9.6

type LimitProvider struct {
	mock.Mock
}

LimitProvider is an autogenerated mock type for the LimitProvider type

func NewLimitProvider added in v1.9.6

func NewLimitProvider(t interface {
	mock.TestingT
	Cleanup(func())
}) *LimitProvider

NewLimitProvider creates a new instance of LimitProvider. 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 (*LimitProvider) GetLimit added in v1.9.6

func (_m *LimitProvider) GetLimit(_a0 interface{}, instanceType string) (*client.Limits, error)

GetLimit provides a mock function with given fields: _a0, instanceType

func (*LimitProvider) GetLimitFromAnno added in v1.13.7

func (_m *LimitProvider) GetLimitFromAnno(anno map[string]string) (*client.Limits, error)

GetLimitFromAnno provides a mock function with given fields: anno

type OpenAPI added in v1.14.5

type OpenAPI struct {
	mock.Mock
}

OpenAPI is an autogenerated mock type for the OpenAPI type

func NewOpenAPI added in v1.14.5

func NewOpenAPI(t interface {
	mock.TestingT
	Cleanup(func())
}) *OpenAPI

NewOpenAPI creates a new instance of OpenAPI. 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 (*OpenAPI) AssignIpv6AddressesV2 added in v1.14.5

func (_m *OpenAPI) AssignIpv6AddressesV2(ctx context.Context, opts ...client.AssignIPv6AddressesOption) ([]client.IPSet, error)

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

func (*OpenAPI) AssignPrivateIPAddressV2 added in v1.14.5

func (_m *OpenAPI) AssignPrivateIPAddressV2(ctx context.Context, opts ...client.AssignPrivateIPAddressOption) ([]client.IPSet, error)

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

func (*OpenAPI) AttachNetworkInterfaceV2 added in v1.14.5

func (_m *OpenAPI) AttachNetworkInterfaceV2(ctx context.Context, opts ...client.AttachNetworkInterfaceOption) error

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

func (*OpenAPI) CreateNetworkInterfaceV2 added in v1.14.5

func (_m *OpenAPI) CreateNetworkInterfaceV2(ctx context.Context, opts ...client.CreateNetworkInterfaceOption) (*client.NetworkInterface, error)

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

func (*OpenAPI) DeleteNetworkInterfaceV2 added in v1.14.5

func (_m *OpenAPI) DeleteNetworkInterfaceV2(ctx context.Context, eniID string) error

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

func (*OpenAPI) DescribeNetworkInterfaceV2 added in v1.14.5

func (_m *OpenAPI) DescribeNetworkInterfaceV2(ctx context.Context, opts ...client.DescribeNetworkInterfaceOption) ([]*client.NetworkInterface, error)

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

func (*OpenAPI) DetachNetworkInterfaceV2 added in v1.14.5

func (_m *OpenAPI) DetachNetworkInterfaceV2(ctx context.Context, opts ...client.DetachNetworkInterfaceOption) error

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

func (*OpenAPI) GetECS added in v1.14.5

func (_m *OpenAPI) GetECS() client.ECS

GetECS provides a mock function with no fields

func (*OpenAPI) GetEFLO added in v1.14.5

func (_m *OpenAPI) GetEFLO() client.EFLO

GetEFLO provides a mock function with no fields

func (*OpenAPI) GetVPC added in v1.14.5

func (_m *OpenAPI) GetVPC() client.VPC

GetVPC provides a mock function with no fields

func (*OpenAPI) UnAssignIpv6AddressesV2 added in v1.14.5

func (_m *OpenAPI) UnAssignIpv6AddressesV2(ctx context.Context, eniID string, ips []client.IPSet) error

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

func (*OpenAPI) UnAssignPrivateIPAddressesV2 added in v1.14.5

func (_m *OpenAPI) UnAssignPrivateIPAddressesV2(ctx context.Context, eniID string, ips []client.IPSet) error

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

func (*OpenAPI) WaitForNetworkInterfaceV2 added in v1.14.5

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

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

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