Skip to content

Commit

Permalink
Rename module
Browse files Browse the repository at this point in the history
  • Loading branch information
peresureda committed Aug 8, 2023
1 parent dc3c039 commit 9a0cfee
Show file tree
Hide file tree
Showing 437 changed files with 789 additions and 789 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/codeclimate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:

- name: Hack Code Climate and Go Modules
if: github.event_name != 'pull_request'
run: mkdir -p github.com/mittwald && ln -sf $(pwd) github.com/mittwald/goharbor-client
run: mkdir -p github.com/peresureda && ln -sf $(pwd) github.com/peresureda/goharbor-client

- name: Test & publish code coverage
if: github.event_name != 'pull_request'
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/godoc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Test successful curl against module mirror
run : test $(curl -s -o /dev/null -w "%{http_code}" ${GOPROXY}/github.com/mittwald/goharbor-client/v5/@v/${GITHUB_REF/refs\/tags\//}.info) -eq 200
run : test $(curl -s -o /dev/null -w "%{http_code}" ${GOPROXY}/github.com/peresureda/goharbor-client/v5/@v/${GITHUB_REF/refs\/tags\//}.info) -eq 200
14 changes: 7 additions & 7 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -114,11 +114,11 @@ import (

"k8s.io/apimachinery/pkg/util/intstr"

v2client "github.com/mittwald/goharbor-client/v5/apiv2/internal/api/client"
"github.com/mittwald/goharbor-client/v5/apiv2/internal/api/client/user"
modelv2 "github.com/mittwald/goharbor-client/v5/apiv2/model"
"github.com/mittwald/goharbor-client/v5/apiv2/pkg/config"
clienterrors "github.com/mittwald/goharbor-client/v5/apiv2/pkg/errors"
v2client "github.com/peresureda/goharbor-client/v5/apiv2/internal/api/client"
"github.com/peresureda/goharbor-client/v5/apiv2/internal/api/client/user"
modelv2 "github.com/peresureda/goharbor-client/v5/apiv2/model"
"github.com/peresureda/goharbor-client/v5/apiv2/pkg/config"
clienterrors "github.com/peresureda/goharbor-client/v5/apiv2/pkg/errors"

"github.com/go-openapi/runtime"
)
Expand Down Expand Up @@ -149,7 +149,7 @@ func NewClient(v2Client *v2client.Harbor, opts *config.Options, authInfo runtime
}
```

The package also contains a [`Client` interface](https://github.com/mittwald/goharbor-client/blob/master/apiv2/user/user.go#L36) that holds all method signatures:
The package also contains a [`Client` interface](https://github.com/peresureda/goharbor-client/blob/master/apiv2/user/user.go#L36) that holds all method signatures:
```go
type Client interface {
[...]
Expand Down Expand Up @@ -194,7 +194,7 @@ type Client interface {

---

To make the sub-client's methods accessible via the `github.com/mittwald/goharbor-client/apiv2` package,
To make the sub-client's methods accessible via the `github.com/peresureda/goharbor-client/apiv2` package,
the above implementation has to be wrapped together in [apiv2/client.go](./apiv2/client.go):

```go
Expand Down
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ uninstall-harbor-v1:
test:
go test -v ./... -tags !integration

INTEGRATION_V1 = CGO_ENABLED=0 go test -p 1 -count 1 -v github.com/mittwald/goharbor-client/v5/apiv1/... -tags integration
INTEGRATION_V2 = CGO_ENABLED=0 go test -p 1 -count 1 -v github.com/mittwald/goharbor-client/v5/apiv2/... -tags integration
INTEGRATION_V1 = CGO_ENABLED=0 go test -p 1 -count 1 -v github.com/peresureda/goharbor-client/v5/apiv1/... -tags integration
INTEGRATION_V2 = CGO_ENABLED=0 go test -p 1 -count 1 -v github.com/peresureda/goharbor-client/v5/apiv2/... -tags integration

# Integration testing (CI Jobs)
integration-test-v1-ci: setup-harbor-v1 integration-test-v1
Expand Down
22 changes: 11 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
# goharbor-client
[![GitHub license](https://img.shields.io/github/license/mittwald/goharbor-client.svg?style=flat-square)](https://github.com/mittwald/goharbor-client/blob/master/LICENSE)
[![Go Report Card](https://goreportcard.com/badge/github.com/mittwald/goharbor-client?style=flat-square)](https://goreportcard.com/badge/github.com/mittwald/goharbor-client)
[![Go Doc](https://img.shields.io/badge/godoc-reference-blue.svg?style=flat-square)](https://pkg.go.dev/github.com/mittwald/goharbor-client/v5)
[![Release](https://img.shields.io/github/release/mittwald/goharbor-client.svg?style=flat-square)](https://github.com/mittwald/goharbor-client/releases/latest)
[![GitHub license](https://img.shields.io/github/license/peresureda/goharbor-client.svg?style=flat-square)](https://github.com/peresureda/goharbor-client/blob/master/LICENSE)
[![Go Report Card](https://goreportcard.com/badge/github.com/peresureda/goharbor-client?style=flat-square)](https://goreportcard.com/badge/github.com/peresureda/goharbor-client)
[![Go Doc](https://img.shields.io/badge/godoc-reference-blue.svg?style=flat-square)](https://pkg.go.dev/github.com/peresureda/goharbor-client/v5)
[![Release](https://img.shields.io/github/release/peresureda/goharbor-client.svg?style=flat-square)](https://github.com/peresureda/goharbor-client/releases/latest)

[![Maintainability](https://api.codeclimate.com/v1/badges/a765bafaa29f6f8fdde7/maintainability)](https://codeclimate.com/github/mittwald/goharbor-client/maintainability)
[![Test Coverage](https://api.codeclimate.com/v1/badges/a765bafaa29f6f8fdde7/test_coverage)](https://codeclimate.com/github/mittwald/goharbor-client/test_coverage)
[![Actions Status](https://github.com/mittwald/goharbor-client/workflows/Test/badge.svg)](https://github.com/mittwald/goharbor-client/actions)
[![Maintainability](https://api.codeclimate.com/v1/badges/a765bafaa29f6f8fdde7/maintainability)](https://codeclimate.com/github/peresureda/goharbor-client/maintainability)
[![Test Coverage](https://api.codeclimate.com/v1/badges/a765bafaa29f6f8fdde7/test_coverage)](https://codeclimate.com/github/peresureda/goharbor-client/test_coverage)
[![Actions Status](https://github.com/peresureda/goharbor-client/workflows/Test/badge.svg)](https://github.com/peresureda/goharbor-client/actions)

A Go client library enabling programs to perform CRUD operations on the [goharbor](https://github.com/goharbor/harbor) API.

Expand All @@ -20,20 +20,20 @@ Install the desired client library version using `go get`:

```shell script
# v1 Client
go get github.com/mittwald/goharbor-client/v5/apiv1
go get github.com/peresureda/goharbor-client/v5/apiv1
```

or

```shell script
# v2 Client
go get github.com/mittwald/goharbor-client/v5/apiv2
go get github.com/peresureda/goharbor-client/v5/apiv2
```

## Contributing
Before you make your changes, check to see if an [issue already exists](https://github.com/mittwald/goharbor-client/issues) for the change you want to make.
Before you make your changes, check to see if an [issue already exists](https://github.com/peresureda/goharbor-client/issues) for the change you want to make.

When in doubt where to start when making changes to the client, please refer to the [Contribution guide](./CONTRIBUTING.md).

## Documentation
For more specific documentation, please refer to the [godoc](https://pkg.go.dev/github.com/mittwald/goharbor-client/v5) of this library (which also contains [usage examples](https://pkg.go.dev/github.com/mittwald/goharbor-client/v5#pkg-examples)).
For more specific documentation, please refer to the [godoc](https://pkg.go.dev/github.com/peresureda/goharbor-client/v5) of this library (which also contains [usage examples](https://pkg.go.dev/github.com/peresureda/goharbor-client/v5#pkg-examples)).
14 changes: 7 additions & 7 deletions apiv1/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,15 @@ import (
"github.com/go-openapi/strfmt"

"github.com/go-openapi/runtime"
"github.com/mittwald/goharbor-client/v5/apiv1/internal/api/client"
"github.com/peresureda/goharbor-client/v5/apiv1/internal/api/client"

"github.com/mittwald/goharbor-client/v5/apiv1/project"
"github.com/mittwald/goharbor-client/v5/apiv1/registry"
"github.com/mittwald/goharbor-client/v5/apiv1/replication"
"github.com/mittwald/goharbor-client/v5/apiv1/system"
"github.com/mittwald/goharbor-client/v5/apiv1/user"
"github.com/peresureda/goharbor-client/v5/apiv1/project"
"github.com/peresureda/goharbor-client/v5/apiv1/registry"
"github.com/peresureda/goharbor-client/v5/apiv1/replication"
"github.com/peresureda/goharbor-client/v5/apiv1/system"
"github.com/peresureda/goharbor-client/v5/apiv1/user"

"github.com/mittwald/goharbor-client/v5/apiv1/model"
"github.com/peresureda/goharbor-client/v5/apiv1/model"
)

// Client is an interface that groups all sub-package methods.
Expand Down
2 changes: 1 addition & 1 deletion apiv1/internal/api/client/harbor_client.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion apiv1/internal/api/client/products/get_health_responses.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion apiv1/internal/api/client/products/get_users_responses.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 9a0cfee

Please sign in to comment.