testipcache

package
v1.15.5 Latest Latest
Warning

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

Go to latest
Published: May 10, 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 MockIPCache

type MockIPCache struct{}

func NewMockIPCache

func NewMockIPCache() *MockIPCache

func (*MockIPCache) AddListener

func (m *MockIPCache) AddListener(listener ipcache.IPIdentityMappingListener)

func (*MockIPCache) AllocateCIDRs

func (m *MockIPCache) AllocateCIDRs(prefixes []netip.Prefix, newlyAllocatedIdentities map[netip.Prefix]*identity.Identity) ([]*identity.Identity, error)

func (*MockIPCache) Delete

func (m *MockIPCache) Delete(IP string, source source.Source) (namedPortsChanged bool)

func (*MockIPCache) DeleteOnMetadataMatch

func (m *MockIPCache) DeleteOnMetadataMatch(IP string, source source.Source, namespace, name string) (namedPortsChanged bool)

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) RemovePrefixes added in v1.15.0

func (m *MockIPCache) RemovePrefixes(prefixes []netip.Prefix, src source.Source, resource ipcacheTypes.ResourceID)

func (*MockIPCache) Upsert

func (m *MockIPCache) Upsert(ip string, hostIP net.IP, hostKey uint8, k8sMeta *ipcache.K8sMetadata, newIdentity ipcache.Identity) (namedPortsChanged bool, err error)

func (*MockIPCache) UpsertLabels

func (m *MockIPCache) UpsertLabels(prefix netip.Prefix, lbls labels.Labels, src source.Source, resource ipcacheTypes.ResourceID)

func (*MockIPCache) UpsertPrefixes added in v1.15.0

func (m *MockIPCache) UpsertPrefixes(prefixes []netip.Prefix, src source.Source, resource ipcacheTypes.ResourceID) uint64

Jump to

Keyboard shortcuts

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