Documentation ¶
Index ¶
- type CreateAPIKeyParams
- type DBTX
- type Querier
- type Queries
- func (q *Queries) Create(ctx context.Context, name string) (*ServiceAccount, error)
- func (q *Queries) CreateAPIKey(ctx context.Context, arg CreateAPIKeyParams) error
- func (q *Queries) Delete(ctx context.Context, id uuid.UUID) error
- func (q *Queries) GetByApiKey(ctx context.Context, apiKey string) (*ServiceAccount, error)
- func (q *Queries) GetByIDs(ctx context.Context, ids []uuid.UUID) ([]*ServiceAccount, error)
- func (q *Queries) GetByName(ctx context.Context, name string) (*ServiceAccount, error)
- func (q *Queries) List(ctx context.Context) ([]*ServiceAccount, error)
- func (q *Queries) RemoveApiKeysFromServiceAccount(ctx context.Context, serviceAccountID uuid.UUID) error
- func (q *Queries) WithTx(tx pgx.Tx) *Queries
- type ServiceAccount
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CreateAPIKeyParams ¶
type Querier ¶
type Querier interface { Create(ctx context.Context, name string) (*ServiceAccount, error) CreateAPIKey(ctx context.Context, arg CreateAPIKeyParams) error Delete(ctx context.Context, id uuid.UUID) error GetByApiKey(ctx context.Context, apiKey string) (*ServiceAccount, error) GetByIDs(ctx context.Context, ids []uuid.UUID) ([]*ServiceAccount, error) GetByName(ctx context.Context, name string) (*ServiceAccount, error) List(ctx context.Context) ([]*ServiceAccount, error) RemoveApiKeysFromServiceAccount(ctx context.Context, serviceAccountID uuid.UUID) error }
type Queries ¶
type Queries struct {
// contains filtered or unexported fields
}
func (*Queries) CreateAPIKey ¶
func (q *Queries) CreateAPIKey(ctx context.Context, arg CreateAPIKeyParams) error
func (*Queries) GetByApiKey ¶
func (*Queries) RemoveApiKeysFromServiceAccount ¶
type ServiceAccount ¶
Click to show internal directories.
Click to hide internal directories.