Skip to content

Commit

Permalink
Merge pull request #130 from mittwald/bump/api-clients
Browse files Browse the repository at this point in the history
bump v1 & v2 apis
  • Loading branch information
elenz97 authored May 4, 2022
2 parents 6679673 + 1ae5ad2 commit 0792c5d
Show file tree
Hide file tree
Showing 56 changed files with 1,542 additions and 76 deletions.
10 changes: 5 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
harbor-teardown test integration-test-v1-ci integration-test-v2-ci integration-test-v1 integration-test-v2 \
fmt gofmt gofumpt goimports lint uninstall-harbor-v2 uninstall-harbor-v1

V1_VERSION = v1.10.9
V2_VERSION = v2.4.1
MOCKERY_VERSION = v2.9.4
V1_VERSION = v1.10.10
V2_VERSION = v2.5.0
MOCKERY_VERSION = v2.12.1
GOSWAGGER_VERSION = v0.25.0
GOLANGCI_LINT_VERSION = v1.43.0
GOLANGCI_LINT_VERSION = v1.45.2

# Run all code generation targets
generate: swagger-generate mock-generate
Expand Down Expand Up @@ -46,7 +46,7 @@ uninstall-harbor-v1:
test:
go test -v ./... -tags !integration

INTREGRATION_V1 = CGO_ENABLED=0 go test -p 1 -count 1 -v github.com/mittwald/goharbor-client/v5/apiv1/... -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 testing (CI Jobs)
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ A Go client library enabling programs to perform CRUD operations on the [goharbo
This client library utilizes types generated by [go-swagger](https://github.com/go-swagger/go-swagger).

## Compatibility
This library includes separate clients supporting the **v1.10** & **v2.4** versions of goharbor.
This library includes separate clients supporting the **v1.10** & **v2.5** versions of goharbor.

## Installation
Install the desired client library version using `go get`:
Expand Down
14 changes: 13 additions & 1 deletion apiv1/mocks/client_service.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/testing/const.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package testing

const (
Host = "http://localhost:30002/api"
Host = "http://localhost:80/api"
User = "admin"
Password = "Harbor12345"
SetupScript = "scripts/setup-harbor.sh"
Expand Down
39 changes: 39 additions & 0 deletions apiv2/internal/api/client/artifact/artifact_client.go

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

50 changes: 45 additions & 5 deletions apiv2/internal/api/client/artifact/get_artifact_parameters.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.

Loading

0 comments on commit 0792c5d

Please sign in to comment.