MCPcopy Create free account
hub / github.com/bytebase/bytebase / getPolicyCacheKey

Function getPolicyCacheKey

backend/store/store.go:172–174  ·  view source on GitHub ↗
(workspace string, resourceType storepb.Policy_Resource, resource string, policyType storepb.Policy_Type)

Source from the content-addressed store, hash-verified

170}
171
172func getPolicyCacheKey(workspace string, resourceType storepb.Policy_Resource, resource string, policyType storepb.Policy_Type) string {
173 return fmt.Sprintf("workspaces/%s/policies/%s/%s/%s", workspace, resourceType.String(), resource, policyType.String())
174}
175
176func getDatabaseCacheKey(workspace, instanceID, databaseName string) string {
177 return fmt.Sprintf("workspaces/%s/%s/%s", workspace, instanceID, databaseName)

Callers 7

UpdateUserEmailMethod · 0.85
CreateProjectMethod · 0.85
GetPolicyMethod · 0.85
ListPoliciesMethod · 0.85
CreatePolicyMethod · 0.85
UpdatePolicyMethod · 0.85
DeletePolicyMethod · 0.85

Calls 1

StringMethod · 0.65

Tested by

no test coverage detected