Skip to content

Commit 090fe43

Browse files
chore: go live (#15)
1 parent 8901c2e commit 090fe43

File tree

72 files changed

+588
-588
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

72 files changed

+588
-588
lines changed

CONTRIBUTING.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ To use a local version of this library from source in another project, edit the
4141
directive. This can be done through the CLI with the following:
4242

4343
```sh
44-
$ go mod edit -replace github.com/gitpod-io/flex-sdk-go=/path/to/flex-sdk-go
44+
$ go mod edit -replace github.com/gitpod-io/gitpod-sdk-go=/path/to/gitpod-sdk-go
4545
```
4646

4747
## Running tests

README.md

+7-7
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Gitpod Go API Library
22

3-
<a href="https://pkg.go.dev/github.com/gitpod-io/flex-sdk-go"><img src="https://pkg.go.dev/badge/github.com/gitpod-io/flex-sdk-go.svg" alt="Go Reference"></a>
3+
<a href="https://pkg.go.dev/github.com/gitpod-io/gitpod-sdk-go"><img src="https://pkg.go.dev/badge/github.com/gitpod-io/gitpod-sdk-go.svg" alt="Go Reference"></a>
44

55
The Gitpod Go library provides convenient access to [the Gitpod REST
66
API](https://docs.gitpod.com) from applications written in Go. The full API of this library can be found in [api.md](api.md).
@@ -13,7 +13,7 @@ It is generated with [Stainless](https://www.stainlessapi.com/).
1313

1414
```go
1515
import (
16-
"github.com/gitpod-io/flex-sdk-go" // imported as gitpod
16+
"github.com/gitpod-io/gitpod-sdk-go" // imported as gitpod
1717
)
1818
```
1919

@@ -24,7 +24,7 @@ Or to pin the version:
2424
<!-- x-release-please-start-version -->
2525

2626
```sh
27-
go get -u 'github.com/gitpod-io/flex-sdk-go@v0.1.0-alpha.1'
27+
go get -u 'github.com/gitpod-io/gitpod-sdk-go@v0.1.0-alpha.1'
2828
```
2929

3030
<!-- x-release-please-end -->
@@ -44,8 +44,8 @@ import (
4444
"context"
4545
"fmt"
4646

47-
"github.com/gitpod-io/flex-sdk-go"
48-
"github.com/gitpod-io/flex-sdk-go/option"
47+
"github.com/gitpod-io/gitpod-sdk-go"
48+
"github.com/gitpod-io/gitpod-sdk-go/option"
4949
)
5050

5151
func main() {
@@ -153,7 +153,7 @@ client.Runners.New(context.TODO(), ...,
153153
)
154154
```
155155

156-
See the [full list of request options](https://pkg.go.dev/github.com/gitpod-io/flex-sdk-go/option).
156+
See the [full list of request options](https://pkg.go.dev/github.com/gitpod-io/gitpod-sdk-go/option).
157157

158158
### Pagination
159159

@@ -384,7 +384,7 @@ This package generally follows [SemVer](https://semver.org/spec/v2.0.0.html) con
384384

385385
We take backwards-compatibility seriously and work hard to ensure you can rely on a smooth upgrade experience.
386386

387-
We are keen for your feedback; please open an [issue](https://www.github.com/gitpod-io/flex-sdk-go/issues) with questions, bugs, or suggestions.
387+
We are keen for your feedback; please open an [issue](https://www.github.com/gitpod-io/gitpod-sdk-go/issues) with questions, bugs, or suggestions.
388388

389389
## Contributing
390390

account.go

+7-7
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,13 @@ import (
88
"net/url"
99
"time"
1010

11-
"github.com/gitpod-io/flex-sdk-go/internal/apijson"
12-
"github.com/gitpod-io/flex-sdk-go/internal/apiquery"
13-
"github.com/gitpod-io/flex-sdk-go/internal/param"
14-
"github.com/gitpod-io/flex-sdk-go/internal/requestconfig"
15-
"github.com/gitpod-io/flex-sdk-go/option"
16-
"github.com/gitpod-io/flex-sdk-go/packages/pagination"
17-
"github.com/gitpod-io/flex-sdk-go/shared"
11+
"github.com/gitpod-io/gitpod-sdk-go/internal/apijson"
12+
"github.com/gitpod-io/gitpod-sdk-go/internal/apiquery"
13+
"github.com/gitpod-io/gitpod-sdk-go/internal/param"
14+
"github.com/gitpod-io/gitpod-sdk-go/internal/requestconfig"
15+
"github.com/gitpod-io/gitpod-sdk-go/option"
16+
"github.com/gitpod-io/gitpod-sdk-go/packages/pagination"
17+
"github.com/gitpod-io/gitpod-sdk-go/shared"
1818
)
1919

2020
// AccountService contains methods and other services that help with interacting

account_test.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ import (
88
"os"
99
"testing"
1010

11-
"github.com/gitpod-io/flex-sdk-go"
12-
"github.com/gitpod-io/flex-sdk-go/internal/testutil"
13-
"github.com/gitpod-io/flex-sdk-go/option"
11+
"github.com/gitpod-io/gitpod-sdk-go"
12+
"github.com/gitpod-io/gitpod-sdk-go/internal/testutil"
13+
"github.com/gitpod-io/gitpod-sdk-go/option"
1414
)
1515

1616
func TestAccountGetWithOptionalParams(t *testing.T) {

aliases.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
package gitpod
44

55
import (
6-
"github.com/gitpod-io/flex-sdk-go/internal/apierror"
7-
"github.com/gitpod-io/flex-sdk-go/shared"
6+
"github.com/gitpod-io/gitpod-sdk-go/internal/apierror"
7+
"github.com/gitpod-io/gitpod-sdk-go/shared"
88
)
99

1010
type Error = apierror.Error

api.md

+296-296
Large diffs are not rendered by default.

client.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ import (
77
"net/http"
88
"os"
99

10-
"github.com/gitpod-io/flex-sdk-go/internal/requestconfig"
11-
"github.com/gitpod-io/flex-sdk-go/option"
10+
"github.com/gitpod-io/gitpod-sdk-go/internal/requestconfig"
11+
"github.com/gitpod-io/gitpod-sdk-go/option"
1212
)
1313

1414
// Client creates a struct with services and top level methods that help with

client_test.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ import (
1010
"testing"
1111
"time"
1212

13-
"github.com/gitpod-io/flex-sdk-go"
14-
"github.com/gitpod-io/flex-sdk-go/internal"
15-
"github.com/gitpod-io/flex-sdk-go/option"
13+
"github.com/gitpod-io/gitpod-sdk-go"
14+
"github.com/gitpod-io/gitpod-sdk-go/internal"
15+
"github.com/gitpod-io/gitpod-sdk-go/option"
1616
)
1717

1818
type closureTransport struct {

editor.go

+6-6
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@ import (
77
"net/http"
88
"net/url"
99

10-
"github.com/gitpod-io/flex-sdk-go/internal/apijson"
11-
"github.com/gitpod-io/flex-sdk-go/internal/apiquery"
12-
"github.com/gitpod-io/flex-sdk-go/internal/param"
13-
"github.com/gitpod-io/flex-sdk-go/internal/requestconfig"
14-
"github.com/gitpod-io/flex-sdk-go/option"
15-
"github.com/gitpod-io/flex-sdk-go/packages/pagination"
10+
"github.com/gitpod-io/gitpod-sdk-go/internal/apijson"
11+
"github.com/gitpod-io/gitpod-sdk-go/internal/apiquery"
12+
"github.com/gitpod-io/gitpod-sdk-go/internal/param"
13+
"github.com/gitpod-io/gitpod-sdk-go/internal/requestconfig"
14+
"github.com/gitpod-io/gitpod-sdk-go/option"
15+
"github.com/gitpod-io/gitpod-sdk-go/packages/pagination"
1616
)
1717

1818
// EditorService contains methods and other services that help with interacting

editor_test.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ import (
88
"os"
99
"testing"
1010

11-
"github.com/gitpod-io/flex-sdk-go"
12-
"github.com/gitpod-io/flex-sdk-go/internal/testutil"
13-
"github.com/gitpod-io/flex-sdk-go/option"
11+
"github.com/gitpod-io/gitpod-sdk-go"
12+
"github.com/gitpod-io/gitpod-sdk-go/internal/testutil"
13+
"github.com/gitpod-io/gitpod-sdk-go/option"
1414
)
1515

1616
func TestEditorGetWithOptionalParams(t *testing.T) {

environment.go

+7-7
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,13 @@ import (
88
"net/url"
99
"time"
1010

11-
"github.com/gitpod-io/flex-sdk-go/internal/apijson"
12-
"github.com/gitpod-io/flex-sdk-go/internal/apiquery"
13-
"github.com/gitpod-io/flex-sdk-go/internal/param"
14-
"github.com/gitpod-io/flex-sdk-go/internal/requestconfig"
15-
"github.com/gitpod-io/flex-sdk-go/option"
16-
"github.com/gitpod-io/flex-sdk-go/packages/pagination"
17-
"github.com/gitpod-io/flex-sdk-go/shared"
11+
"github.com/gitpod-io/gitpod-sdk-go/internal/apijson"
12+
"github.com/gitpod-io/gitpod-sdk-go/internal/apiquery"
13+
"github.com/gitpod-io/gitpod-sdk-go/internal/param"
14+
"github.com/gitpod-io/gitpod-sdk-go/internal/requestconfig"
15+
"github.com/gitpod-io/gitpod-sdk-go/option"
16+
"github.com/gitpod-io/gitpod-sdk-go/packages/pagination"
17+
"github.com/gitpod-io/gitpod-sdk-go/shared"
1818
)
1919

2020
// EnvironmentService contains methods and other services that help with

environment_test.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ import (
99
"testing"
1010
"time"
1111

12-
"github.com/gitpod-io/flex-sdk-go"
13-
"github.com/gitpod-io/flex-sdk-go/internal/testutil"
14-
"github.com/gitpod-io/flex-sdk-go/option"
12+
"github.com/gitpod-io/gitpod-sdk-go"
13+
"github.com/gitpod-io/gitpod-sdk-go/internal/testutil"
14+
"github.com/gitpod-io/gitpod-sdk-go/option"
1515
)
1616

1717
func TestEnvironmentNewWithOptionalParams(t *testing.T) {

environmentautomation.go

+5-5
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@ import (
66
"context"
77
"net/http"
88

9-
"github.com/gitpod-io/flex-sdk-go/internal/apijson"
10-
"github.com/gitpod-io/flex-sdk-go/internal/param"
11-
"github.com/gitpod-io/flex-sdk-go/internal/requestconfig"
12-
"github.com/gitpod-io/flex-sdk-go/option"
13-
"github.com/gitpod-io/flex-sdk-go/shared"
9+
"github.com/gitpod-io/gitpod-sdk-go/internal/apijson"
10+
"github.com/gitpod-io/gitpod-sdk-go/internal/param"
11+
"github.com/gitpod-io/gitpod-sdk-go/internal/requestconfig"
12+
"github.com/gitpod-io/gitpod-sdk-go/option"
13+
"github.com/gitpod-io/gitpod-sdk-go/shared"
1414
)
1515

1616
// EnvironmentAutomationService contains methods and other services that help with

environmentautomation_test.go

+4-4
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@ import (
88
"os"
99
"testing"
1010

11-
"github.com/gitpod-io/flex-sdk-go"
12-
"github.com/gitpod-io/flex-sdk-go/internal/testutil"
13-
"github.com/gitpod-io/flex-sdk-go/option"
14-
"github.com/gitpod-io/flex-sdk-go/shared"
11+
"github.com/gitpod-io/gitpod-sdk-go"
12+
"github.com/gitpod-io/gitpod-sdk-go/internal/testutil"
13+
"github.com/gitpod-io/gitpod-sdk-go/option"
14+
"github.com/gitpod-io/gitpod-sdk-go/shared"
1515
)
1616

1717
func TestEnvironmentAutomationUpsertWithOptionalParams(t *testing.T) {

environmentautomationservice.go

+7-7
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,13 @@ import (
88
"net/url"
99
"time"
1010

11-
"github.com/gitpod-io/flex-sdk-go/internal/apijson"
12-
"github.com/gitpod-io/flex-sdk-go/internal/apiquery"
13-
"github.com/gitpod-io/flex-sdk-go/internal/param"
14-
"github.com/gitpod-io/flex-sdk-go/internal/requestconfig"
15-
"github.com/gitpod-io/flex-sdk-go/option"
16-
"github.com/gitpod-io/flex-sdk-go/packages/pagination"
17-
"github.com/gitpod-io/flex-sdk-go/shared"
11+
"github.com/gitpod-io/gitpod-sdk-go/internal/apijson"
12+
"github.com/gitpod-io/gitpod-sdk-go/internal/apiquery"
13+
"github.com/gitpod-io/gitpod-sdk-go/internal/param"
14+
"github.com/gitpod-io/gitpod-sdk-go/internal/requestconfig"
15+
"github.com/gitpod-io/gitpod-sdk-go/option"
16+
"github.com/gitpod-io/gitpod-sdk-go/packages/pagination"
17+
"github.com/gitpod-io/gitpod-sdk-go/shared"
1818
)
1919

2020
// EnvironmentAutomationServiceService contains methods and other services that

environmentautomationservice_test.go

+4-4
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@ import (
99
"testing"
1010
"time"
1111

12-
"github.com/gitpod-io/flex-sdk-go"
13-
"github.com/gitpod-io/flex-sdk-go/internal/testutil"
14-
"github.com/gitpod-io/flex-sdk-go/option"
15-
"github.com/gitpod-io/flex-sdk-go/shared"
12+
"github.com/gitpod-io/gitpod-sdk-go"
13+
"github.com/gitpod-io/gitpod-sdk-go/internal/testutil"
14+
"github.com/gitpod-io/gitpod-sdk-go/option"
15+
"github.com/gitpod-io/gitpod-sdk-go/shared"
1616
)
1717

1818
func TestEnvironmentAutomationServiceNewWithOptionalParams(t *testing.T) {

environmentautomationtask.go

+7-7
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,13 @@ import (
88
"net/url"
99
"time"
1010

11-
"github.com/gitpod-io/flex-sdk-go/internal/apijson"
12-
"github.com/gitpod-io/flex-sdk-go/internal/apiquery"
13-
"github.com/gitpod-io/flex-sdk-go/internal/param"
14-
"github.com/gitpod-io/flex-sdk-go/internal/requestconfig"
15-
"github.com/gitpod-io/flex-sdk-go/option"
16-
"github.com/gitpod-io/flex-sdk-go/packages/pagination"
17-
"github.com/gitpod-io/flex-sdk-go/shared"
11+
"github.com/gitpod-io/gitpod-sdk-go/internal/apijson"
12+
"github.com/gitpod-io/gitpod-sdk-go/internal/apiquery"
13+
"github.com/gitpod-io/gitpod-sdk-go/internal/param"
14+
"github.com/gitpod-io/gitpod-sdk-go/internal/requestconfig"
15+
"github.com/gitpod-io/gitpod-sdk-go/option"
16+
"github.com/gitpod-io/gitpod-sdk-go/packages/pagination"
17+
"github.com/gitpod-io/gitpod-sdk-go/shared"
1818
)
1919

2020
// EnvironmentAutomationTaskService contains methods and other services that help

environmentautomationtask_test.go

+4-4
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@ import (
99
"testing"
1010
"time"
1111

12-
"github.com/gitpod-io/flex-sdk-go"
13-
"github.com/gitpod-io/flex-sdk-go/internal/testutil"
14-
"github.com/gitpod-io/flex-sdk-go/option"
15-
"github.com/gitpod-io/flex-sdk-go/shared"
12+
"github.com/gitpod-io/gitpod-sdk-go"
13+
"github.com/gitpod-io/gitpod-sdk-go/internal/testutil"
14+
"github.com/gitpod-io/gitpod-sdk-go/option"
15+
"github.com/gitpod-io/gitpod-sdk-go/shared"
1616
)
1717

1818
func TestEnvironmentAutomationTaskNewWithOptionalParams(t *testing.T) {

environmentautomationtaskexecution.go

+7-7
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,13 @@ import (
77
"net/http"
88
"net/url"
99

10-
"github.com/gitpod-io/flex-sdk-go/internal/apijson"
11-
"github.com/gitpod-io/flex-sdk-go/internal/apiquery"
12-
"github.com/gitpod-io/flex-sdk-go/internal/param"
13-
"github.com/gitpod-io/flex-sdk-go/internal/requestconfig"
14-
"github.com/gitpod-io/flex-sdk-go/option"
15-
"github.com/gitpod-io/flex-sdk-go/packages/pagination"
16-
"github.com/gitpod-io/flex-sdk-go/shared"
10+
"github.com/gitpod-io/gitpod-sdk-go/internal/apijson"
11+
"github.com/gitpod-io/gitpod-sdk-go/internal/apiquery"
12+
"github.com/gitpod-io/gitpod-sdk-go/internal/param"
13+
"github.com/gitpod-io/gitpod-sdk-go/internal/requestconfig"
14+
"github.com/gitpod-io/gitpod-sdk-go/option"
15+
"github.com/gitpod-io/gitpod-sdk-go/packages/pagination"
16+
"github.com/gitpod-io/gitpod-sdk-go/shared"
1717
)
1818

1919
// EnvironmentAutomationTaskExecutionService contains methods and other services

environmentautomationtaskexecution_test.go

+4-4
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@ import (
88
"os"
99
"testing"
1010

11-
"github.com/gitpod-io/flex-sdk-go"
12-
"github.com/gitpod-io/flex-sdk-go/internal/testutil"
13-
"github.com/gitpod-io/flex-sdk-go/option"
14-
"github.com/gitpod-io/flex-sdk-go/shared"
11+
"github.com/gitpod-io/gitpod-sdk-go"
12+
"github.com/gitpod-io/gitpod-sdk-go/internal/testutil"
13+
"github.com/gitpod-io/gitpod-sdk-go/option"
14+
"github.com/gitpod-io/gitpod-sdk-go/shared"
1515
)
1616

1717
func TestEnvironmentAutomationTaskExecutionGetWithOptionalParams(t *testing.T) {

environmentclass.go

+7-7
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,13 @@ import (
77
"net/http"
88
"net/url"
99

10-
"github.com/gitpod-io/flex-sdk-go/internal/apijson"
11-
"github.com/gitpod-io/flex-sdk-go/internal/apiquery"
12-
"github.com/gitpod-io/flex-sdk-go/internal/param"
13-
"github.com/gitpod-io/flex-sdk-go/internal/requestconfig"
14-
"github.com/gitpod-io/flex-sdk-go/option"
15-
"github.com/gitpod-io/flex-sdk-go/packages/pagination"
16-
"github.com/gitpod-io/flex-sdk-go/shared"
10+
"github.com/gitpod-io/gitpod-sdk-go/internal/apijson"
11+
"github.com/gitpod-io/gitpod-sdk-go/internal/apiquery"
12+
"github.com/gitpod-io/gitpod-sdk-go/internal/param"
13+
"github.com/gitpod-io/gitpod-sdk-go/internal/requestconfig"
14+
"github.com/gitpod-io/gitpod-sdk-go/option"
15+
"github.com/gitpod-io/gitpod-sdk-go/packages/pagination"
16+
"github.com/gitpod-io/gitpod-sdk-go/shared"
1717
)
1818

1919
// EnvironmentClassService contains methods and other services that help with

environmentclass_test.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ import (
88
"os"
99
"testing"
1010

11-
"github.com/gitpod-io/flex-sdk-go"
12-
"github.com/gitpod-io/flex-sdk-go/internal/testutil"
13-
"github.com/gitpod-io/flex-sdk-go/option"
11+
"github.com/gitpod-io/gitpod-sdk-go"
12+
"github.com/gitpod-io/gitpod-sdk-go/internal/testutil"
13+
"github.com/gitpod-io/gitpod-sdk-go/option"
1414
)
1515

1616
func TestEnvironmentClassListWithOptionalParams(t *testing.T) {

event.go

+8-8
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,14 @@ import (
88
"net/url"
99
"time"
1010

11-
"github.com/gitpod-io/flex-sdk-go/internal/apijson"
12-
"github.com/gitpod-io/flex-sdk-go/internal/apiquery"
13-
"github.com/gitpod-io/flex-sdk-go/internal/param"
14-
"github.com/gitpod-io/flex-sdk-go/internal/requestconfig"
15-
"github.com/gitpod-io/flex-sdk-go/option"
16-
"github.com/gitpod-io/flex-sdk-go/packages/jsonl"
17-
"github.com/gitpod-io/flex-sdk-go/packages/pagination"
18-
"github.com/gitpod-io/flex-sdk-go/shared"
11+
"github.com/gitpod-io/gitpod-sdk-go/internal/apijson"
12+
"github.com/gitpod-io/gitpod-sdk-go/internal/apiquery"
13+
"github.com/gitpod-io/gitpod-sdk-go/internal/param"
14+
"github.com/gitpod-io/gitpod-sdk-go/internal/requestconfig"
15+
"github.com/gitpod-io/gitpod-sdk-go/option"
16+
"github.com/gitpod-io/gitpod-sdk-go/packages/jsonl"
17+
"github.com/gitpod-io/gitpod-sdk-go/packages/pagination"
18+
"github.com/gitpod-io/gitpod-sdk-go/shared"
1919
)
2020

2121
// EventService contains methods and other services that help with interacting with

0 commit comments

Comments
 (0)