Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var EBPFKitClient = &cobra.Command{
Use: "ebpfkit-client",
}
EBPFKitClient represents the base command of the ebpfKitClient
Functions ¶
This section is empty.
Types ¶
type CLIOptions ¶
type CLIOptions struct { LogLevel logrus.Level Target string From string To string // fs_watch options InContainer bool Active bool Output string // pipe_prog options Backup bool // docker options Override int Ping int // postgres options Role string Secret string // network discovery scan IP string Port string Range string ActiveDiscovery bool PassiveDiscovery bool }
CLIOptions are the command line options of ssh-probe
type LogLevelSanitizer ¶
type LogLevelSanitizer struct {
// contains filtered or unexported fields
}
LogLevelSanitizer is a log level sanitizer that ensures that the provided log level exists
func NewLogLevelSanitizer ¶
func NewLogLevelSanitizer(sanitizedLevel *logrus.Level) *LogLevelSanitizer
NewLogLevelSanitizer creates a new instance of LogLevelSanitizer. The sanitized level will be written in the provided logrus level
func (*LogLevelSanitizer) Set ¶
func (lls *LogLevelSanitizer) Set(val string) error
func (*LogLevelSanitizer) String ¶
func (lls *LogLevelSanitizer) String() string
func (*LogLevelSanitizer) Type ¶
func (lls *LogLevelSanitizer) Type() string
type TargetParser ¶
type TargetParser struct {
// contains filtered or unexported fields
}
TargetParser parses the target from the environment variables or from the CLI arguments
func NewTargetParser ¶
func NewTargetParser(target *string) *TargetParser
NewTargetParser returns a new instance of TargetParser
func (*TargetParser) Set ¶
func (tp *TargetParser) Set(val string) error
func (*TargetParser) String ¶
func (tp *TargetParser) String() string
func (*TargetParser) Type ¶
func (tp *TargetParser) Type() string
Click to show internal directories.
Click to hide internal directories.