Skip to content

Commit 3cebc4b

Browse files
Add Go snippets for Workflows
1 parent d3713b7 commit 3cebc4b

33 files changed

+1492
-99
lines changed

.vale.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ StylesPath = "vale/styles"
22

33
Vocab = docs
44
Packages = Google
5-
IgnoredScopes = code, tt, img, url, a
5+
IgnoredScopes = code, tt, img, url, a, text.frontmatter
66
SkippedScopes = script, style, pre, figure, code
77
MinAlertLevel = warning
88

api-reference/go/datasets/Collections.Create.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ func (collectionClient) Create(
99
ctx context.Context,
1010
datasetID uuid.UUID,
1111
collectionName string,
12-
) (*Collection, error)
12+
) (*datasets.Collection, error)
1313
```
1414

1515
Create a collection in the dataset.

api-reference/go/datasets/Collections.Get.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ func (collectionClient) Get(
99
ctx context.Context,
1010
datasetID uuid.UUID,
1111
name string,
12-
) (*Collection, error)
12+
) (*datasets.Collection, error)
1313
```
1414

1515
Get a dataset by its slug.

api-reference/go/datasets/Collections.List.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ icon: layer-group
88
func (collectionClient) List(
99
ctx context.Context,
1010
datasetID uuid.UUID,
11-
) ([]*Collection, error)
11+
) ([]*datasets.Collection, error)
1212
```
1313

1414
List the available collections in a dataset.

api-reference/go/datasets/Datapoints.Delete.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ func (datapointClient) Delete(
99
ctx context.Context,
1010
collectionID uuid.UUID,
1111
datapoints any,
12-
) (*DeleteResponse, error)
12+
) (*datasets.DeleteResponse, error)
1313
```
1414

1515
Delete data points from a collection.

api-reference/go/datasets/Datapoints.DeleteIDs.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ func (datapointClient) DeleteIDs(
99
ctx context.Context,
1010
collectionID uuid.UUID,
1111
datapointIDs []uuid.UUID,
12-
) (*DeleteResponse, error)
12+
) (*datasets.DeleteResponse, error)
1313
```
1414

1515
Delete data points from a collection.

api-reference/go/datasets/Datapoints.Ingest.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ func (datapointClient) Ingest(
1010
collectionID uuid.UUID,
1111
datapoints any,
1212
allowExisting bool,
13-
) (*IngestResponse, error)
13+
) (*datasets.IngestResponse, error)
1414
```
1515

1616
Ingest data points into a collection.

api-reference/go/datasets/Datapoints.Load.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ func (datapointClient) Load(
99
ctx context.Context,
1010
collectionID uuid.UUID,
1111
interval interval.LoadInterval,
12-
options ...LoadOption,
12+
options ...datasets.LoadOption,
1313
) iter.Seq2[[]byte, error]
1414
```
1515

@@ -26,7 +26,7 @@ The output sequence can be transformed into a typed `proto.Message` using `Colle
2626
<ParamField path="interval" type="interval.LoadInterval">
2727
The interval for which to load data points
2828
</ParamField>
29-
<ParamField path="options" type="[]LoadOption">
29+
<ParamField path="options" type="[]datasets.LoadOption">
3030
Options for loading data points
3131
</ParamField>
3232

api-reference/go/datasets/Datapoints.LoadInto.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ func (datapointClient) LoadInto(
1010
collectionID uuid.UUID,
1111
interval interval.LoadInterval,
1212
datapoints any,
13-
options ...LoadOption,
13+
options ...datasets.LoadOption,
1414
) error
1515
```
1616

@@ -27,7 +27,7 @@ Load a range of data points in this collection in a specified interval.
2727
<ParamField path="datapoints" type="[]proto.Message">
2828
The datapoints to load into
2929
</ParamField>
30-
<ParamField path="options" type="[]LoadOption">
30+
<ParamField path="options" type="[]datasets.LoadOption">
3131
Options for loading data points
3232
</ParamField>
3333

api-reference/go/datasets/Get.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ icon: laptop-code
88
func (datasetClient) Get(
99
ctx context.Context,
1010
slug string,
11-
) (*Dataset, error)
11+
) (*datasets.Dataset, error)
1212
```
1313

1414
Get a dataset by its slug.

0 commit comments

Comments
 (0)