Help us shape the future of Go! Take the 2026 Go Developer Survey

testipcache

package
v1.20.3 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2026 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) 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) 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) Upsert

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

func (*MockIPCache) UpsertMetadataBatch added in v1.16.0

func (m *MockIPCache) UpsertMetadataBatch(updates ...ipcache.MU) (revision uint64)

func (*MockIPCache) WaitForRevision added in v1.16.0

func (m *MockIPCache) WaitForRevision(ctx context.Context, rev uint64) error

Jump to

Keyboard shortcuts

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