Documentation ¶
Overview ¶
Package catalogaclview is a layer on top of catalog (same business model) which apply ACL rules before performing any action
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ACLViewCatalogAdapter ¶
type AlbumInView ¶
type ListAlbumsFilter ¶
type ListAlbumsFilter struct {
OnlyDirectlyOwned bool // OnlyDirectlyOwned provides a sub-view where only resources directly owned by user are displayed and accessible
}
type Sharing ¶
type Sharing struct { MainUser string // MainUser is the user having the "owner:main" grant Owner string FolderName string }
Sharing is caring.
type View ¶
type View struct { UserEmail string // UserEmail from which the catalog is seen CatalogRules catalogacl.CatalogRules // CatalogRules is rules to use to authorise or deny accesses CatalogAdapter ACLViewCatalogAdapter // CatalogAdapter is a proxy to the catalog domain }
func (*View) ListAlbums ¶
func (v *View) ListAlbums(filter ListAlbumsFilter) ([]*AlbumInView, error)
ListAlbums returns albums visible by the user (owned by current user, and shared to him)
Click to show internal directories.
Click to hide internal directories.