Documentation ¶
Index ¶
- type Interface
- func (_m *Interface) AssignIpv6Addresses(ctx context.Context, opts ...client.AssignIPv6AddressesOption) ([]netip.Addr, error)
- func (_m *Interface) AssignPrivateIPAddress(ctx context.Context, opts ...client.AssignPrivateIPAddressOption) ([]netip.Addr, error)
- func (_m *Interface) AttachNetworkInterface(ctx context.Context, eniID string, instanceID string, trunkENIID string) error
- func (_m *Interface) CreateNetworkInterface(ctx context.Context, opts ...client.CreateNetworkInterfaceOption) (*client.NetworkInterface, error)
- func (_m *Interface) DeleteNetworkInterface(ctx context.Context, eniID string) error
- func (_m *Interface) DescribeInstanceTypes(ctx context.Context, types []string) ([]ecs.InstanceType, error)
- func (_m *Interface) DescribeNetworkInterface(ctx context.Context, vpcID string, eniID []string, instanceID string, ...) ([]*client.NetworkInterface, error)
- func (_m *Interface) DescribeVSwitchByID(ctx context.Context, vSwitchID string) (*vpc.VSwitch, error)
- func (_m *Interface) DetachNetworkInterface(ctx context.Context, eniID string, instanceID string, trunkENIID string) error
- func (_m *Interface) ModifyNetworkInterfaceAttribute(ctx context.Context, eniID string, securityGroupIDs []string) error
- func (_m *Interface) UnAssignIpv6Addresses(ctx context.Context, eniID string, ips []netip.Addr) error
- func (_m *Interface) UnAssignPrivateIPAddresses(ctx context.Context, eniID string, ips []netip.Addr) error
- func (_m *Interface) WaitForNetworkInterface(ctx context.Context, eniID string, status string, backoff wait.Backoff, ...) (*client.NetworkInterface, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Interface ¶
Interface is an autogenerated mock type for the Interface type
func NewInterface ¶
NewInterface creates a new instance of Interface. 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 (*Interface) AssignIpv6Addresses ¶
func (_m *Interface) AssignIpv6Addresses(ctx context.Context, opts ...client.AssignIPv6AddressesOption) ([]netip.Addr, error)
AssignIpv6Addresses provides a mock function with given fields: ctx, opts
func (*Interface) AssignPrivateIPAddress ¶
func (_m *Interface) AssignPrivateIPAddress(ctx context.Context, opts ...client.AssignPrivateIPAddressOption) ([]netip.Addr, error)
AssignPrivateIPAddress provides a mock function with given fields: ctx, opts
func (*Interface) AttachNetworkInterface ¶
func (_m *Interface) AttachNetworkInterface(ctx context.Context, eniID string, instanceID string, trunkENIID string) error
AttachNetworkInterface provides a mock function with given fields: ctx, eniID, instanceID, trunkENIID
func (*Interface) CreateNetworkInterface ¶
func (_m *Interface) CreateNetworkInterface(ctx context.Context, opts ...client.CreateNetworkInterfaceOption) (*client.NetworkInterface, error)
CreateNetworkInterface provides a mock function with given fields: ctx, opts
func (*Interface) DeleteNetworkInterface ¶
DeleteNetworkInterface provides a mock function with given fields: ctx, eniID
func (*Interface) DescribeInstanceTypes ¶
func (_m *Interface) DescribeInstanceTypes(ctx context.Context, types []string) ([]ecs.InstanceType, error)
DescribeInstanceTypes provides a mock function with given fields: ctx, types
func (*Interface) DescribeNetworkInterface ¶
func (_m *Interface) 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 (*Interface) DescribeVSwitchByID ¶
func (_m *Interface) DescribeVSwitchByID(ctx context.Context, vSwitchID string) (*vpc.VSwitch, error)
DescribeVSwitchByID provides a mock function with given fields: ctx, vSwitchID
func (*Interface) DetachNetworkInterface ¶
func (_m *Interface) DetachNetworkInterface(ctx context.Context, eniID string, instanceID string, trunkENIID string) error
DetachNetworkInterface provides a mock function with given fields: ctx, eniID, instanceID, trunkENIID
func (*Interface) ModifyNetworkInterfaceAttribute ¶
func (_m *Interface) ModifyNetworkInterfaceAttribute(ctx context.Context, eniID string, securityGroupIDs []string) error
ModifyNetworkInterfaceAttribute provides a mock function with given fields: ctx, eniID, securityGroupIDs
func (*Interface) UnAssignIpv6Addresses ¶
func (_m *Interface) UnAssignIpv6Addresses(ctx context.Context, eniID string, ips []netip.Addr) error
UnAssignIpv6Addresses provides a mock function with given fields: ctx, eniID, ips
func (*Interface) UnAssignPrivateIPAddresses ¶
func (_m *Interface) UnAssignPrivateIPAddresses(ctx context.Context, eniID string, ips []netip.Addr) error
UnAssignPrivateIPAddresses provides a mock function with given fields: ctx, eniID, ips
func (*Interface) WaitForNetworkInterface ¶
func (_m *Interface) 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