Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Accounts ¶
type Accounts interface { // CreateAccount creates a new account. CreateAccount(ctx context.Context, account *models.Account) error // UpdateAccount updates an existing account. UpdateAccount(ctx context.Context, account *models.Account) error // GetAccount returns the account with the given ID. GetAccount(ctx context.Context, account *models.Account) error // ListAccounts returns a list of accounts. ListAccounts(ctx context.Context, pagination *models.Pagination[models.Account]) error // ListSigningKeys returns a list of signing keys for the account with the given ID. ListSigningKeys(ctx context.Context, accountID uuid.UUID, pagination models.Pagination[models.NKey]) (models.Pagination[models.NKey], error) }
Accounts ...
type Operators ¶
type Operators interface { // CreateOperator creates a new operator. CreateOperator(ctx context.Context, operator *models.Operator) error // UpdateOperator updates an existing operator. UpdateOperator(ctx context.Context, operator *models.Operator) error // GetOperator returns the operator with the given ID. GetOperator(ctx context.Context, operator *models.Operator) error // ListOperators returns a list of operators. ListOperators(ctx context.Context, pagination *models.Pagination[models.Operator]) error // DeleteOperator deletes the operator with the given ID. DeleteOperator(ctx context.Context, operator *models.Operator) error }
Operators is the interface that wraps the methods to access data.
type Repositories ¶
Repositories is the interface that wraps the methods to access data.
type Systems ¶
type Systems interface { // CreateSystem creates a new system. CreateSystem(ctx context.Context, system *models.System) error // UpdateSystem updates a system. UpdateSystem(ctx context.Context, system *models.System) error // GetSystem retrieves a system by its ID. GetSystem(ctx context.Context, system *models.System) error // ListSystems retrieves all systems. ListSystems(ctx context.Context, pagination *models.Pagination[models.System]) error // DeleteSystem deletes a system by its ID. DeleteSystem(ctx context.Context, id uuid.UUID) error }
Systems is the interface that wraps the methods to access data.
type Teams ¶
type Teams interface { // CreateTeam creates a new team. CreateTeam(ctx context.Context, team *models.Team) error // GetTeam returns the team with the given id. GetTeam(ctx context.Context, team *models.Team) error // DeleteTeam deletes the team with the given id. DeleteTeam(ctx context.Context, team *models.Team) error // ListTeams returns all teams. ListTeams(ctx context.Context, pagination *models.Pagination[models.Team]) error }
Teams is the interface that wraps the methods to access data.
type Users ¶
type Users interface { // CreateUser creates a new user. CreateUser(ctx context.Context, user *models.User) error // UpdateUser updates an existing user. UpdateUser(ctx context.Context, user *models.User) error // GetUser returns the user with the given ID. GetUser(ctx context.Context, user *models.User) error // ListUsers returns a list of users. ListUsers(ctx context.Context, pagination models.Pagination[models.User]) (models.Pagination[models.User], error) // DeleteUser deletes the user with the given ID. DeleteUser(ctx context.Context, user *models.User) error }
Users ...
Click to show internal directories.
Click to hide internal directories.