Documentation ¶
Index ¶
- type DB
- func (db *DB) CreateAccount(ctx context.Context, account *models.Account) error
- func (db *DB) CreateOperator(ctx context.Context, op *models.Operator) error
- func (db *DB) CreateSystem(ctx context.Context, system *models.System) error
- func (db *DB) CreateTeam(ctx context.Context, team *authz.Team) error
- func (db *DB) CreateUser(ctx context.Context, user *models.User) error
- func (db *DB) DeleteOperator(ctx context.Context, op *models.Operator) error
- func (db *DB) DeleteSystem(ctx context.Context, id uuid.UUID) error
- func (db *DB) DeleteTeam(ctx context.Context, team *authz.Team) error
- func (db *DB) DeleteUser(ctx context.Context, user *models.User) error
- func (db *DB) GetAccount(ctx context.Context, account *models.Account) error
- func (db *DB) GetOperator(ctx context.Context, op *models.Operator) error
- func (db *DB) GetSystem(ctx context.Context, system *models.System) error
- func (db *DB) GetTeam(ctx context.Context, team *authz.Team) error
- func (db *DB) GetUser(ctx context.Context, user *models.User) error
- func (db *DB) ListAccounts(ctx context.Context, pagination *models.Pagination[models.Account]) error
- func (db *DB) ListOperators(ctx context.Context, pagination *models.Pagination[models.Operator]) error
- func (db *DB) ListSigningKeys(ctx context.Context, accountID uuid.UUID, ...) (models.Pagination[models.NKey], error)
- func (db *DB) ListSystems(ctx context.Context, pagination *models.Pagination[models.System]) error
- func (db *DB) ListTeams(ctx context.Context, pagination *models.Pagination[authz.Team]) error
- func (db *DB) ListUsers(ctx context.Context, pagination models.Pagination[models.User]) (models.Pagination[models.User], error)
- func (db *DB) RunMigrations() error
- func (db *DB) UpdateAccount(ctx context.Context, account *models.Account) error
- func (db *DB) UpdateOperator(ctx context.Context, op *models.Operator) error
- func (db *DB) UpdateSystem(ctx context.Context, system *models.System) error
- func (db *DB) UpdateUser(ctx context.Context, user *models.User) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DB ¶
type DB struct {
// contains filtered or unexported fields
}
DB ...
func (*DB) CreateAccount ¶
CreateAccount ...
func (*DB) CreateOperator ¶
CreateOperator is a method to create an operator in the database.
func (*DB) CreateSystem ¶
CreateSystem ...
func (*DB) CreateTeam ¶
CreateTeam creates a new team.
func (*DB) CreateUser ¶
CreateUser ...
func (*DB) DeleteOperator ¶
DeleteOperator ...
func (*DB) DeleteSystem ¶
DeleteSystem ...
func (*DB) DeleteTeam ¶
DeleteTeam deletes a team by its ID.
func (*DB) DeleteUser ¶
DeleteUser ...
func (*DB) GetAccount ¶
GetAccount ...
func (*DB) GetOperator ¶
GetOperator is a method to get an operator from the database.
func (*DB) ListAccounts ¶
func (db *DB) ListAccounts(ctx context.Context, pagination *models.Pagination[models.Account]) error
ListAccounts ...
func (*DB) ListOperators ¶
func (db *DB) ListOperators(ctx context.Context, pagination *models.Pagination[models.Operator]) error
ListOperators ...
func (*DB) ListSigningKeys ¶ added in v0.1.15
func (db *DB) ListSigningKeys(ctx context.Context, accountID uuid.UUID, pagination models.Pagination[models.NKey]) (models.Pagination[models.NKey], error)
ListSigningKeys ...
func (*DB) ListSystems ¶
ListSystems ...
func (*DB) ListUsers ¶
func (db *DB) ListUsers(ctx context.Context, pagination models.Pagination[models.User]) (models.Pagination[models.User], error)
ListAccounts ...
func (*DB) UpdateAccount ¶
UpdateAccount ...
func (*DB) UpdateOperator ¶
UpdateOperator ...
func (*DB) UpdateSystem ¶
UpdateSystem ...
Click to show internal directories.
Click to hide internal directories.