MCPcopy Create free account
hub / github.com/couchbase/sync_gateway / FormatPermissionNames

Function FormatPermissionNames

rest/admin_api_auth_routing_permissions.go:30–36  ·  view source on GitHub ↗
(perms []Permission, bucketName string)

Source from the content-addressed store, hash-verified

28}
29
30func FormatPermissionNames(perms []Permission, bucketName string) (formattedPerms []string) {
31 formattedPerms = make([]string, 0, len(perms))
32 for _, perm := range perms {
33 formattedPerms = append(formattedPerms, perm.FormattedName(bucketName))
34 }
35 return formattedPerms
36}
37
38func GetPermissionsNameFromFormatted(formattedName string) string {
39 // Handles cases where we have a bucket / collection scope

Callers 1

CheckPermissionsFunction · 0.85

Calls 1

FormattedNameMethod · 0.80

Tested by

no test coverage detected