Documentation
¶
Index ¶
- type MockIPCache
- func (m *MockIPCache) AddListener(listener ipcache.IPIdentityMappingListener)
- func (m *MockIPCache) AllocateCIDRs(prefixes []netip.Prefix, ...) ([]*identity.Identity, error)
- func (m *MockIPCache) Delete(IP string, source source.Source) (namedPortsChanged bool)
- func (m *MockIPCache) DeleteOnMetadataMatch(IP string, source source.Source, namespace, name string) (namedPortsChanged bool)
- func (m *MockIPCache) GetNamedPorts() types.NamedPortMultiMap
- func (m *MockIPCache) LookupByIP(IP string) (ipcache.Identity, bool)
- func (m *MockIPCache) ReleaseCIDRIdentitiesByCIDR(prefixes []netip.Prefix)
- func (m *MockIPCache) RemoveLabelsExcluded(lbls labels.Labels, toExclude map[netip.Prefix]struct{}, ...)
- func (m *MockIPCache) RemoveMetadataBatch(updates ...ipcache.MU) (revision uint64)
- func (m *MockIPCache) RemovePrefixes(prefixes []netip.Prefix, src source.Source, resource ipcacheTypes.ResourceID)
- func (m *MockIPCache) Upsert(ip string, hostIP net.IP, hostKey uint8, k8sMeta *ipcache.K8sMetadata, ...) (namedPortsChanged bool, err error)
- func (m *MockIPCache) UpsertLabels(prefix netip.Prefix, lbls labels.Labels, src source.Source, ...)
- func (m *MockIPCache) UpsertMetadataBatch(updates ...ipcache.MU) (revision uint64)
- func (m *MockIPCache) UpsertPrefixes(prefixes []netip.Prefix, src source.Source, resource ipcacheTypes.ResourceID) uint64
- func (m *MockIPCache) WaitForRevision(ctx context.Context, rev uint64) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockIPCache ¶
type MockIPCache struct{}
func NewMockIPCache ¶
func NewMockIPCache() *MockIPCache
func (*MockIPCache) AddListener ¶
func (m *MockIPCache) AddListener(listener ipcache.IPIdentityMappingListener)
func (*MockIPCache) AllocateCIDRs ¶
func (*MockIPCache) Delete ¶
func (m *MockIPCache) Delete(IP string, source source.Source) (namedPortsChanged bool)
func (*MockIPCache) DeleteOnMetadataMatch ¶
func (*MockIPCache) GetNamedPorts ¶
func (m *MockIPCache) GetNamedPorts() types.NamedPortMultiMap
func (*MockIPCache) LookupByIP ¶
func (m *MockIPCache) LookupByIP(IP string) (ipcache.Identity, bool)
func (*MockIPCache) ReleaseCIDRIdentitiesByCIDR ¶
func (m *MockIPCache) ReleaseCIDRIdentitiesByCIDR(prefixes []netip.Prefix)
func (*MockIPCache) RemoveLabelsExcluded ¶
func (m *MockIPCache) RemoveLabelsExcluded(lbls labels.Labels, toExclude map[netip.Prefix]struct{}, resource ipcacheTypes.ResourceID)
func (*MockIPCache) RemoveMetadataBatch ¶ added in v1.16.0
func (m *MockIPCache) RemoveMetadataBatch(updates ...ipcache.MU) (revision uint64)
func (*MockIPCache) RemovePrefixes ¶ added in v1.15.0
func (m *MockIPCache) RemovePrefixes(prefixes []netip.Prefix, src source.Source, resource ipcacheTypes.ResourceID)
func (*MockIPCache) UpsertLabels ¶
func (m *MockIPCache) UpsertLabels(prefix netip.Prefix, lbls labels.Labels, src source.Source, resource ipcacheTypes.ResourceID)
func (*MockIPCache) UpsertMetadataBatch ¶ added in v1.16.0
func (m *MockIPCache) UpsertMetadataBatch(updates ...ipcache.MU) (revision uint64)
func (*MockIPCache) UpsertPrefixes ¶ added in v1.15.0
func (m *MockIPCache) UpsertPrefixes(prefixes []netip.Prefix, src source.Source, resource ipcacheTypes.ResourceID) uint64
func (*MockIPCache) WaitForRevision ¶ added in v1.16.0
func (m *MockIPCache) WaitForRevision(ctx context.Context, rev uint64) error
Click to show internal directories.
Click to hide internal directories.