Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/sdk_protos_map.csv
Original file line number Diff line number Diff line change
Expand Up @@ -276,6 +276,7 @@ base_remote_control,Close,,,Close,,
## Data Manager
data_manager,Sync,No,,Sync,,sync
data_manager,UploadBinaryDataToDatasets,No,,UploadBinaryDataToDatasets,,uploadBinaryDataToDatasets
data_manager,UploadImageToDatasets,No,,UploadImageToDatasets,,
## HACK: No proto for these (and/or inherited in Go SDK), manually mapping:
data_manager,Reconfigure,No,,Reconfigure,,
data_manager,DoCommand,No,,DoCommand,,doCommand
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
| ----------- | ----------- | --------------------------- |
| [`Sync`](/reference/apis/services/data/#sync) | Sync data stored on the machine to the cloud. | |
| [`UploadBinaryDataToDatasets`](/reference/apis/services/data/#uploadbinarydatatodatasets) | Upload Binary data to the specified datasets. | |
| [`UploadImageToDatasets`](/reference/apis/services/data/#uploadimagetodatasets) | Upload an image from the machine to one or more datasets, with optional tags. | |
| [`Reconfigure`](/reference/apis/services/data/#reconfigure) | Reconfigure this resource. | |
| [`DoCommand`](/reference/apis/services/data/#docommand) | Execute model-specific commands that are not otherwise defined by the service API. | |
| [`GetStatus`](/reference/apis/services/data/#getstatus) | Get the current status of the data management service as a map of key-value pairs describing its state. | |
Expand Down
25 changes: 25 additions & 0 deletions static/include/services/apis/generated/data_manager.md
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,31 @@ For more information, see the [TypeScript SDK Docs](https://ts.viam.dev/classes/
{{% /tab %}}
{{< /tabs >}}

### UploadImageToDatasets

Upload an image from the machine to one or more datasets, with optional tags.

{{< tabs >}}
{{% tab name="Go" %}}

**Parameters:**

- `ctx` [(Context)](https://pkg.go.dev/context#Context): A Context carries a deadline, a cancellation signal, and other values across API boundaries.
- `image` [(image.Image)](https://pkg.go.dev/image#Image)
- `datasetIDs`
- `tags` [([]string)](https://pkg.go.dev/builtin#string)
- `mimeType` [(datasyncpb.MimeType)](https://pkg.go.dev/go.viam.com/api/app/datasync/v1#MimeType)
- `extra` [(map[string]interface{})](https://go.dev/blog/maps): Extra options to pass to the underlying RPC call.

**Returns:**

- [(error)](https://pkg.go.dev/builtin#error): An error, if one occurred.

For more information, see the [Go SDK Docs](https://pkg.go.dev/go.viam.com/rdk/services/datamanager#Service).

{{% /tab %}}
{{< /tabs >}}

### Reconfigure

Reconfigure this resource.
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1 @@
Upload an image data to the specified datasets.
Upload an image from the machine to one or more datasets, with optional tags.
Loading