MCPcopy Create free account
hub / github.com/akash-network/node / parseAccess

Function parseAccess

cmd/akash/cmd/auth.go:154–166  ·  view source on GitHub ↗
(val string)

Source from the content-addressed store, hash-verified

152}
153
154func parseAccess(val string) (ajwt.AccessType, bool) {
155 res := ajwt.AccessType(val)
156
157 switch res {
158 case ajwt.AccessTypeFull:
159 case ajwt.AccessTypeScoped:
160 case ajwt.AccessTypeGranular:
161 default:
162 return ajwt.AccessTypeNone, false
163 }
164
165 return res, true
166}
167
168func permissionScopesToStrings(scopes ajwt.PermissionScopes) []string {
169 result := make([]string, len(scopes))

Callers 1

authJWTCmdFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected