dbgorm

package
v0.9.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 10, 2024 License: Apache-2.0 Imports: 29 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(z *zap.Logger, cfg *Config) (db.DB, error)

Types

type Config

type Config = gormkitteh.Config

type DeploymentState added in v0.3.1

type DeploymentState struct {
	DeploymentID sdktypes.UUID
	State        int32
}

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 (c *PermissiveOwnershipChecker) EnsureUserAccessToEntities(ctx context.Context, db *gorm.DB, uid string, ids ...sdktypes.UUID) error

func (*PermissiveOwnershipChecker) EnsureUserAccessToEntitiesWithOwnership added in v0.8.6

func (c *PermissiveOwnershipChecker) EnsureUserAccessToEntitiesWithOwnership(
	ctx context.Context, db *gorm.DB, uid string, ids ...sdktypes.UUID,
) ([]scheme.Ownership, error)

func (*PermissiveOwnershipChecker) JoinUserEntity added in v0.8.2

func (c *PermissiveOwnershipChecker) JoinUserEntity(ctx context.Context, db *gorm.DB, entity string, uid string) *gorm.DB

type UsersOwnershipChecker added in v0.8.2

type UsersOwnershipChecker struct {
	// contains filtered or unexported fields
}

func (*UsersOwnershipChecker) EnsureUserAccessToEntities added in v0.8.6

func (c *UsersOwnershipChecker) EnsureUserAccessToEntities(ctx context.Context, db *gorm.DB, uid string, ids ...sdktypes.UUID) error

func (*UsersOwnershipChecker) EnsureUserAccessToEntitiesWithOwnership added in v0.8.6

func (c *UsersOwnershipChecker) EnsureUserAccessToEntitiesWithOwnership(
	ctx context.Context, db *gorm.DB, uid string, ids ...sdktypes.UUID,
) (ownerships []scheme.Ownership, err error)

func (*UsersOwnershipChecker) JoinUserEntity added in v0.8.2

func (c *UsersOwnershipChecker) JoinUserEntity(ctx context.Context, db *gorm.DB, entity string, uid string) *gorm.DB

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL