Skip to content

chore: go live #15

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 11, 2025
Merged
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
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ To use a local version of this library from source in another project, edit the
directive. This can be done through the CLI with the following:

```sh
$ go mod edit -replace github.com/gitpod-io/flex-sdk-go=/path/to/flex-sdk-go
$ go mod edit -replace github.com/gitpod-io/gitpod-sdk-go=/path/to/gitpod-sdk-go
```

## Running tests
Expand Down
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Gitpod Go API Library

<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>
<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>

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

```go
import (
"github.com/gitpod-io/flex-sdk-go" // imported as gitpod
"github.com/gitpod-io/gitpod-sdk-go" // imported as gitpod
)
```

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

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

<!-- x-release-please-end -->
Expand All @@ -44,8 +44,8 @@ import (
"context"
"fmt"

"github.com/gitpod-io/flex-sdk-go"
"github.com/gitpod-io/flex-sdk-go/option"
"github.com/gitpod-io/gitpod-sdk-go"
"github.com/gitpod-io/gitpod-sdk-go/option"
)

func main() {
Expand Down Expand Up @@ -153,7 +153,7 @@ client.Runners.New(context.TODO(), ...,
)
```

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

### Pagination

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

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

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.
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.

## Contributing

Expand Down
14 changes: 7 additions & 7 deletions account.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@ import (
"net/url"
"time"

"github.com/gitpod-io/flex-sdk-go/internal/apijson"
"github.com/gitpod-io/flex-sdk-go/internal/apiquery"
"github.com/gitpod-io/flex-sdk-go/internal/param"
"github.com/gitpod-io/flex-sdk-go/internal/requestconfig"
"github.com/gitpod-io/flex-sdk-go/option"
"github.com/gitpod-io/flex-sdk-go/packages/pagination"
"github.com/gitpod-io/flex-sdk-go/shared"
"github.com/gitpod-io/gitpod-sdk-go/internal/apijson"
"github.com/gitpod-io/gitpod-sdk-go/internal/apiquery"
"github.com/gitpod-io/gitpod-sdk-go/internal/param"
"github.com/gitpod-io/gitpod-sdk-go/internal/requestconfig"
"github.com/gitpod-io/gitpod-sdk-go/option"
"github.com/gitpod-io/gitpod-sdk-go/packages/pagination"
"github.com/gitpod-io/gitpod-sdk-go/shared"
)

// AccountService contains methods and other services that help with interacting
Expand Down
6 changes: 3 additions & 3 deletions account_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ import (
"os"
"testing"

"github.com/gitpod-io/flex-sdk-go"
"github.com/gitpod-io/flex-sdk-go/internal/testutil"
"github.com/gitpod-io/flex-sdk-go/option"
"github.com/gitpod-io/gitpod-sdk-go"
"github.com/gitpod-io/gitpod-sdk-go/internal/testutil"
"github.com/gitpod-io/gitpod-sdk-go/option"
)

func TestAccountGetWithOptionalParams(t *testing.T) {
Expand Down
4 changes: 2 additions & 2 deletions aliases.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
package gitpod

import (
"github.com/gitpod-io/flex-sdk-go/internal/apierror"
"github.com/gitpod-io/flex-sdk-go/shared"
"github.com/gitpod-io/gitpod-sdk-go/internal/apierror"
"github.com/gitpod-io/gitpod-sdk-go/shared"
)

type Error = apierror.Error
Expand Down
592 changes: 296 additions & 296 deletions api.md

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions client.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import (
"net/http"
"os"

"github.com/gitpod-io/flex-sdk-go/internal/requestconfig"
"github.com/gitpod-io/flex-sdk-go/option"
"github.com/gitpod-io/gitpod-sdk-go/internal/requestconfig"
"github.com/gitpod-io/gitpod-sdk-go/option"
)

// Client creates a struct with services and top level methods that help with
Expand Down
6 changes: 3 additions & 3 deletions client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ import (
"testing"
"time"

"github.com/gitpod-io/flex-sdk-go"
"github.com/gitpod-io/flex-sdk-go/internal"
"github.com/gitpod-io/flex-sdk-go/option"
"github.com/gitpod-io/gitpod-sdk-go"
"github.com/gitpod-io/gitpod-sdk-go/internal"
"github.com/gitpod-io/gitpod-sdk-go/option"
)

type closureTransport struct {
Expand Down
12 changes: 6 additions & 6 deletions editor.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@ import (
"net/http"
"net/url"

"github.com/gitpod-io/flex-sdk-go/internal/apijson"
"github.com/gitpod-io/flex-sdk-go/internal/apiquery"
"github.com/gitpod-io/flex-sdk-go/internal/param"
"github.com/gitpod-io/flex-sdk-go/internal/requestconfig"
"github.com/gitpod-io/flex-sdk-go/option"
"github.com/gitpod-io/flex-sdk-go/packages/pagination"
"github.com/gitpod-io/gitpod-sdk-go/internal/apijson"
"github.com/gitpod-io/gitpod-sdk-go/internal/apiquery"
"github.com/gitpod-io/gitpod-sdk-go/internal/param"
"github.com/gitpod-io/gitpod-sdk-go/internal/requestconfig"
"github.com/gitpod-io/gitpod-sdk-go/option"
"github.com/gitpod-io/gitpod-sdk-go/packages/pagination"
)

// EditorService contains methods and other services that help with interacting
Expand Down
6 changes: 3 additions & 3 deletions editor_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ import (
"os"
"testing"

"github.com/gitpod-io/flex-sdk-go"
"github.com/gitpod-io/flex-sdk-go/internal/testutil"
"github.com/gitpod-io/flex-sdk-go/option"
"github.com/gitpod-io/gitpod-sdk-go"
"github.com/gitpod-io/gitpod-sdk-go/internal/testutil"
"github.com/gitpod-io/gitpod-sdk-go/option"
)

func TestEditorGetWithOptionalParams(t *testing.T) {
Expand Down
14 changes: 7 additions & 7 deletions environment.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@ import (
"net/url"
"time"

"github.com/gitpod-io/flex-sdk-go/internal/apijson"
"github.com/gitpod-io/flex-sdk-go/internal/apiquery"
"github.com/gitpod-io/flex-sdk-go/internal/param"
"github.com/gitpod-io/flex-sdk-go/internal/requestconfig"
"github.com/gitpod-io/flex-sdk-go/option"
"github.com/gitpod-io/flex-sdk-go/packages/pagination"
"github.com/gitpod-io/flex-sdk-go/shared"
"github.com/gitpod-io/gitpod-sdk-go/internal/apijson"
"github.com/gitpod-io/gitpod-sdk-go/internal/apiquery"
"github.com/gitpod-io/gitpod-sdk-go/internal/param"
"github.com/gitpod-io/gitpod-sdk-go/internal/requestconfig"
"github.com/gitpod-io/gitpod-sdk-go/option"
"github.com/gitpod-io/gitpod-sdk-go/packages/pagination"
"github.com/gitpod-io/gitpod-sdk-go/shared"
)

// EnvironmentService contains methods and other services that help with
Expand Down
6 changes: 3 additions & 3 deletions environment_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ import (
"testing"
"time"

"github.com/gitpod-io/flex-sdk-go"
"github.com/gitpod-io/flex-sdk-go/internal/testutil"
"github.com/gitpod-io/flex-sdk-go/option"
"github.com/gitpod-io/gitpod-sdk-go"
"github.com/gitpod-io/gitpod-sdk-go/internal/testutil"
"github.com/gitpod-io/gitpod-sdk-go/option"
)

func TestEnvironmentNewWithOptionalParams(t *testing.T) {
Expand Down
10 changes: 5 additions & 5 deletions environmentautomation.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ import (
"context"
"net/http"

"github.com/gitpod-io/flex-sdk-go/internal/apijson"
"github.com/gitpod-io/flex-sdk-go/internal/param"
"github.com/gitpod-io/flex-sdk-go/internal/requestconfig"
"github.com/gitpod-io/flex-sdk-go/option"
"github.com/gitpod-io/flex-sdk-go/shared"
"github.com/gitpod-io/gitpod-sdk-go/internal/apijson"
"github.com/gitpod-io/gitpod-sdk-go/internal/param"
"github.com/gitpod-io/gitpod-sdk-go/internal/requestconfig"
"github.com/gitpod-io/gitpod-sdk-go/option"
"github.com/gitpod-io/gitpod-sdk-go/shared"
)

// EnvironmentAutomationService contains methods and other services that help with
Expand Down
8 changes: 4 additions & 4 deletions environmentautomation_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ import (
"os"
"testing"

"github.com/gitpod-io/flex-sdk-go"
"github.com/gitpod-io/flex-sdk-go/internal/testutil"
"github.com/gitpod-io/flex-sdk-go/option"
"github.com/gitpod-io/flex-sdk-go/shared"
"github.com/gitpod-io/gitpod-sdk-go"
"github.com/gitpod-io/gitpod-sdk-go/internal/testutil"
"github.com/gitpod-io/gitpod-sdk-go/option"
"github.com/gitpod-io/gitpod-sdk-go/shared"
)

func TestEnvironmentAutomationUpsertWithOptionalParams(t *testing.T) {
Expand Down
14 changes: 7 additions & 7 deletions environmentautomationservice.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@ import (
"net/url"
"time"

"github.com/gitpod-io/flex-sdk-go/internal/apijson"
"github.com/gitpod-io/flex-sdk-go/internal/apiquery"
"github.com/gitpod-io/flex-sdk-go/internal/param"
"github.com/gitpod-io/flex-sdk-go/internal/requestconfig"
"github.com/gitpod-io/flex-sdk-go/option"
"github.com/gitpod-io/flex-sdk-go/packages/pagination"
"github.com/gitpod-io/flex-sdk-go/shared"
"github.com/gitpod-io/gitpod-sdk-go/internal/apijson"
"github.com/gitpod-io/gitpod-sdk-go/internal/apiquery"
"github.com/gitpod-io/gitpod-sdk-go/internal/param"
"github.com/gitpod-io/gitpod-sdk-go/internal/requestconfig"
"github.com/gitpod-io/gitpod-sdk-go/option"
"github.com/gitpod-io/gitpod-sdk-go/packages/pagination"
"github.com/gitpod-io/gitpod-sdk-go/shared"
)

// EnvironmentAutomationServiceService contains methods and other services that
Expand Down
8 changes: 4 additions & 4 deletions environmentautomationservice_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ import (
"testing"
"time"

"github.com/gitpod-io/flex-sdk-go"
"github.com/gitpod-io/flex-sdk-go/internal/testutil"
"github.com/gitpod-io/flex-sdk-go/option"
"github.com/gitpod-io/flex-sdk-go/shared"
"github.com/gitpod-io/gitpod-sdk-go"
"github.com/gitpod-io/gitpod-sdk-go/internal/testutil"
"github.com/gitpod-io/gitpod-sdk-go/option"
"github.com/gitpod-io/gitpod-sdk-go/shared"
)

func TestEnvironmentAutomationServiceNewWithOptionalParams(t *testing.T) {
Expand Down
14 changes: 7 additions & 7 deletions environmentautomationtask.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@ import (
"net/url"
"time"

"github.com/gitpod-io/flex-sdk-go/internal/apijson"
"github.com/gitpod-io/flex-sdk-go/internal/apiquery"
"github.com/gitpod-io/flex-sdk-go/internal/param"
"github.com/gitpod-io/flex-sdk-go/internal/requestconfig"
"github.com/gitpod-io/flex-sdk-go/option"
"github.com/gitpod-io/flex-sdk-go/packages/pagination"
"github.com/gitpod-io/flex-sdk-go/shared"
"github.com/gitpod-io/gitpod-sdk-go/internal/apijson"
"github.com/gitpod-io/gitpod-sdk-go/internal/apiquery"
"github.com/gitpod-io/gitpod-sdk-go/internal/param"
"github.com/gitpod-io/gitpod-sdk-go/internal/requestconfig"
"github.com/gitpod-io/gitpod-sdk-go/option"
"github.com/gitpod-io/gitpod-sdk-go/packages/pagination"
"github.com/gitpod-io/gitpod-sdk-go/shared"
)

// EnvironmentAutomationTaskService contains methods and other services that help
Expand Down
8 changes: 4 additions & 4 deletions environmentautomationtask_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ import (
"testing"
"time"

"github.com/gitpod-io/flex-sdk-go"
"github.com/gitpod-io/flex-sdk-go/internal/testutil"
"github.com/gitpod-io/flex-sdk-go/option"
"github.com/gitpod-io/flex-sdk-go/shared"
"github.com/gitpod-io/gitpod-sdk-go"
"github.com/gitpod-io/gitpod-sdk-go/internal/testutil"
"github.com/gitpod-io/gitpod-sdk-go/option"
"github.com/gitpod-io/gitpod-sdk-go/shared"
)

func TestEnvironmentAutomationTaskNewWithOptionalParams(t *testing.T) {
Expand Down
14 changes: 7 additions & 7 deletions environmentautomationtaskexecution.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@ import (
"net/http"
"net/url"

"github.com/gitpod-io/flex-sdk-go/internal/apijson"
"github.com/gitpod-io/flex-sdk-go/internal/apiquery"
"github.com/gitpod-io/flex-sdk-go/internal/param"
"github.com/gitpod-io/flex-sdk-go/internal/requestconfig"
"github.com/gitpod-io/flex-sdk-go/option"
"github.com/gitpod-io/flex-sdk-go/packages/pagination"
"github.com/gitpod-io/flex-sdk-go/shared"
"github.com/gitpod-io/gitpod-sdk-go/internal/apijson"
"github.com/gitpod-io/gitpod-sdk-go/internal/apiquery"
"github.com/gitpod-io/gitpod-sdk-go/internal/param"
"github.com/gitpod-io/gitpod-sdk-go/internal/requestconfig"
"github.com/gitpod-io/gitpod-sdk-go/option"
"github.com/gitpod-io/gitpod-sdk-go/packages/pagination"
"github.com/gitpod-io/gitpod-sdk-go/shared"
)

// EnvironmentAutomationTaskExecutionService contains methods and other services
Expand Down
8 changes: 4 additions & 4 deletions environmentautomationtaskexecution_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ import (
"os"
"testing"

"github.com/gitpod-io/flex-sdk-go"
"github.com/gitpod-io/flex-sdk-go/internal/testutil"
"github.com/gitpod-io/flex-sdk-go/option"
"github.com/gitpod-io/flex-sdk-go/shared"
"github.com/gitpod-io/gitpod-sdk-go"
"github.com/gitpod-io/gitpod-sdk-go/internal/testutil"
"github.com/gitpod-io/gitpod-sdk-go/option"
"github.com/gitpod-io/gitpod-sdk-go/shared"
)

func TestEnvironmentAutomationTaskExecutionGetWithOptionalParams(t *testing.T) {
Expand Down
14 changes: 7 additions & 7 deletions environmentclass.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@ import (
"net/http"
"net/url"

"github.com/gitpod-io/flex-sdk-go/internal/apijson"
"github.com/gitpod-io/flex-sdk-go/internal/apiquery"
"github.com/gitpod-io/flex-sdk-go/internal/param"
"github.com/gitpod-io/flex-sdk-go/internal/requestconfig"
"github.com/gitpod-io/flex-sdk-go/option"
"github.com/gitpod-io/flex-sdk-go/packages/pagination"
"github.com/gitpod-io/flex-sdk-go/shared"
"github.com/gitpod-io/gitpod-sdk-go/internal/apijson"
"github.com/gitpod-io/gitpod-sdk-go/internal/apiquery"
"github.com/gitpod-io/gitpod-sdk-go/internal/param"
"github.com/gitpod-io/gitpod-sdk-go/internal/requestconfig"
"github.com/gitpod-io/gitpod-sdk-go/option"
"github.com/gitpod-io/gitpod-sdk-go/packages/pagination"
"github.com/gitpod-io/gitpod-sdk-go/shared"
)

// EnvironmentClassService contains methods and other services that help with
Expand Down
6 changes: 3 additions & 3 deletions environmentclass_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ import (
"os"
"testing"

"github.com/gitpod-io/flex-sdk-go"
"github.com/gitpod-io/flex-sdk-go/internal/testutil"
"github.com/gitpod-io/flex-sdk-go/option"
"github.com/gitpod-io/gitpod-sdk-go"
"github.com/gitpod-io/gitpod-sdk-go/internal/testutil"
"github.com/gitpod-io/gitpod-sdk-go/option"
)

func TestEnvironmentClassListWithOptionalParams(t *testing.T) {
Expand Down
16 changes: 8 additions & 8 deletions event.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,14 @@ import (
"net/url"
"time"

"github.com/gitpod-io/flex-sdk-go/internal/apijson"
"github.com/gitpod-io/flex-sdk-go/internal/apiquery"
"github.com/gitpod-io/flex-sdk-go/internal/param"
"github.com/gitpod-io/flex-sdk-go/internal/requestconfig"
"github.com/gitpod-io/flex-sdk-go/option"
"github.com/gitpod-io/flex-sdk-go/packages/jsonl"
"github.com/gitpod-io/flex-sdk-go/packages/pagination"
"github.com/gitpod-io/flex-sdk-go/shared"
"github.com/gitpod-io/gitpod-sdk-go/internal/apijson"
"github.com/gitpod-io/gitpod-sdk-go/internal/apiquery"
"github.com/gitpod-io/gitpod-sdk-go/internal/param"
"github.com/gitpod-io/gitpod-sdk-go/internal/requestconfig"
"github.com/gitpod-io/gitpod-sdk-go/option"
"github.com/gitpod-io/gitpod-sdk-go/packages/jsonl"
"github.com/gitpod-io/gitpod-sdk-go/packages/pagination"
"github.com/gitpod-io/gitpod-sdk-go/shared"
)

// EventService contains methods and other services that help with interacting with
Expand Down
Loading