trace

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2018 License: Apache-2.0 Imports: 16 Imported by: 35

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FindTraceTargets

func FindTraceTargets(ctx context.Context, device path.Device, uri string) ([]*tracer.TraceTargetTreeNode, error)

FindTraceTargets returns trace targets matching the given search parameters.

func PutManager

func PutManager(ctx context.Context, m *Manager) context.Context

PutManager attaches a manager to a Context.

func Trace

func Trace(ctx context.Context, device *path.Device, start task.Signal, options *tracer.TraceOptions, written *int64) error

func TraceTargetTreeNode

func TraceTargetTreeNode(ctx context.Context, device path.Device, uri string, density float32) (*tracer.TraceTargetTreeNode, error)

TraceTargetTreeNode returns a trace target tree node for the given request

Types

type Manager

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

Manager is used discover trace devices and to send trace requests to those discovered devices.

func GetManager

func GetManager(ctx context.Context) *Manager

GetManager retrieves the manager from a context previously annotated by PutManager.

func New

func New(ctx context.Context) *Manager

New returns a new Manager instance using the database db.

type TraceConfig

type TraceConfig struct {
	ServerLocalPath      bool                     // Are the paths server-local for this tracer
	CanSpecifyCwd        bool                     // Does it make sense to specify a CWD for this device
	CanUploadApplication bool                     // Does this device support app upload
	CanSpecifyEnv        bool                     // Does this device support environment variables
	HasCache             bool                     // Does this device have a clearable cache
	PreferredRootUri     string                   // What URI is the preferred root
	Apis                 []tracer.APITraceOptions // API specific tracing options
}

func TraceConfiguration

func TraceConfiguration(ctx context.Context, device *path.Device) (*TraceConfig, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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