Documentation ¶
Index ¶
- func FormatScope(scopeType string, scope *authpb.Scope) (string, error)
- func GetOwnerScope() (map[string]*authpb.Scope, error)
- func GetPublicShareScope(share *link.PublicShare, role authpb.Role) (map[string]*authpb.Scope, error)
- func GetResourceInfoScope(r *provider.ResourceInfo, role authpb.Role) (map[string]*authpb.Scope, error)
- func VerifyScope(scopeMap map[string]*authpb.Scope, resource interface{}) (bool, error)
- type Verifier
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FormatScope ¶
FormatScope create a pretty print of the scope
func GetOwnerScope ¶ added in v1.8.0
GetOwnerScope returns the default owner scope with access to all resources.
func GetPublicShareScope ¶ added in v1.8.0
func GetPublicShareScope(share *link.PublicShare, role authpb.Role) (map[string]*authpb.Scope, error)
GetPublicShareScope returns the scope to allow access to a public share and the shared resource.
func GetResourceInfoScope ¶ added in v1.8.0
func GetResourceInfoScope(r *provider.ResourceInfo, role authpb.Role) (map[string]*authpb.Scope, error)
GetResourceInfoScope returns the scope to allow access to a resource info object.
Types ¶
Click to show internal directories.
Click to hide internal directories.