Documentation ¶
Index ¶
- Constants
- type IGContainerWatcher
- func (ch *IGContainerWatcher) GetContainerCollection() *containercollection.ContainerCollection
- func (ch *IGContainerWatcher) GetContainerSelector() *containercollection.ContainerSelector
- func (ch *IGContainerWatcher) GetSocketEnricher() *socketenricher.SocketEnricher
- func (ch *IGContainerWatcher) GetTracerCollection() *tracercollection.TracerCollection
- func (ch *IGContainerWatcher) Ready() bool
- func (ch *IGContainerWatcher) RegisterContainerReceiver(receiver containerwatcher.ContainerReceiver)
- func (ch *IGContainerWatcher) RegisterCustomTracer(tracer containerwatcher.CustomTracer) error
- func (ch *IGContainerWatcher) Start(ctx context.Context) error
- func (ch *IGContainerWatcher) Stop()
- func (ch *IGContainerWatcher) UnregisterContainerReceiver(receiver containerwatcher.ContainerReceiver)
- func (ch *IGContainerWatcher) UnregisterCustomTracer(tracer containerwatcher.CustomTracer) error
- type IGK8sClient
- type IGK8sClientMock
Constants ¶
View Source
const (
MaxSniffingTimeLabel = "kubescape.io/max-sniffing-time"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IGContainerWatcher ¶
type IGContainerWatcher struct {
// contains filtered or unexported fields
}
func CreateIGContainerWatcher ¶
func CreateIGContainerWatcher(cfg config.Config, applicationProfileManager applicationprofilemanager.ApplicationProfileManagerClient, k8sClient *k8sinterface.KubernetesApi, relevancyManager relevancymanager.RelevancyManagerClient, networkManagerClient networkmanager.NetworkManagerClient, dnsManagerClient dnsmanager.DNSManagerClient, metrics metricsmanager.MetricsManager, ruleManager rulemanager.RuleManagerClient, malwareManager malwaremanager.MalwareManagerClient, preRunningContainers mapset.Set[string], ruleBindingPodNotify *chan rulebinding.RuleBindingNotify, runtime *containerutilsTypes.RuntimeConfig, thirdPartyEventReceivers *maps.SafeMap[utils.EventType, mapset.Set[containerwatcher.EventReceiver]]) (*IGContainerWatcher, error)
func (*IGContainerWatcher) GetContainerCollection ¶ added in v0.2.145
func (ch *IGContainerWatcher) GetContainerCollection() *containercollection.ContainerCollection
func (*IGContainerWatcher) GetContainerSelector ¶ added in v0.2.145
func (ch *IGContainerWatcher) GetContainerSelector() *containercollection.ContainerSelector
func (*IGContainerWatcher) GetSocketEnricher ¶ added in v0.2.145
func (ch *IGContainerWatcher) GetSocketEnricher() *socketenricher.SocketEnricher
func (*IGContainerWatcher) GetTracerCollection ¶ added in v0.2.145
func (ch *IGContainerWatcher) GetTracerCollection() *tracercollection.TracerCollection
func (*IGContainerWatcher) Ready ¶
func (ch *IGContainerWatcher) Ready() bool
func (*IGContainerWatcher) RegisterContainerReceiver ¶ added in v0.2.145
func (ch *IGContainerWatcher) RegisterContainerReceiver(receiver containerwatcher.ContainerReceiver)
func (*IGContainerWatcher) RegisterCustomTracer ¶ added in v0.2.145
func (ch *IGContainerWatcher) RegisterCustomTracer(tracer containerwatcher.CustomTracer) error
func (*IGContainerWatcher) Stop ¶
func (ch *IGContainerWatcher) Stop()
func (*IGContainerWatcher) UnregisterContainerReceiver ¶ added in v0.2.145
func (ch *IGContainerWatcher) UnregisterContainerReceiver(receiver containerwatcher.ContainerReceiver)
func (*IGContainerWatcher) UnregisterCustomTracer ¶ added in v0.2.145
func (ch *IGContainerWatcher) UnregisterCustomTracer(tracer containerwatcher.CustomTracer) error
type IGK8sClient ¶
type IGK8sClient interface { GetNonRunningContainers(pod *corev1.Pod) []string GetRunningContainers(pod *corev1.Pod) []containercollection.Container ListContainers() (arr []containercollection.Container, err error) }
type IGK8sClientMock ¶
type IGK8sClientMock struct { }
func NewIGK8sClientMock ¶
func NewIGK8sClientMock() *IGK8sClientMock
func (*IGK8sClientMock) GetNonRunningContainers ¶
func (k *IGK8sClientMock) GetNonRunningContainers(pod *corev1.Pod) []string
GetNonRunningContainers returns the list of containers IDs that are not running.
func (*IGK8sClientMock) GetRunningContainers ¶
func (k *IGK8sClientMock) GetRunningContainers(pod *corev1.Pod) []containercollection.Container
GetRunningContainers returns a list of the containers of a given Pod that are running.
func (*IGK8sClientMock) ListContainers ¶
func (k *IGK8sClientMock) ListContainers() (arr []containercollection.Container, err error)
ListContainers return a list of the current containers that are running in the node.
Click to show internal directories.
Click to hide internal directories.