mirror of
https://github.com/portainer/portainer.git
synced 2025-07-24 15:59:41 +02:00
- added new method to get api key by ID - added tests
This commit is contained in:
parent
7cc28b10a0
commit
5839f96787
5 changed files with 56 additions and 0 deletions
|
@ -11,6 +11,7 @@ import (
|
|||
type APIKeyService interface {
|
||||
HashRaw(rawKey string) []byte
|
||||
GenerateApiKey(user portainer.User, description string) (string, *portainer.APIKey, error)
|
||||
GetAPIKey(apiKeyID portainer.APIKeyID) (*portainer.APIKey, error)
|
||||
GetAPIKeys(userID portainer.UserID) ([]portainer.APIKey, error)
|
||||
GetDigestUserAndKey(digest []byte) (portainer.User, portainer.APIKey, error)
|
||||
UpdateAPIKey(apiKey *portainer.APIKey) error
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue