runner

package
v0.15.0-rc.2 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2023 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrOtlpServerStart = errors.New("OTLP server start error")

Functions

func StartCollector

func StartCollector(ctx context.Context, config config.Config, traceCache collector.TraceCache, observer event.Observer, logger *zap.Logger) error

Types

type Runner

type Runner struct {
	// contains filtered or unexported fields
}

func NewRunner

func NewRunner(configurator config.Configurator, resources *resourcemanager.Registry, ui ui.ConsoleUI) *Runner

func (*Runner) Run

func (s *Runner) Run(ctx context.Context, cfg config.Config, flags agentConfig.Flags) error

func (*Runner) RunDesktopStrategy added in v0.14.8

func (s *Runner) RunDesktopStrategy(ctx context.Context, cfg agentConfig.Config, uiEndpoint string) error

func (*Runner) RunVerboseStrategy added in v0.14.8

func (s *Runner) RunVerboseStrategy(ctx context.Context, cfg agentConfig.Config) error

func (*Runner) StartAgent

func (s *Runner) StartAgent(ctx context.Context, endpoint, agentApiKey, uiEndpoint string) error

type Session

type Session struct {
	Token string
	// contains filtered or unexported fields
}

func StartSession

func StartSession(ctx context.Context, cfg config.Config, observer event.Observer, logger *zap.Logger) (*Session, error)

Start the agent session with given configuration

func (*Session) Close

func (s *Session) Close()

func (*Session) WaitUntilDisconnected

func (s *Session) WaitUntilDisconnected()

Jump to

Keyboard shortcuts

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