runner

package
v0.14.7-rc.10 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2023 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

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

Functions

func RunDesktopStrategy

func RunDesktopStrategy(ctx context.Context, cfg agentConfig.Config, ui consoleUI.ConsoleUI, uiEndpoint string) error

func StartCollector

func StartCollector(ctx context.Context, config config.Config, traceCache collector.TraceCache) 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) 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) (*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