MCPcopy Create free account
hub / github.com/devaccuracy/ledgerforge / BuildScope

Function BuildScope

api/middleware/scope.go:63–65  ·  view source on GitHub ↗

BuildScope creates a scope string from resource and action

(resource Resource, action Action)

Source from the content-addressed store, hash-verified

61
62// BuildScope creates a scope string from resource and action
63func BuildScope(resource Resource, action Action) string {
64 return string(resource) + ":" + string(action)
65}
66
67// ParseScope parses a scope string into resource and action
68func ParseScope(scope string) (Resource, Action) {

Callers 1

TestBuildScopeFunction · 0.85

Calls

no outgoing calls

Tested by 1

TestBuildScopeFunction · 0.68