command

package
v0.16.9 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2026 License: BSD-3-Clause, GPL-3.0 Imports: 10 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package command supplies the capture and agent behavioral-monitoring flags.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Flags

func Flags() []cli.Flag

func Start

func Start(command *cli.Command, coll *collector.Collector, output, iface string, live bool) (func() error, error)

Start returns a shutdown function that checkpoints and reports all failures.

func StartOptions

func StartOptions(options Options, coll *collector.Collector, output, iface string, live bool) (func() error, error)

Types

type Options

type Options struct {
	DeliveryHealth func() *behavior.DeliveryHealth `json:"-"`
	OnAlert        func(*types.Alert)              `json:"-"`
	PolicyFile     string
	Policy         *behavior.Policy
	Enabled        bool
	Baseline       string
	Sensor         string
	Prefixes       []string
	Learning       time.Duration
	MinSamples     uint64
	MaxFacts       int
}

func ReadOptions

func ReadOptions(command *cli.Command) Options

Jump to

Keyboard shortcuts

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