mock_awsutils

package
v1.22.3 Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2026 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package mock_awsutils is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockAPIs

type MockAPIs struct {
	// contains filtered or unexported fields
}

MockAPIs is a mock of APIs interface.

func NewMockAPIs

func NewMockAPIs(ctrl *gomock.Controller) *MockAPIs

NewMockAPIs creates a new mock instance.

func (*MockAPIs) AllocENI

func (m *MockAPIs) AllocENI(arg0 context.Context, arg1 []*string, arg2 string, arg3, arg4 int) (string, error)

AllocENI mocks base method.

func (*MockAPIs) AllocIPAddress

func (m *MockAPIs) AllocIPAddress(arg0 context.Context, arg1 string) error

AllocIPAddress mocks base method.

func (*MockAPIs) AllocIPAddresses added in v1.1.0

func (m *MockAPIs) AllocIPAddresses(arg0 context.Context, arg1 string, arg2 int) (*ec2.AssignPrivateIpAddressesOutput, error)

AllocIPAddresses mocks base method.

func (*MockAPIs) AllocIPv6Prefixes added in v1.10.0

func (m *MockAPIs) AllocIPv6Prefixes(arg0 context.Context, arg1 string) ([]*string, error)

AllocIPv6Prefixes mocks base method.

func (*MockAPIs) DeallocIPAddresses added in v1.5.0

func (m *MockAPIs) DeallocIPAddresses(arg0 context.Context, arg1 string, arg2 []string) error

DeallocIPAddresses mocks base method.

func (*MockAPIs) DeallocPrefixAddresses added in v1.9.0

func (m *MockAPIs) DeallocPrefixAddresses(arg0 context.Context, arg1 string, arg2 []string) error

DeallocPrefixAddresses mocks base method.

func (*MockAPIs) DescribeAllENIs added in v1.6.1

func (m *MockAPIs) DescribeAllENIs(arg0 context.Context) (awsutils.DescribeAllENIsResult, error)

DescribeAllENIs mocks base method.

func (*MockAPIs) EXPECT

func (m *MockAPIs) EXPECT() *MockAPIsMockRecorder

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockAPIs) FetchInstanceTypeLimits added in v1.9.1

func (m *MockAPIs) FetchInstanceTypeLimits(arg0 context.Context) error

FetchInstanceTypeLimits mocks base method.

func (*MockAPIs) FreeENI

func (m *MockAPIs) FreeENI(arg0 context.Context, arg1 string) error

FreeENI mocks base method.

func (*MockAPIs) GetAttachedENIs

func (m *MockAPIs) GetAttachedENIs() ([]awsutils.ENIMetadata, error)

GetAttachedENIs mocks base method.

func (*MockAPIs) GetENIIPv4Limit added in v1.6.4

func (m *MockAPIs) GetENIIPv4Limit() int

GetENIIPv4Limit mocks base method.

func (*MockAPIs) GetENILimit

func (m *MockAPIs) GetENILimit() int

GetENILimit mocks base method.

func (*MockAPIs) GetENISubnetID added in v1.22.0

func (m *MockAPIs) GetENISubnetID(arg0 context.Context, arg1 string) (string, error)

GetENISubnetID mocks base method.

func (*MockAPIs) GetIPv4PrefixesFromEC2 added in v1.9.0

func (m *MockAPIs) GetIPv4PrefixesFromEC2(arg0 context.Context, arg1 string) ([]types.Ipv4PrefixSpecification, error)

GetIPv4PrefixesFromEC2 mocks base method.

func (*MockAPIs) GetIPv4sFromEC2 added in v1.6.1

func (m *MockAPIs) GetIPv4sFromEC2(arg0 context.Context, arg1 string) ([]types.NetworkInterfacePrivateIpAddress, error)

GetIPv4sFromEC2 mocks base method.

func (*MockAPIs) GetIPv6PrefixesFromEC2 added in v1.10.0

func (m *MockAPIs) GetIPv6PrefixesFromEC2(arg0 context.Context, arg1 string) ([]types.Ipv6PrefixSpecification, error)

GetIPv6PrefixesFromEC2 mocks base method.

func (*MockAPIs) GetInstanceHypervisorFamily added in v1.9.0

func (m *MockAPIs) GetInstanceHypervisorFamily() string

GetInstanceHypervisorFamily mocks base method.

func (*MockAPIs) GetInstanceID added in v1.9.1

func (m *MockAPIs) GetInstanceID() string

GetInstanceID mocks base method.

func (*MockAPIs) GetInstanceType added in v1.9.0

func (m *MockAPIs) GetInstanceType() string

GetInstanceType mocks base method.

func (*MockAPIs) GetLocalIPv4

func (m *MockAPIs) GetLocalIPv4() net.IP

GetLocalIPv4 mocks base method.

func (*MockAPIs) GetLocalIPv6 added in v1.20.0

func (m *MockAPIs) GetLocalIPv6() net.IP

GetLocalIPv6 mocks base method.

func (*MockAPIs) GetNetworkCards added in v1.16.4

func (m *MockAPIs) GetNetworkCards() []vpc.NetworkCard

GetNetworkCards mocks base method.

func (*MockAPIs) GetPrimaryENI

func (m *MockAPIs) GetPrimaryENI() string

GetPrimaryENI mocks base method.

func (*MockAPIs) GetPrimaryENImac added in v1.2.1

func (m *MockAPIs) GetPrimaryENImac() string

GetPrimaryENImac mocks base method.

func (*MockAPIs) GetVPCIPv4CIDRs added in v1.3.0

func (m *MockAPIs) GetVPCIPv4CIDRs() ([]string, error)

GetVPCIPv4CIDRs mocks base method.

func (*MockAPIs) GetVPCIPv6CIDRs added in v1.10.0

func (m *MockAPIs) GetVPCIPv6CIDRs() ([]string, error)

GetVPCIPv6CIDRs mocks base method.

func (*MockAPIs) GetVpcSubnets added in v1.22.0

func (m *MockAPIs) GetVpcSubnets(arg0 context.Context) ([]types.Subnet, error)

GetVpcSubnets mocks base method.

func (*MockAPIs) InitCachedPrefixDelegation added in v1.9.0

func (m *MockAPIs) InitCachedPrefixDelegation(arg0 bool)

InitCachedPrefixDelegation mocks base method.

func (*MockAPIs) IsEfaOnlyENI added in v1.20.0

func (m *MockAPIs) IsEfaOnlyENI(arg0 int, arg1 string) bool

IsEfaOnlyENI mocks base method.

func (*MockAPIs) IsPrefixDelegationSupported added in v1.10.3

func (m *MockAPIs) IsPrefixDelegationSupported() bool

IsPrefixDelegationSupported mocks base method.

func (*MockAPIs) IsPrimaryENI added in v1.10.0

func (m *MockAPIs) IsPrimaryENI(arg0 string) bool

IsPrimaryENI mocks base method.

func (*MockAPIs) IsSubnetExcluded added in v1.22.0

func (m *MockAPIs) IsSubnetExcluded(arg0 context.Context, arg1 string) (bool, error)

IsSubnetExcluded mocks base method.

func (*MockAPIs) IsTrunkingCompatible added in v1.20.4

func (m *MockAPIs) IsTrunkingCompatible() bool

IsTrunkingCompatible mocks base method.

func (*MockAPIs) IsUnmanagedENI added in v1.7.2

func (m *MockAPIs) IsUnmanagedENI(arg0 string) bool

IsUnmanagedENI mocks base method.

func (*MockAPIs) IsUnmanagedNIC added in v1.20.0

func (m *MockAPIs) IsUnmanagedNIC(arg0 int) bool

IsUnmanagedNIC mocks base method.

func (*MockAPIs) RefreshCustomSGIDs added in v1.22.0

func (m *MockAPIs) RefreshCustomSGIDs(arg0 context.Context, arg1 *datastore.DataStoreAccess) error

RefreshCustomSGIDs mocks base method.

func (*MockAPIs) RefreshSGIDs added in v1.7.10

func (m *MockAPIs) RefreshSGIDs(arg0 context.Context, arg1 string, arg2 *datastore.DataStoreAccess) error

RefreshSGIDs mocks base method.

func (*MockAPIs) SetEFAOnlyENIs added in v1.20.0

func (m *MockAPIs) SetEFAOnlyENIs(arg0 []string)

SetEFAOnlyENIs mocks base method.

func (*MockAPIs) SetUnmanagedENIs added in v1.7.2

func (m *MockAPIs) SetUnmanagedENIs(arg0 []string)

SetUnmanagedENIs mocks base method.

func (*MockAPIs) SetUnmanagedNetworkCards added in v1.20.0

func (m *MockAPIs) SetUnmanagedNetworkCards(arg0 []bool)

SetUnmanagedNetworkCards mocks base method.

func (*MockAPIs) TagENI added in v1.8.0

func (m *MockAPIs) TagENI(arg0 context.Context, arg1 string, arg2 map[string]string) error

TagENI mocks base method.

func (*MockAPIs) WaitForENIAndIPsAttached added in v1.7.2

func (m *MockAPIs) WaitForENIAndIPsAttached(arg0 string, arg1 int) (awsutils.ENIMetadata, error)

WaitForENIAndIPsAttached mocks base method.

type MockAPIsMockRecorder

type MockAPIsMockRecorder struct {
	// contains filtered or unexported fields
}

MockAPIsMockRecorder is the mock recorder for MockAPIs.

func (*MockAPIsMockRecorder) AllocENI

func (mr *MockAPIsMockRecorder) AllocENI(arg0, arg1, arg2, arg3, arg4 interface{}) *gomock.Call

AllocENI indicates an expected call of AllocENI.

func (*MockAPIsMockRecorder) AllocIPAddress

func (mr *MockAPIsMockRecorder) AllocIPAddress(arg0, arg1 interface{}) *gomock.Call

AllocIPAddress indicates an expected call of AllocIPAddress.

func (*MockAPIsMockRecorder) AllocIPAddresses added in v1.1.0

func (mr *MockAPIsMockRecorder) AllocIPAddresses(arg0, arg1, arg2 interface{}) *gomock.Call

AllocIPAddresses indicates an expected call of AllocIPAddresses.

func (*MockAPIsMockRecorder) AllocIPv6Prefixes added in v1.10.0

func (mr *MockAPIsMockRecorder) AllocIPv6Prefixes(arg0, arg1 interface{}) *gomock.Call

AllocIPv6Prefixes indicates an expected call of AllocIPv6Prefixes.

func (*MockAPIsMockRecorder) DeallocIPAddresses added in v1.5.0

func (mr *MockAPIsMockRecorder) DeallocIPAddresses(arg0, arg1, arg2 interface{}) *gomock.Call

DeallocIPAddresses indicates an expected call of DeallocIPAddresses.

func (*MockAPIsMockRecorder) DeallocPrefixAddresses added in v1.9.0

func (mr *MockAPIsMockRecorder) DeallocPrefixAddresses(arg0, arg1, arg2 interface{}) *gomock.Call

DeallocPrefixAddresses indicates an expected call of DeallocPrefixAddresses.

func (*MockAPIsMockRecorder) DescribeAllENIs added in v1.6.1

func (mr *MockAPIsMockRecorder) DescribeAllENIs(arg0 interface{}) *gomock.Call

DescribeAllENIs indicates an expected call of DescribeAllENIs.

func (*MockAPIsMockRecorder) FetchInstanceTypeLimits added in v1.9.1

func (mr *MockAPIsMockRecorder) FetchInstanceTypeLimits(arg0 interface{}) *gomock.Call

FetchInstanceTypeLimits indicates an expected call of FetchInstanceTypeLimits.

func (*MockAPIsMockRecorder) FreeENI

func (mr *MockAPIsMockRecorder) FreeENI(arg0, arg1 interface{}) *gomock.Call

FreeENI indicates an expected call of FreeENI.

func (*MockAPIsMockRecorder) GetAttachedENIs

func (mr *MockAPIsMockRecorder) GetAttachedENIs() *gomock.Call

GetAttachedENIs indicates an expected call of GetAttachedENIs.

func (*MockAPIsMockRecorder) GetENIIPv4Limit added in v1.7.0

func (mr *MockAPIsMockRecorder) GetENIIPv4Limit() *gomock.Call

GetENIIPv4Limit indicates an expected call of GetENIIPv4Limit.

func (*MockAPIsMockRecorder) GetENILimit

func (mr *MockAPIsMockRecorder) GetENILimit() *gomock.Call

GetENILimit indicates an expected call of GetENILimit.

func (*MockAPIsMockRecorder) GetENISubnetID added in v1.22.0

func (mr *MockAPIsMockRecorder) GetENISubnetID(arg0, arg1 interface{}) *gomock.Call

GetENISubnetID indicates an expected call of GetENISubnetID.

func (*MockAPIsMockRecorder) GetIPv4PrefixesFromEC2 added in v1.9.0

func (mr *MockAPIsMockRecorder) GetIPv4PrefixesFromEC2(arg0, arg1 interface{}) *gomock.Call

GetIPv4PrefixesFromEC2 indicates an expected call of GetIPv4PrefixesFromEC2.

func (*MockAPIsMockRecorder) GetIPv4sFromEC2 added in v1.6.1

func (mr *MockAPIsMockRecorder) GetIPv4sFromEC2(arg0, arg1 interface{}) *gomock.Call

GetIPv4sFromEC2 indicates an expected call of GetIPv4sFromEC2.

func (*MockAPIsMockRecorder) GetIPv6PrefixesFromEC2 added in v1.10.0

func (mr *MockAPIsMockRecorder) GetIPv6PrefixesFromEC2(arg0, arg1 interface{}) *gomock.Call

GetIPv6PrefixesFromEC2 indicates an expected call of GetIPv6PrefixesFromEC2.

func (*MockAPIsMockRecorder) GetInstanceHypervisorFamily added in v1.9.0

func (mr *MockAPIsMockRecorder) GetInstanceHypervisorFamily() *gomock.Call

GetInstanceHypervisorFamily indicates an expected call of GetInstanceHypervisorFamily.

func (*MockAPIsMockRecorder) GetInstanceID added in v1.9.1

func (mr *MockAPIsMockRecorder) GetInstanceID() *gomock.Call

GetInstanceID indicates an expected call of GetInstanceID.

func (*MockAPIsMockRecorder) GetInstanceType added in v1.9.0

func (mr *MockAPIsMockRecorder) GetInstanceType() *gomock.Call

GetInstanceType indicates an expected call of GetInstanceType.

func (*MockAPIsMockRecorder) GetLocalIPv4

func (mr *MockAPIsMockRecorder) GetLocalIPv4() *gomock.Call

GetLocalIPv4 indicates an expected call of GetLocalIPv4.

func (*MockAPIsMockRecorder) GetLocalIPv6 added in v1.20.0

func (mr *MockAPIsMockRecorder) GetLocalIPv6() *gomock.Call

GetLocalIPv6 indicates an expected call of GetLocalIPv6.

func (*MockAPIsMockRecorder) GetNetworkCards added in v1.16.4

func (mr *MockAPIsMockRecorder) GetNetworkCards() *gomock.Call

GetNetworkCards indicates an expected call of GetNetworkCards.

func (*MockAPIsMockRecorder) GetPrimaryENI

func (mr *MockAPIsMockRecorder) GetPrimaryENI() *gomock.Call

GetPrimaryENI indicates an expected call of GetPrimaryENI.

func (*MockAPIsMockRecorder) GetPrimaryENImac added in v1.2.1

func (mr *MockAPIsMockRecorder) GetPrimaryENImac() *gomock.Call

GetPrimaryENImac indicates an expected call of GetPrimaryENImac.

func (*MockAPIsMockRecorder) GetVPCIPv4CIDRs added in v1.3.0

func (mr *MockAPIsMockRecorder) GetVPCIPv4CIDRs() *gomock.Call

GetVPCIPv4CIDRs indicates an expected call of GetVPCIPv4CIDRs.

func (*MockAPIsMockRecorder) GetVPCIPv6CIDRs added in v1.10.0

func (mr *MockAPIsMockRecorder) GetVPCIPv6CIDRs() *gomock.Call

GetVPCIPv6CIDRs indicates an expected call of GetVPCIPv6CIDRs.

func (*MockAPIsMockRecorder) GetVpcSubnets added in v1.22.0

func (mr *MockAPIsMockRecorder) GetVpcSubnets(arg0 interface{}) *gomock.Call

GetVpcSubnets indicates an expected call of GetVpcSubnets.

func (*MockAPIsMockRecorder) InitCachedPrefixDelegation added in v1.9.0

func (mr *MockAPIsMockRecorder) InitCachedPrefixDelegation(arg0 interface{}) *gomock.Call

InitCachedPrefixDelegation indicates an expected call of InitCachedPrefixDelegation.

func (*MockAPIsMockRecorder) IsEfaOnlyENI added in v1.20.0

func (mr *MockAPIsMockRecorder) IsEfaOnlyENI(arg0, arg1 interface{}) *gomock.Call

IsEfaOnlyENI indicates an expected call of IsEfaOnlyENI.

func (*MockAPIsMockRecorder) IsPrefixDelegationSupported added in v1.10.3

func (mr *MockAPIsMockRecorder) IsPrefixDelegationSupported() *gomock.Call

IsPrefixDelegationSupported indicates an expected call of IsPrefixDelegationSupported.

func (*MockAPIsMockRecorder) IsPrimaryENI added in v1.10.0

func (mr *MockAPIsMockRecorder) IsPrimaryENI(arg0 interface{}) *gomock.Call

IsPrimaryENI indicates an expected call of IsPrimaryENI.

func (*MockAPIsMockRecorder) IsSubnetExcluded added in v1.22.0

func (mr *MockAPIsMockRecorder) IsSubnetExcluded(arg0, arg1 interface{}) *gomock.Call

IsSubnetExcluded indicates an expected call of IsSubnetExcluded.

func (*MockAPIsMockRecorder) IsTrunkingCompatible added in v1.20.4

func (mr *MockAPIsMockRecorder) IsTrunkingCompatible() *gomock.Call

IsTrunkingCompatible indicates an expected call of IsTrunkingCompatible.

func (*MockAPIsMockRecorder) IsUnmanagedENI added in v1.7.2

func (mr *MockAPIsMockRecorder) IsUnmanagedENI(arg0 interface{}) *gomock.Call

IsUnmanagedENI indicates an expected call of IsUnmanagedENI.

func (*MockAPIsMockRecorder) IsUnmanagedNIC added in v1.20.0

func (mr *MockAPIsMockRecorder) IsUnmanagedNIC(arg0 interface{}) *gomock.Call

IsUnmanagedNIC indicates an expected call of IsUnmanagedNIC.

func (*MockAPIsMockRecorder) RefreshCustomSGIDs added in v1.22.0

func (mr *MockAPIsMockRecorder) RefreshCustomSGIDs(arg0, arg1 interface{}) *gomock.Call

RefreshCustomSGIDs indicates an expected call of RefreshCustomSGIDs.

func (*MockAPIsMockRecorder) RefreshSGIDs added in v1.7.10

func (mr *MockAPIsMockRecorder) RefreshSGIDs(arg0, arg1, arg2 interface{}) *gomock.Call

RefreshSGIDs indicates an expected call of RefreshSGIDs.

func (*MockAPIsMockRecorder) SetEFAOnlyENIs added in v1.20.0

func (mr *MockAPIsMockRecorder) SetEFAOnlyENIs(arg0 interface{}) *gomock.Call

SetEFAOnlyENIs indicates an expected call of SetEFAOnlyENIs.

func (*MockAPIsMockRecorder) SetUnmanagedENIs added in v1.7.2

func (mr *MockAPIsMockRecorder) SetUnmanagedENIs(arg0 interface{}) *gomock.Call

SetUnmanagedENIs indicates an expected call of SetUnmanagedENIs.

func (*MockAPIsMockRecorder) SetUnmanagedNetworkCards added in v1.20.0

func (mr *MockAPIsMockRecorder) SetUnmanagedNetworkCards(arg0 interface{}) *gomock.Call

SetUnmanagedNetworkCards indicates an expected call of SetUnmanagedNetworkCards.

func (*MockAPIsMockRecorder) TagENI added in v1.8.0

func (mr *MockAPIsMockRecorder) TagENI(arg0, arg1, arg2 interface{}) *gomock.Call

TagENI indicates an expected call of TagENI.

func (*MockAPIsMockRecorder) WaitForENIAndIPsAttached added in v1.7.2

func (mr *MockAPIsMockRecorder) WaitForENIAndIPsAttached(arg0, arg1 interface{}) *gomock.Call

WaitForENIAndIPsAttached indicates an expected call of WaitForENIAndIPsAttached.

Jump to

Keyboard shortcuts

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