Documentation
¶
Overview ¶
Package modmanageroptions provides Options for configuring a mod manager
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Options ¶
type Options struct {
UntrustedEnv bool
// ViamHomeDir is the root of Viam server configuration. This is ~/.viam for now but will become /opt/viam as part of viam-agent
ViamHomeDir string
// RobotCloudID is the ID of the robot in app.viam.com. Empty if this is a local-only robot
RobotCloudID string
// RemoveOrphanedResources is a function that the module manager can call to
// remove orphaned resources from the resource graph.
RemoveOrphanedResources func(ctx context.Context, rNames []resource.Name)
// PackagesDir is from Config.PackagesPath. It's used for resolving local tarball module paths.
PackagesDir string
// Passing in an FTDC object will let the mod manager add and remove pieces to track diagnostics
// of. Such module process CPU/memory information as they are started and stopped.
FTDC *ftdc.FTDC
// ModPeerConnTracker is to be updated when a PeerConnection is made with a module. Such that
// gRPC API calls can choose to respond with data over the PeerConnection. Such is the case with
// video streams.
ModPeerConnTracker *grpc.ModPeerConnTracker
}
Options configures a modManager.
Click to show internal directories.
Click to hide internal directories.