exec

package
v0.28.1 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2022 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckApplicationName added in v0.3.0

func CheckApplicationName(logger *logrus.Logger, applicationName string, spyName string, args []string) string

func NewLogger added in v0.3.0

func NewLogger(logLevel string, noLogging bool) *logrus.Logger

func PerformChecks added in v0.3.0

func PerformChecks(spyName string) error

Types

type Connect added in v0.3.0

type Connect struct {
	Logger             *logrus.Logger
	Upstream           upstream.Upstream
	SpyName            string
	ApplicationName    string
	SampleRate         uint32
	DetectSubprocesses bool
	Tags               map[string]string
	Pid                int
}

func NewConnect added in v0.3.0

func NewConnect(cfg *config.Connect) (*Connect, error)

func (*Connect) Run added in v0.3.0

func (c *Connect) Run() error

type Exec added in v0.3.0

type Exec struct {
	Args               []string
	Logger             *logrus.Logger
	Upstream           upstream.Upstream
	SpyName            string
	ApplicationName    string
	SampleRate         uint32
	DetectSubprocesses bool
	Tags               map[string]string
	NoRootDrop         bool
	UserName           string
	GroupName          string
}

func NewExec added in v0.3.0

func NewExec(cfg *config.Exec, args []string) (*Exec, error)

func (*Exec) Run added in v0.3.0

func (e *Exec) Run() error

type UnsupportedSpyError added in v0.3.0

type UnsupportedSpyError struct {
	Args       []string
	Subcommand string
}

func (UnsupportedSpyError) Error added in v0.3.0

func (e UnsupportedSpyError) Error() string

Jump to

Keyboard shortcuts

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