builtin

package
v0.19.1 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2024 License: AGPL-3.0 Imports: 23 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 logging.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"`
	FileLastModifiedMillis int                              `json:"file_last_modified_millis"`
	SelectiveSyncerName    string                           `json:"selective_syncer_name"`
}

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