Documentation ¶
Index ¶
- func AddLightweightAccountScope(role authpb.Role, scopes map[string]*authpb.Scope) (map[string]*authpb.Scope, error)
- func AddOwnerScope(scopes map[string]*authpb.Scope) (map[string]*authpb.Scope, error)
- func AddPublicShareScope(share *link.PublicShare, role authpb.Role, scopes map[string]*authpb.Scope) (map[string]*authpb.Scope, error)
- func AddReceivedShareScope(share *collaboration.ReceivedShare, role authpb.Role, ...) (map[string]*authpb.Scope, error)
- func AddResourceInfoScope(r *provider.ResourceInfo, role authpb.Role, scopes map[string]*authpb.Scope) (map[string]*authpb.Scope, error)
- func AddShareScope(share *collaboration.Share, role authpb.Role, scopes map[string]*authpb.Scope) (map[string]*authpb.Scope, error)
- func FormatScope(scopeType string, scope *authpb.Scope) (string, error)
- func GetPublicSharesFromScopes(scopes map[string]*authpb.Scope) ([]*link.PublicShare, error)
- func VerifyScope(ctx context.Context, scopeMap map[string]*authpb.Scope, resource interface{}) (bool, error)
- type Verifier
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddLightweightAccountScope ¶
func AddLightweightAccountScope(role authpb.Role, scopes map[string]*authpb.Scope) (map[string]*authpb.Scope, error)
AddLightweightAccountScope adds the scope to allow access to lightweight user.
func AddOwnerScope ¶
AddOwnerScope adds the default owner scope with access to all resources.
func AddPublicShareScope ¶
func AddPublicShareScope(share *link.PublicShare, role authpb.Role, scopes map[string]*authpb.Scope) (map[string]*authpb.Scope, error)
AddPublicShareScope adds the scope to allow access to a public share and the shared resource.
func AddReceivedShareScope ¶
func AddReceivedShareScope(share *collaboration.ReceivedShare, role authpb.Role, scopes map[string]*authpb.Scope) (map[string]*authpb.Scope, error)
AddReceivedShareScope adds the scope to allow access to a received user/group share and the shared resource.
func AddResourceInfoScope ¶
func AddResourceInfoScope(r *provider.ResourceInfo, role authpb.Role, scopes map[string]*authpb.Scope) (map[string]*authpb.Scope, error)
AddResourceInfoScope adds the scope to allow access to a resource info object.
func AddShareScope ¶
func AddShareScope(share *collaboration.Share, role authpb.Role, scopes map[string]*authpb.Scope) (map[string]*authpb.Scope, error)
AddShareScope adds the scope to allow access to a user/group share and the shared resource.
func FormatScope ¶
FormatScope create a pretty print of the scope.
func GetPublicSharesFromScopes ¶ added in v0.0.24
GetPublicSharesFromScopes returns all the public shares in the given scope.