Module resource

Module resource 

Source
Expand description

Abstract resource authz types.

Kustos limits supported resources to be identified by a valid URL path. As a resource can be identified with a URL in general we talk here about reduced URI which consists only of the path part. Reason is that for different authorities you can have different permissions. Thus in the context of authz a resource without the authority part makes more sense. It is all local to this deployment. Furthermore, we enforce scheme independent thus this is also not part of our reduced URI. The URIs used with Kustos are currently limited to the following format /{resourceName}/{resourceId} where resourceName is static for all instances of that particular resource. Supporting relative resources (e.g. entities with a primary key consisting of a multiple foreign keys) are an open issue currently.

All resources need to implement the Resource trait

Structs§

ResourceId
Represents a accessible resource

Enums§

AccessibleResources
Response from fetching all implicit accessible resources.
ResourceParseError
The error is returned when a resource failed to be parsed.

Traits§

KustosFromStr
Resource
This trait is used to allow the retrieval of resource reduced URL prefixes as well as retrieving the reduced URL