dbgorm

package
v0.8.5 Latest Latest
Warning

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

Go to latest
Published: Jul 16, 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 {
	IsUserEntity(db *gorm.DB, user string, ids ...sdktypes.UUID) error
	JoinUserEntity(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) IsUserEntity added in v0.8.2

func (c *PermissiveOwnershipChecker) IsUserEntity(db *gorm.DB, uid string, ids ...sdktypes.UUID) error

func (*PermissiveOwnershipChecker) JoinUserEntity added in v0.8.2

func (c *PermissiveOwnershipChecker) JoinUserEntity(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) IsUserEntity added in v0.8.2

func (c *UsersOwnershipChecker) IsUserEntity(db *gorm.DB, uid string, ids ...sdktypes.UUID) error

func (*UsersOwnershipChecker) JoinUserEntity added in v0.8.2

func (c *UsersOwnershipChecker) JoinUserEntity(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