builtin

package
v0.10.0-rc1 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2023 License: AGPL-3.0 Imports: 22 Imported by: 0

Documentation

Overview

Package builtin contains a service type that can be used to capture data from a robot's components.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewBuiltIn

func NewBuiltIn(
	ctx context.Context,
	deps resource.Dependencies,
	conf resource.Config,
	logger golog.Logger,
) (datamanager.Service, error)

NewBuiltIn returns a new data manager service for the given robot.

Types

type Config

type Config struct {
	CaptureDir            string                           `json:"capture_dir"`
	AdditionalSyncPaths   []string                         `json:"additional_sync_paths"`
	SyncIntervalMins      float64                          `json:"sync_interval_mins"`
	CaptureDisabled       bool                             `json:"capture_disabled"`
	ScheduledSyncDisabled bool                             `json:"sync_disabled"`
	Tags                  []string                         `json:"tags"`
	ResourceConfigs       []*datamanager.DataCaptureConfig `json:"resource_configs"`
}

Config describes how to configure the service.

func (*Config) Validate added in v0.2.36

func (c *Config) Validate(path string) ([]string, error)

Validate returns components which will be depended upon weakly due to the above matcher.

Jump to

Keyboard shortcuts

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