func (nsp *NetworkSecurityProbe) Start() error {
	nspLogger.Debugln("network security probe starting ...")
	// Set a unique seed to prepare the generation of IDs
	rand.Seed(time.Now().UnixNano())
	if err := nsp.init(); err != nil {
		return err
	}
	// 1) Load eBPF program
	if err := nsp.loadEBPFProgram(); err != nil {
		return err
	}
	// 2) Start processors
	if err := nsp.startProcessors(); err != nil {
		return err
	}
	// 3) Start monitors
	if err := nsp.startMonitors(); err != nil {
		return err
	}
	// 4) Start k8s informer
	if err := nsp.KubeInformer.Start(); err != nil {
		return err
	}
	return nil
}
// Start - Starts the network security probe (doesn't block)
Starts the network security probe (doesn't block)
// Start - Starts the network security probe ( doesn ' t block )
func (nsp *NetworkSecurityProbe) Start() error {
	nspLogger.Debugln("network security probe starting ...")
	rand.Seed(time.Now().UnixNano())
	if err := nsp.init(); err != nil {
		return err
	}
	if err := nsp.loadEBPFProgram(); err != nil {
		return err
	}
	if err := nsp.startProcessors(); err != nil {
		return err
	}
	if err := nsp.startMonitors(); err != nil {
		return err
	}
	if err := nsp.KubeInformer.Start(); err != nil {
		return err
	}
	return nil
}
func ( nsp * NetworkSecurityProbe ) Start ( ) error { nspLogger . Debugln ( " " ) rand . Seed ( time . Now ( ) . UnixNano ( ) ) if err := nsp . init ( ) ; err != nil { return err } if err := nsp . loadEBPFProgram ( ) ; err != nil { return err } if err := nsp . startProcessors ( ) ; err != nil { return err } if err := nsp . startMonitors ( ) ; err != nil { return err } if err := nsp . KubeInformer . Start ( ) ; err != nil { return err } return nil }
Starts the network security probe (doesn't block)
Starts the network security probe ( doesn ' t block )
// Set a unique seed to prepare the generation of IDs // 1) Load eBPF program // 2) Start processors // 3) Start monitors // 4) Start k8s informer