Releases: iver-wharf/wharf-api-client-go
v2.2.1 wharf-api-client-go
v2.2.0 wharf-api-client-go
v2.1.0 wharf-api-client-go
Changes (since v2.0.0)
-
Added
Client.CreateBuildLogStreamthat uses wharf-api's gRPC API that was introduced in wharf-api v5.1.0 to allow streaming log creation. (#35) -
Added numerous dependencies:
-
Changed minimum version of Go from 1.16 to 1.17. (#36)
-
Changed
BuildSearch.Statusto a slice to support searching for builds of any matching status. Support was added to wharf-api in v5.1.0 with wharf-api#150. (#37) -
Added
WorkerIDtoresponse.Buildmodel, as added in wharf-api#156. (#38) -
Added methods for API health and metadata: (#39)
Client.GetHealth() HealthStatus:GET /api/healthClient.GetVersion() app.Version:GET /api/versionClient.Ping() Ping:GET /api/ping
-
Added methods for project overrides: (#40)
-
Client.GetProjectOverrides(uint) ProjectOverrides:GET /api/project/{projectId}/override -
Client.UpdateProjectOverrides(uint, ProjectOverridesUpdate) ProjectOverrides:PUT /api/project/{projectId}/override -
Client.DeleteProjectOverrides(uint):DELETE /api/project/{projectId}/override
-
-
Added method to delete a project (USE WITH CAUTION!): (#40)
Client.DeleteProject(uint):DELETE /api/project/{projectId}
-
Added methods for uploading artifacts and test results: (#40)
-
Client.CreateBuildArtifact(uint, string, io.Reader):POST /api/build/{buildId}/artifact -
Client.CreateBuildTestResult(uint, string, io.Reader) []ArtifactMetadata:POST /api/build/{buildId}/test-result
-
-
Added client and server version validation on all endpoints. This is disabled by default, but can be enabled with the following new flags: (#39)
client := wharfapi.Client{ ErrIfOutdatedClient: true, ErrIfOutdatedServer: true, }
-
Changed
Clientmethod receiver to a pointer on all methods. This will not break regular usage, but may break edge case usages during compilation. (#39) -
Changed all endpoints that sends JSON payload in the request to stream the writing instead of buffering it. This will lower the memory footprint for larger payloads. (#40)
-
Fixed
GetBuildArtifacthaving invalid implementation where it expected an artifact JSON response, while in reality that's the endpoint to download an artifact. This will break compilation of existing code, but the endpoint never worked before to begin with. (#40)
v2.0.0 wharf-api-client-go
Changes (since v1.4.0)
-
BREAKING: Changed module path from
github.com/iver-wharf/wharf-api-client-go
togithub.com/iver-wharf/wharf-api-client-go/v2. (#30) -
BREAKING: Changed minimum version of Go from 1.13 to 1.16. (#29)
-
BREAKING: Removed support for
github.com/iver-wharf/wharf-apiv4.2.0 and below. (#29) -
Added support for
github.com/iver-wharf/wharf-apiv5.0.0. (#29) -
Changed version of
github.com/iver-wharf/wharf-corefrom v1.2.0 to v1.3.0.
(#29) -
Added dependency
github.com/google/go-querystringv1.1.0. (#29)
v1.4.0 wharf-api-client-go
Changes (since v1.3.1)
-
Added methods for search endpoints: (#18)
Client.SearchProject(Project) []Project:POST /api/projects/searchClient.SearchProvider(Provider) []Provider:POST /api/providers/searchClient.SearchToken(Token) []Token:POST /api/tokens/search
v1.3.1 wharf-api-client-go
Changes (since v1.3.0)
-
Added documentation to all exported methods. (#11)
-
Added dependency on
github.com/iver-wharf/wharf-corev1.1.0. (#12, #13, #16) -
Changed all logging via
fmt.Printand sirupsen/logrus to instead use the newgithub.com/iver-wharf/wharf-core/pkg/logger. (#13) -
Changed to use
problem.Responsefromwharf-coreinstead of thewharfapi.Problemthat was added in v1.3.0/#4. (#12, #14) -
Removed
wharfapi.ProblemErroras theproblem.Responsetype from thewharf-coremodule conforms to theerrorinterface. (#14) -
Removed dependency on
github.com/sirupsen/logrus. (#13)
v1.3.0 Bugfixes, Code quality improvements and 2 new endpoints
Changes (since v1.2.0)
-
Fixed implementation of the refactor for ApiUrl to APIURL. (#8)
-
Added endpoint
PUT /api/provider. (#8) -
Added endpoint
PUT /api/token. (#8) -
Added problem response handling so better and more informative errors are
returned aswharfapi.ProblemErrorinstead. (#4) -
Fixed "non-2xx status code" checks. (#4)
-
Fixed invalid initialisms in method and field names. Affected names: (#5)
Before After Client.ApiUrlClient.APIURLClient.GetProjectByIdClient.GetProjectByIDClient.GetProviderByIdClient.GetProviderByIDClient.GetTokenByIdClient.GetTokenByIDProject.AvatarUrlProject.AvatarURLProjectRunResponse.BuildIdProjectRunResponse.BuildID -
Remove ProviderID from Token to match the corresponding change in the DB datastructure. (#6)
v1.2.0 First open source release
With confirmation from our company we could open source this project. This release is the first one to be released in the open. Exiting!
Changes since dawn of this repo
Since we had to remove the entire Git history (see #1), here's at least our entire changelog so far, for those that may still use our older (closed source) versions.
The
!1are GitLab merge request references. They're only kept so we Iver employees can refer back to them. All future changes will be created through GitHub and reference GitHub PRs instead.
v1.2.0 (2021-02-25)
-
Added CHANGELOG.md to repository. (!10)
-
Added support for endpoint
PUT /api/build/{buildid}?status={status}(via functionPutStatus). (!11) -
Added support for endpoint
POST /api/build/{buildid}/log(via functionPostLog). (!11)
v1.1.0 (2021-01-07)
- Fixed all endpoint functions not checking status code on HTTP responses. (!9)
v1.0.0 (2020-12-02)
- Changed package name from
clienttowharfand changed the type name
WharfClientto justClient, resulting in usage changing from
client.WharfClienttowharf.Client. (!7, !8)
v0.1.5 (2020-11-24)
- Removed group endpoints support, a reflection of the changes from the API
v1.0.0. (!6)GET /api/group(viaGetGroupById)GET /api/groups/search(viaGetGroup)PUT /api/group(viaPutGroup)
v0.1.4 (2020-10-23)
-
Added support for endpoint
PUT /api/branches(via functionPutBranches)
that was introduced in the API v1.0.0. (!5) -
Added
README.mdto document that this package is only meant to be used to
talk to the main API and not to the provider/plugin APIs just to avoid
circular dependencies. (!3)
v0.1.3 (2020-04-30)
- Added support for endpoint
POST /api/project/{projectid}/{stage}/run
(viaPostProjectRunfunction). (!1)
v0.1.2 (2019-11-21)
- Fixed
/api/providers/searchfunction (GetProvider) to only filter by
token IDif tokenID > 0. (a57a10d2)
v0.1.1 (2019-11-21)
- Changed module name and moved repository from
/tools/wharf-project/client
to/tools/wharf-clientdue to restrictions in how Go handles Git paths.
(755a2fc4)
v0.1.0 (2019-11-21)
- Added initial commit. Endpoints supported: (df25308e)
POST /api/branch(viaPutBranch)GET /api/group/{groupId}(viaGetGroupById)GET /api/groups/search(viaGetGroup)PUT /api/group(viaPutGroup)GET /api/project/{projectId}(viaGetProjectById)PUT /api/project(viaPutProject)GET /api/provider/{providerId}(viaGetProviderById)POST /api/providers/search(viaGetProvider)POST /api/provider(viaPostProvider)GET /api/token/{tokenId}(viaGetTokenById)POST /api/tokens/search(viaGetToken)POST /api/token(viaPostToken)