datasync

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2022 License: AGPL-3.0 Imports: 19 Imported by: 0

Documentation

Overview

Package datasync contains interfaces for syncing data from robots to the app.viam.com cloud.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Manager

type Manager interface {
	Sync(paths []string)
	Close()
}

Manager is responsible for enqueuing files in captureDir and uploading them to the cloud.

func NewSyncer

func NewSyncer(logger golog.Logger, uploadFunc UploadFunc, partID string) (Manager, error)

NewSyncer returns a new syncer. If a nil UploadFunc is passed, the default viamUpload is used. TODO DATA-206: instantiate a client.

type UploadFunc

type UploadFunc func(ctx context.Context, client v1.DataSyncService_UploadClient, path string,
	partID string) error

UploadFunc defines a function for uploading a file to the Viam data sync service backend.

Jump to

Keyboard shortcuts

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