testipcache

package
v1.14.1 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2023 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, oldNIDs []identity.NumericIdentity, 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) 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)

Jump to

Keyboard shortcuts

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