This repository has been archived by the owner on Dec 21, 2023. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Add
v2.KeptnInterface
that adds context.Context
support to …
…`api.KeptnInterface` (#449) * Add `context.Context` to request methods Signed-off-by: Arthur Pitman <[email protected]> * Add get method Signed-off-by: Arthur Pitman <[email protected]> * Use get methods Signed-off-by: Arthur Pitman <[email protected]> * Add context to `APIV1Interface` Signed-off-by: Arthur Pitman <[email protected]> * Add context to `AuthV1Interface` Signed-off-by: Arthur Pitman <[email protected]> * Add context to `EventsV1Interface` Signed-off-by: Arthur Pitman <[email protected]> * Add context to `LogsV1Interface` Signed-off-by: Arthur Pitman <[email protected]> * Add context to `ProjectsV1Interface` Signed-off-by: Arthur Pitman <[email protected]> * Add initial context support to `ResourcesV1Interface` Signed-off-by: Arthur Pitman <[email protected]> * Add context to `ResourcesV1Interface` Signed-off-by: Arthur Pitman <[email protected]> * Add context to `SecretsV1Interface` Signed-off-by: Arthur Pitman <[email protected]> * Add context to `SequencesV1Interface` Signed-off-by: Arthur Pitman <[email protected]> * Add context to `ServicesV1Interface` Signed-off-by: Arthur Pitman <[email protected]> * Add context to `ShipyardControlV1Interface` Signed-off-by: Arthur Pitman <[email protected]> * Add context to `StagesV1Interface` Signed-off-by: Arthur Pitman <[email protected]> * Add context to `UniformV1Interface` Signed-off-by: Arthur Pitman <[email protected]> * Add context to `Keptn` and `KeptnBase` Signed-off-by: Arthur Pitman <[email protected]> * Fix comments Signed-off-by: Arthur Pitman <[email protected]> * Introduce APIV2Interface Signed-off-by: Arthur Pitman <[email protected]> * Second option: APIV2Interface with `...WithContext` methods Signed-off-by: Arthur Pitman <[email protected]> * Create `v2` as duplicate of `api` package Signed-off-by: Arthur Pitman <[email protected]> * Fix `v2.AuthInterface` Signed-off-by: Arthur Pitman <[email protected]> * Fix `v2.EventsInterface` Signed-off-by: Arthur Pitman <[email protected]> * Fix `v2.LogsInterface` Signed-off-by: Arthur Pitman <[email protected]> * Fix `v2.ProjectsInterface` Signed-off-by: Arthur Pitman <[email protected]> * Fix `v2.ResourcesInterface` Signed-off-by: Arthur Pitman <[email protected]> * Fix `v2.SecretsInterface` Signed-off-by: Arthur Pitman <[email protected]> * Fix `v2.SequencesInterface` Signed-off-by: Arthur Pitman <[email protected]> * Fix `v2.ServicesInterface` Signed-off-by: Arthur Pitman <[email protected]> * Fix `v2.ShipyardControlInterface` Signed-off-by: Arthur Pitman <[email protected]> * Fix `v2.StagesInterface` Signed-off-by: Arthur Pitman <[email protected]> * Fix `v2.UniformInterface` Signed-off-by: Arthur Pitman <[email protected]> * Fix `v2.Client` Signed-off-by: Arthur Pitman <[email protected]> * APIHandler: v1 embeds v2 Signed-off-by: Arthur Pitman <[email protected]> * AuthHandler: v1 embeds v2 Signed-off-by: Arthur Pitman <[email protected]> * EventHandler: v1 embeds v2 Signed-off-by: Arthur Pitman <[email protected]> * LogHandler: v1 embeds v2 Signed-off-by: Arthur Pitman <[email protected]> * ProjectHandler: v1 embeds v2 Signed-off-by: Arthur Pitman <[email protected]> * SecretHandler: v1 embeds v2 Signed-off-by: Arthur Pitman <[email protected]> * SequenceControlHandler: v1 embeds v2 Signed-off-by: Arthur Pitman <[email protected]> * ServiceHandler: v1 embeds v2 Signed-off-by: Arthur Pitman <[email protected]> * ShipyardControllerHandler: v1 embeds v2 Signed-off-by: Arthur Pitman <[email protected]> * StageHandler: v1 embeds v2 Signed-off-by: Arthur Pitman <[email protected]> * UniformHandler: v1 embeds v2 Signed-off-by: Arthur Pitman <[email protected]> * Revert "Add context to `Keptn` and `KeptnBase`" Signed-off-by: Arthur Pitman <[email protected]> * Remove redundant test Signed-off-by: Arthur Pitman <[email protected]> * Revert `ResourcesV1Interface` Signed-off-by: Arthur Pitman <[email protected]> * Rename and export implementation methods Signed-off-by: Arthur Pitman <[email protected]> * Fix options for `v2.ResourceHandler` methods Signed-off-by: Arthur Pitman <[email protected]> * ResourceHandler: v1 embeds v2 Signed-off-by: Arthur Pitman <[email protected]> * Remove redundant test Signed-off-by: Arthur Pitman <[email protected]> * Add construction functions Signed-off-by: Arthur Pitman <[email protected]> * Harmonize construction functions Signed-off-by: Arthur Pitman <[email protected]> * Remove deprecated functions from v2 Signed-off-by: Arthur Pitman <[email protected]> * Add v2 construction functions Signed-off-by: Arthur Pitman <[email protected]> * Polish v2 handlers Signed-off-by: Arthur Pitman <[email protected]> * Add missing functions for APIHandler Signed-off-by: Arthur Pitman <[email protected]> * added missing api handler in GetMetadata() Signed-off-by: Florian Bacher <[email protected]> * added alias for v2.ResourceNotFoundError to stay backwards compatible Signed-off-by: Florian Bacher <[email protected]> * fix: Make sure all api handlers are set when using v2 api handlers in v1 (#479) * debug output Signed-off-by: Florian Bacher <[email protected]> * debug output Signed-off-by: Florian Bacher <[email protected]> * ensure that uniform handler is set Signed-off-by: Florian Bacher <[email protected]> * ensure that uniform handler is set Signed-off-by: Florian Bacher <[email protected]> * ensure that all api handlers are set Signed-off-by: Florian Bacher <[email protected]> Co-authored-by: Florian Bacher <[email protected]>
- Loading branch information