Documentation
¶
Index ¶
- type ObjectCacheImpl
- type RuleObjectCacheMock
- func (r *RuleObjectCacheMock) AddHandler(_ context.Context, _ runtime.Object)
- func (r *RuleObjectCacheMock) ContainerCallback(_ containercollection.PubSubEvent)
- func (r *RuleObjectCacheMock) ContainerProfileCache() objectcache.ContainerProfileCache
- func (r *RuleObjectCacheMock) DeleteHandler(_ context.Context, _ runtime.Object)
- func (r *RuleObjectCacheMock) DeleteSharedContainerData(containerID string)
- func (r *RuleObjectCacheMock) DnsCache() objectcache.DnsCache
- func (r *RuleObjectCacheMock) GetApiServerIpAddress() string
- func (r *RuleObjectCacheMock) GetApplicationProfile(string) *v1beta1.ApplicationProfile
- func (r *RuleObjectCacheMock) GetApplicationProfileState(_ string) *objectcache.ProfileState
- func (r *RuleObjectCacheMock) GetCallStackSearchTree(string) *callstackcache.CallStackSearchTree
- func (r *RuleObjectCacheMock) GetContainerProfile(containerID string) *v1beta1.ContainerProfile
- func (r *RuleObjectCacheMock) GetContainerProfileState(_ string) *objectcache.ProfileState
- func (r *RuleObjectCacheMock) GetNetworkNeighborhood(string) *v1beta1.NetworkNeighborhood
- func (r *RuleObjectCacheMock) GetNetworkNeighborhoodState(_ string) *objectcache.ProfileState
- func (r *RuleObjectCacheMock) GetPod(_, _ string) *corev1.Pod
- func (r *RuleObjectCacheMock) GetPodSpec(_, _ string) *corev1.PodSpec
- func (r *RuleObjectCacheMock) GetPodStatus(_, _ string) *corev1.PodStatus
- func (r *RuleObjectCacheMock) GetPods() []*corev1.Pod
- func (r *RuleObjectCacheMock) GetSharedContainerData(containerID string) *objectcache.WatchedContainerData
- func (r *RuleObjectCacheMock) K8sObjectCache() objectcache.K8sObjectCache
- func (r *RuleObjectCacheMock) ModifyHandler(_ context.Context, _ runtime.Object)
- func (r *RuleObjectCacheMock) ResolveIpToDomain(ip string) string
- func (r *RuleObjectCacheMock) SetApplicationProfile(profile *v1beta1.ApplicationProfile)
- func (r *RuleObjectCacheMock) SetContainerProfile(cp *v1beta1.ContainerProfile)
- func (r *RuleObjectCacheMock) SetDnsCache(dnsCache map[string]string)
- func (r *RuleObjectCacheMock) SetNetworkNeighborhood(nn *v1beta1.NetworkNeighborhood)
- func (r *RuleObjectCacheMock) SetPodSpec(podSpec *corev1.PodSpec)
- func (r *RuleObjectCacheMock) SetPodStatus(podStatus *corev1.PodStatus)
- func (r *RuleObjectCacheMock) SetSharedContainerData(containerID string, data *objectcache.WatchedContainerData)
- func (r *RuleObjectCacheMock) Start(_ context.Context)
- func (r *RuleObjectCacheMock) WatchResources() []watcher.WatchResource
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ObjectCacheImpl ¶
type ObjectCacheImpl struct {
// contains filtered or unexported fields
}
func NewObjectCache ¶
func NewObjectCache(k objectcache.K8sObjectCache, cp objectcache.ContainerProfileCache, dc objectcache.DnsCache) *ObjectCacheImpl
func (*ObjectCacheImpl) ContainerProfileCache ¶ added in v0.3.108
func (o *ObjectCacheImpl) ContainerProfileCache() objectcache.ContainerProfileCache
func (*ObjectCacheImpl) DnsCache ¶ added in v0.2.128
func (o *ObjectCacheImpl) DnsCache() objectcache.DnsCache
func (*ObjectCacheImpl) K8sObjectCache ¶
func (o *ObjectCacheImpl) K8sObjectCache() objectcache.K8sObjectCache
type RuleObjectCacheMock ¶ added in v0.3.3
type RuleObjectCacheMock struct {
// contains filtered or unexported fields
}
RuleObjectCacheMock is a test double for RuleObjectCache.
Setter partition contract — SetApplicationProfile and SetNetworkNeighborhood both write into cpByContainerName entries but own non-overlapping fields:
SetApplicationProfile → Architectures, Capabilities, Execs, Opens, Syscalls,
SeccompProfile, Endpoints, ImageID, ImageTag,
PolicyByRuleId, IdentifiedCallStacks
SetNetworkNeighborhood → LabelSelector, Ingress, Egress
Calling both setters produces a fully-populated ContainerProfile with no field conflict. Both setters apply a first-container-wins rule for r.cp (backward-compat pointer for single-container tests); the per-container map cpByContainerName is authoritative for multi-container tests.
func (*RuleObjectCacheMock) AddHandler ¶ added in v0.3.3
func (r *RuleObjectCacheMock) AddHandler(_ context.Context, _ runtime.Object)
func (*RuleObjectCacheMock) ContainerCallback ¶ added in v0.3.3
func (r *RuleObjectCacheMock) ContainerCallback(_ containercollection.PubSubEvent)
func (*RuleObjectCacheMock) ContainerProfileCache ¶ added in v0.3.108
func (r *RuleObjectCacheMock) ContainerProfileCache() objectcache.ContainerProfileCache
func (*RuleObjectCacheMock) DeleteHandler ¶ added in v0.3.3
func (r *RuleObjectCacheMock) DeleteHandler(_ context.Context, _ runtime.Object)
func (*RuleObjectCacheMock) DeleteSharedContainerData ¶ added in v0.3.3
func (r *RuleObjectCacheMock) DeleteSharedContainerData(containerID string)
func (*RuleObjectCacheMock) DnsCache ¶ added in v0.3.3
func (r *RuleObjectCacheMock) DnsCache() objectcache.DnsCache
func (*RuleObjectCacheMock) GetApiServerIpAddress ¶ added in v0.3.3
func (r *RuleObjectCacheMock) GetApiServerIpAddress() string
func (*RuleObjectCacheMock) GetApplicationProfile ¶ added in v0.3.3
func (r *RuleObjectCacheMock) GetApplicationProfile(string) *v1beta1.ApplicationProfile
func (*RuleObjectCacheMock) GetApplicationProfileState ¶ added in v0.3.3
func (r *RuleObjectCacheMock) GetApplicationProfileState(_ string) *objectcache.ProfileState
func (*RuleObjectCacheMock) GetCallStackSearchTree ¶ added in v0.3.3
func (r *RuleObjectCacheMock) GetCallStackSearchTree(string) *callstackcache.CallStackSearchTree
func (*RuleObjectCacheMock) GetContainerProfile ¶ added in v0.3.108
func (r *RuleObjectCacheMock) GetContainerProfile(containerID string) *v1beta1.ContainerProfile
func (*RuleObjectCacheMock) GetContainerProfileState ¶ added in v0.3.108
func (r *RuleObjectCacheMock) GetContainerProfileState(_ string) *objectcache.ProfileState
func (*RuleObjectCacheMock) GetNetworkNeighborhood ¶ added in v0.3.3
func (r *RuleObjectCacheMock) GetNetworkNeighborhood(string) *v1beta1.NetworkNeighborhood
func (*RuleObjectCacheMock) GetNetworkNeighborhoodState ¶ added in v0.3.3
func (r *RuleObjectCacheMock) GetNetworkNeighborhoodState(_ string) *objectcache.ProfileState
func (*RuleObjectCacheMock) GetPod ¶ added in v0.3.3
func (r *RuleObjectCacheMock) GetPod(_, _ string) *corev1.Pod
func (*RuleObjectCacheMock) GetPodSpec ¶ added in v0.3.3
func (r *RuleObjectCacheMock) GetPodSpec(_, _ string) *corev1.PodSpec
func (*RuleObjectCacheMock) GetPodStatus ¶ added in v0.3.3
func (r *RuleObjectCacheMock) GetPodStatus(_, _ string) *corev1.PodStatus
func (*RuleObjectCacheMock) GetPods ¶ added in v0.3.3
func (r *RuleObjectCacheMock) GetPods() []*corev1.Pod
func (*RuleObjectCacheMock) GetSharedContainerData ¶ added in v0.3.3
func (r *RuleObjectCacheMock) GetSharedContainerData(containerID string) *objectcache.WatchedContainerData
func (*RuleObjectCacheMock) K8sObjectCache ¶ added in v0.3.3
func (r *RuleObjectCacheMock) K8sObjectCache() objectcache.K8sObjectCache
func (*RuleObjectCacheMock) ModifyHandler ¶ added in v0.3.3
func (r *RuleObjectCacheMock) ModifyHandler(_ context.Context, _ runtime.Object)
func (*RuleObjectCacheMock) ResolveIpToDomain ¶ added in v0.3.3
func (r *RuleObjectCacheMock) ResolveIpToDomain(ip string) string
func (*RuleObjectCacheMock) SetApplicationProfile ¶ added in v0.3.3
func (r *RuleObjectCacheMock) SetApplicationProfile(profile *v1beta1.ApplicationProfile)
func (*RuleObjectCacheMock) SetContainerProfile ¶ added in v0.3.108
func (r *RuleObjectCacheMock) SetContainerProfile(cp *v1beta1.ContainerProfile)
func (*RuleObjectCacheMock) SetDnsCache ¶ added in v0.3.3
func (r *RuleObjectCacheMock) SetDnsCache(dnsCache map[string]string)
func (*RuleObjectCacheMock) SetNetworkNeighborhood ¶ added in v0.3.3
func (r *RuleObjectCacheMock) SetNetworkNeighborhood(nn *v1beta1.NetworkNeighborhood)
func (*RuleObjectCacheMock) SetPodSpec ¶ added in v0.3.3
func (r *RuleObjectCacheMock) SetPodSpec(podSpec *corev1.PodSpec)
func (*RuleObjectCacheMock) SetPodStatus ¶ added in v0.3.3
func (r *RuleObjectCacheMock) SetPodStatus(podStatus *corev1.PodStatus)
func (*RuleObjectCacheMock) SetSharedContainerData ¶ added in v0.3.3
func (r *RuleObjectCacheMock) SetSharedContainerData(containerID string, data *objectcache.WatchedContainerData)
func (*RuleObjectCacheMock) Start ¶ added in v0.3.108
func (r *RuleObjectCacheMock) Start(_ context.Context)
func (*RuleObjectCacheMock) WatchResources ¶ added in v0.3.3
func (r *RuleObjectCacheMock) WatchResources() []watcher.WatchResource
Click to show internal directories.
Click to hide internal directories.