Documentation ¶
Index ¶
- type MockIPCache
- func (m *MockIPCache) AddListener(listener ipcache.IPIdentityMappingListener)
- func (m *MockIPCache) AllocateCIDRs(prefixes []netip.Prefix, oldNIDs []identity.NumericIdentity, ...) ([]*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) 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, ...)
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) UpsertLabels ¶
func (m *MockIPCache) UpsertLabels(prefix netip.Prefix, lbls labels.Labels, src source.Source, resource ipcacheTypes.ResourceID)
Click to show internal directories.
Click to hide internal directories.