Skip to content

Commit 70c7823

Browse files
authored
breaking(module): migrate from tdabasinskas to datolabs-io (#69)
- Migrates repository from the personal space to an organization. - Will be released as `v3`. - Files moved to the root of repository, so `/backstage` suffix is no longer required in the `imports`.
2 parents b35593e + 7cee082 commit 70c7823

Some content is hidden

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

52 files changed

+87
-37
lines changed

.cspell/custom-dictionary.txt

Lines changed: 20 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.gitattributes

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
* text=auto eol=lf
22

3-
go.sum linguist-generated=true
4-
backstage/testdata/ linguist-generated=true
3+
go.sum linguist-generated=true
4+
testdata/* linguist-generated=true
5+
.cspell/custom-dictionary.txt linguist-generated=true

CODEOWNERS

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
* @tdabasinskas
1+
* @datolabs-io/go-backstage-maintainers

README.md

Lines changed: 7 additions & 6 deletions
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

cspell.json

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
"version": "0.2",
3+
"ignorePaths": [],
4+
"dictionaryDefinitions": [
5+
{
6+
"name": "custom-dictionary",
7+
"path": "./.cspell/custom-dictionary.txt",
8+
"addWords": true
9+
}
10+
],
11+
"dictionaries": [
12+
"custom-dictionary"
13+
],
14+
"words": [],
15+
"ignoreWords": [],
16+
"import": []
17+
}

backstage/doc.go renamed to doc.go

Lines changed: 18 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,25 +5,35 @@ Package backstage provides a client for the Backstage API.
55
66
Add the package to your project as following:
77
8-
import "github.com/tdabasinskas/go-backstage"
8+
```go
9+
import "github.com/datolabs-io/go-backstage/v3"
10+
```
911
1012
Once imported, create a new Backstage API client to access different parts of Backstage API:
1113
12-
client, err := backstage.NewClient(baseURL, "default", nil)
14+
```go
15+
client, err := backstage.NewClient(baseURL, "default", nil)
16+
```
1317
1418
If you want to use a custom HTTP client (for example, to handle authentication, retries or different timeouts), you can pass it as the
1519
third argument:
1620
17-
httpClient := &http.Client{}
18-
client, err := backstage.NewClient(baseURL, "default", httpClient)
21+
```go
22+
httpClient := &http.Client{}
23+
client, err := backstage.NewClient(baseURL, "default", httpClient)
24+
```
1925
2026
The client than can be used to access different parts of the API, e.g. get the list of entities, sorted in specific order:
2127
28+
```go
29+
2230
entities, response, err := c.Catalog.Entities.s.List(context.Background(), &ListEntityOptions{
23-
Filters: ListEntityFilter{},
24-
Fields: []string{},
25-
Order: []ListEntityOrder{{ Direction: OrderDescending, Field: "metadata.name" },
26-
},
31+
Filters: []string{},
32+
Fields: []string{},
33+
Order: []ListEntityOrder{{ Direction: OrderDescending, Field: "metadata.name" },
34+
},
2735
})
36+
37+
```
2838
*/
2939
package backstage

0 commit comments

Comments
 (0)