WithAllowList wraps the scopes with a database allow list, producing an ExpandableScope that always enforces the allow list overlay when expanded.
(list AllowList)
| 249 | // WithAllowList wraps the scopes with a database allow list, producing an |
| 250 | // ExpandableScope that always enforces the allow list overlay when expanded. |
| 251 | func (s APIKeyScopes) WithAllowList(list AllowList) APIKeyScopeSet { |
| 252 | return APIKeyScopeSet{Scopes: s, AllowList: list} |
| 253 | } |
| 254 | |
| 255 | // Has returns true if the slice contains the provided scope. |
| 256 | func (s APIKeyScopes) Has(target APIKeyScope) bool { |
no outgoing calls