Documentation ¶
Overview ¶
Package catalogacl contains the logic to authorise access to catalog resources based on user requesting it.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CatalogRules ¶
type CatalogRules interface { Owner() (string, error) CanListMediasFromAlbum(owner string, folderName string) error CanReadMedia(owner string, id string) error }
func NewCatalogRules ¶
func NewCatalogRules(repository ScopeRepository, mediaAlbumResolver MediaAlbumResolver, email string) CatalogRules
NewCatalogRules creates an adapter catalogacl -> aclcore which will always request DB layer
func OptimiseRulesWithAccessToken ¶
func OptimiseRulesWithAccessToken(delegate CatalogRules, claims aclcore.Claims) CatalogRules
OptimiseRulesWithAccessToken creates an adapter catalogacl -> aclcore with pre-authorised scopes from the Access Token
type MediaAlbumResolver ¶
type ScopeRepository ¶
type ScopeRepository interface { aclcore.ScopesReader aclcore.ReverseScopesReader }
type ShareAlbumCase ¶
type ShareAlbumCase struct {}
func (*ShareAlbumCase) ShareAlbumWith ¶
func (s *ShareAlbumCase) ShareAlbumWith(owner, folderName, userEmail string) error
type ShareAlbumCatalogPort ¶
type ShareAlbumCatalogPort interface {
}type UnShareAlbumCase ¶
type UnShareAlbumCase struct {
}func (*UnShareAlbumCase) StopSharingAlbum ¶
func (u *UnShareAlbumCase) StopSharingAlbum(owner, folderName, email string) error
Click to show internal directories.
Click to hide internal directories.