run

package
v0.0.0-...-2feb83d Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2024 License: Apache-2.0 Imports: 51 Imported by: 0

Documentation

Overview

Package run is the run system-probe subcommand

Index

Constants

This section is empty.

Variables

View Source
var ErrNotEnabled = errors.New("system-probe not enabled")

ErrNotEnabled represents the case in which system-probe is not enabled

Functions

func Commands

func Commands(globalParams *command.GlobalParams) []*cobra.Command

Commands returns a slice of subcommands for the 'system-probe' command.

func StartSystemProbeWithDefaults

func StartSystemProbeWithDefaults(ctxChan <-chan context.Context) (<-chan error, error)

StartSystemProbeWithDefaults is a temporary way for other packages to use startSystemProbe. Starts the agent in the background and then returns.

@ctxChan

  • After starting the agent the background goroutine waits for a context from this channel, then stops the agent when the context is cancelled.

Returns an error channel that can be used to wait for the agent to stop and get the result.

func StopSystemProbeWithDefaults

func StopSystemProbeWithDefaults()

StopSystemProbeWithDefaults is a temporary way for other packages to use stopAgent.

Types

This section is empty.

Jump to

Keyboard shortcuts

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