Documentation
¶
Index ¶
- func AuthzListToMap(paths []string) map[string][]string
- func AuthzMapFromScope(org, project string) map[string][]string
- func AuthzMapToControlledAccess(authzMap map[string][]string) []string
- func AuthzMapToList(authzMap map[string][]string) []string
- func ControlledAccessToAuthzMap(claims []string) map[string][]string
- func NormalizeAccessResource(raw string) string
- func NormalizeAccessResources(resources []string) []string
- func ResourcePath(org, project string) (string, error)
- func ResourceScope(resource string) (string, string, bool)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AuthzListToMap ¶
AuthzListToMap converts a list of resource-path strings (for example "/organization/org/project/proj" or legacy "/programs/org/projects/proj") to the wire-format org→projects map.
func AuthzMapFromScope ¶
AuthzMapFromScope builds the wire-format authorizations map from an org and project. Empty project means org-wide access (value is empty slice).
func AuthzMapToList ¶
AuthzMapToList converts the wire-format org→projects map back to a list of canonical resource-path strings for internal storage.
func NormalizeAccessResource ¶
NormalizeAccessResource converts GA4GH controlled_access URL claims and accepted resource path aliases into the canonical resource form used for privilege checks: /organization/<organization>[/project/<project>].
func ResourcePath ¶
ResourcePath returns the canonical resource path for an org/project scope, e.g. "/organization/myorg/project/myproject".
Types ¶
This section is empty.