Documentation ¶
Index ¶
- func New(z *zap.Logger, cfg *Config) (db.DB, error)
- type Config
- type DeploymentState
- type OwnershipChecker
- type PermissiveOwnershipChecker
- func (c *PermissiveOwnershipChecker) EnsureUserAccessToEntities(ctx context.Context, db *gorm.DB, uid string, ids ...sdktypes.UUID) error
- func (c *PermissiveOwnershipChecker) EnsureUserAccessToEntitiesWithOwnership(ctx context.Context, db *gorm.DB, uid string, ids ...sdktypes.UUID) ([]scheme.Ownership, error)
- func (c *PermissiveOwnershipChecker) JoinUserEntity(ctx context.Context, db *gorm.DB, entity string, uid string) *gorm.DB
- type UsersOwnershipChecker
- func (c *UsersOwnershipChecker) EnsureUserAccessToEntities(ctx context.Context, db *gorm.DB, uid string, ids ...sdktypes.UUID) error
- func (c *UsersOwnershipChecker) EnsureUserAccessToEntitiesWithOwnership(ctx context.Context, db *gorm.DB, uid string, ids ...sdktypes.UUID) (ownerships []scheme.Ownership, err error)
- func (c *UsersOwnershipChecker) JoinUserEntity(ctx context.Context, db *gorm.DB, entity string, uid string) *gorm.DB
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config = gormkitteh.Config
type DeploymentState ¶ added in v0.3.1
type OwnershipChecker ¶ added in v0.8.2
type OwnershipChecker interface { EnsureUserAccessToEntities(ctx context.Context, db *gorm.DB, user string, ids ...sdktypes.UUID) error EnsureUserAccessToEntitiesWithOwnership(ctx context.Context, db *gorm.DB, user string, ids ...sdktypes.UUID) ([]scheme.Ownership, error) JoinUserEntity(ctx context.Context, db *gorm.DB, entity string, user string) *gorm.DB }
type PermissiveOwnershipChecker ¶ added in v0.8.2
type PermissiveOwnershipChecker struct {
// contains filtered or unexported fields
}
func (*PermissiveOwnershipChecker) EnsureUserAccessToEntities ¶ added in v0.8.6
func (*PermissiveOwnershipChecker) EnsureUserAccessToEntitiesWithOwnership ¶ added in v0.8.6
type UsersOwnershipChecker ¶ added in v0.8.2
type UsersOwnershipChecker struct {
// contains filtered or unexported fields
}
func (*UsersOwnershipChecker) EnsureUserAccessToEntities ¶ added in v0.8.6
func (*UsersOwnershipChecker) EnsureUserAccessToEntitiesWithOwnership ¶ added in v0.8.6
Source Files ¶
Click to show internal directories.
Click to hide internal directories.