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() (*ownermodel.Owner, error) CanListMediasFromAlbum(id catalog.AlbumId) error CanReadMedia(owner ownermodel.Owner, id catalog.MediaId) error CanManageAlbum(id catalog.AlbumId) error }
func NewCatalogRules ¶
func NewCatalogRules(repository ScopeRepository, mediaAlbumResolver MediaAlbumResolver, email usermodel.UserId) 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 ShareAlbumCatalogPort ¶
type ShareAlbumCatalogPort interface {
}type UnShareAlbumCase ¶
type UnShareAlbumCase struct {
}func (*UnShareAlbumCase) StopSharingAlbum ¶
Click to show internal directories.
Click to hide internal directories.