Documentation ¶
Index ¶
- func AddShareCreateHandler(logger log.Logger, d *apiserver.Definitions, version int, basePath string, ...)
- func BuildSharePolicy(uuid string, entity Shareable, ownerId uint, actions []string) ladon.Policy
- func KernelMiddlewareShares(ctx context.Context, config cfg.Config, logger log.Logger) (kernel.Middleware, error)
- func NewShareCreateHandler(logger log.Logger, transformer ShareCreateHandler) gin.HandlerFunc
- func NewShareManager(config cfg.Config, logger log.Logger) (*shareManager, error)
- func NewShareableRepository(ctx context.Context, config cfg.Config, logger log.Logger, ...) (*shareRepository, error)
- func ProvideRepository(ctx context.Context, config cfg.Config, logger log.Logger) (db_repo.Repository, error)
- func ProvideShareManager(ctx context.Context, config cfg.Config, logger log.Logger) (*shareManager, error)
- type BaseShareHandler
- type EntityDeleteHandler
- type EntityUpdateHandler
- type Metadata
- type ModelBased
- type Settings
- type Share
- type ShareCreateHandler
- type Shareable
- type WithPolicy
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddShareCreateHandler ¶
func AddShareCreateHandler(logger log.Logger, d *apiserver.Definitions, version int, basePath string, handler ShareCreateHandler)
func BuildSharePolicy ¶
func KernelMiddlewareShares ¶
func NewShareCreateHandler ¶
func NewShareCreateHandler(logger log.Logger, transformer ShareCreateHandler) gin.HandlerFunc
func NewShareManager ¶
func NewShareableRepository ¶
func ProvideRepository ¶
Types ¶
type BaseShareHandler ¶
type BaseShareHandler interface {}
type EntityDeleteHandler ¶
type EntityDeleteHandler interface { BaseShareHandler }
type EntityUpdateHandler ¶
type EntityUpdateHandler interface { BaseShareHandler crud.BaseUpdateHandler }
type ModelBased ¶
type ModelBased interface {
db_repo.ModelBased
GetPolicyId() string
}
type ShareCreateHandler ¶
type ShareCreateHandler interface { BaseShareHandler }
type WithPolicy ¶
type WithPolicy interface {
GetPolicyId() string
}
Click to show internal directories.
Click to hide internal directories.