tyk icon indicating copy to clipboard operation
tyk copied to clipboard

Tt 6290 refactor process key space changes

Open sredxny opened this issue 2 years ago • 3 comments

Description

Related Issue

Motivation and Context

How This Has Been Tested

Screenshots (if appropriate)

Types of changes

  • [ ] Bug fix (non-breaking change which fixes an issue)
  • [ ] New feature (non-breaking change which adds functionality)
  • [ ] Breaking change (fix or feature that would cause existing functionality to change)
  • [ ] Refactoring or add test (improvements in base code or adds test coverage to functionality)

Checklist

  • [ ] Make sure you are requesting to pull a topic/feature/bugfix branch (right side). If pulling from your own fork, don't request your master!
  • [ ] Make sure you are making a pull request against the master branch (left side). Also, you should start your branch off our latest master.
  • [ ] My change requires a change to the documentation.
    • [ ] If you've changed APIs, describe what needs to be updated in the documentation.
    • [ ] If new config option added, ensure that it can be set via ENV variable
  • [ ] I have updated the documentation accordingly.
  • [ ] Modules and vendor dependencies have been updated; run go mod tidy && go mod vendor
  • [ ] When updating library version must provide reason/explanation for this update.
  • [ ] I have added tests to cover my changes.
  • [ ] All new and existing tests passed.
  • [ ] Check your code additions will not fail linting checks:
    • [ ] go fmt -s
    • [ ] go vet

sredxny avatar Aug 23 '22 23:08 sredxny

API tests result: success :white_check_mark: Branch used: refs/pull/4252/merge Commit:
Triggered by: pull_request (@sredxny) Execution page

Tyk-ITS avatar Aug 23 '22 23:08 Tyk-ITS

API tests result: success :white_check_mark: Branch used: refs/pull/4252/merge Commit: ce6910278e32c90cc847963ed862d146bf98d65b Triggered by: pull_request (@sredxny) Execution page

Tyk-ITS avatar Aug 24 '22 14:08 Tyk-ITS

API Changes

--- prev.txt	2023-12-05 02:06:03.152482630 +0000
+++ current.txt	2023-12-05 02:06:00.428449084 +0000
@@ -6381,6 +6381,7 @@
 )
 const (
 	ResetQuota              string = "resetQuota"
+	HashedKey               string = "hashed"
 	CertificateRemoved      string = "CertificateRemoved"
 	CertificateAdded        string = "CertificateAdded"
 	OAuthRevokeToken        string = "oAuthRevokeToken"
@@ -6937,6 +6938,12 @@
 
 func (m *CertificateCheckMW) ProcessRequest(w http.ResponseWriter, r *http.Request, _ interface{}) (error, int)
 
+type CertificateProcessor struct {
+	// Has unexported fields.
+}
+
+func (c *CertificateProcessor) Process(certificates map[string]string)
+
 type ChainObject struct {
 	ThisHandler    http.Handler
 	RateLimitChain http.Handler
@@ -7081,6 +7088,8 @@
     GenerateHMACSecret is a utility function for generating new auth keys.
     Returns the storage key name and the actual key
 
+type DefaultRPCResourceClassifier struct{}
+
 type DefaultSessionManager struct {
 	Gw *Gateway `json:"-"`
 	// Has unexported fields.
@@ -8237,6 +8246,14 @@
     ProcessRequest will run any checks on the request on the way through the
     system, return an error to have the chain fail
 
+type OauthClientsProcessor struct {
+	// Has unexported fields.
+}
+
+func (o *OauthClientsProcessor) Process(oauthClients map[string]string)
+    Process performs the appropiate action for the received clients it can be
+    any of the Create,Update and Delete operations
+
 type OpenIDMW struct {
 	BaseMiddleware
 
@@ -9015,6 +9032,15 @@
 	Redis        config.StorageOptionsConf
 }
 
+type StandardKeysProcessor struct {
+	// Has unexported fields.
+}
+    StandardKeysProcessor process the messages from MDCB that corresponds to
+    standard key changes
+
+func (s *StandardKeysProcessor) Process(keys map[string]string, keysToReset map[string]bool)
+    Process the standard keys changes
+
 type StatsDSink struct {
 	// Has unexported fields.
 }

github-actions[bot] avatar Dec 04 '23 21:12 github-actions[bot]