mirror of
https://github.com/grafana/grafana.git
synced 2025-07-29 03:42:21 +08:00

* remove api key endpoints * generate openapi specs * remove methods from mock service * remove ApiKeyDTO * generate openapi specs * remove apikey migration endpoints * remove unused function
14 lines
430 B
Go
14 lines
430 B
Go
package apikey
|
|
|
|
import (
|
|
"context"
|
|
)
|
|
|
|
type Service interface {
|
|
GetAllAPIKeys(ctx context.Context, orgID int64) ([]*APIKey, error)
|
|
AddAPIKey(ctx context.Context, cmd *AddCommand) (res *APIKey, err error)
|
|
GetApiKeyByName(ctx context.Context, query *GetByNameQuery) (res *APIKey, err error)
|
|
GetAPIKeyByHash(ctx context.Context, hash string) (*APIKey, error)
|
|
UpdateAPIKeyLastUsedDate(ctx context.Context, tokenID int64) error
|
|
}
|