Documentation ¶
Index ¶
- type ApiKeyService
- func (s *ApiKeyService) Generate(keyType apikey.ApiKeyType, name string) (string, error)
- func (s *ApiKeyService) IsProjectApiKey(apiKey string) bool
- func (s *ApiKeyService) IsValidApiKey(apiKey string) bool
- func (s *ApiKeyService) ListClientKeys() ([]*apikey.ApiKey, error)
- func (s *ApiKeyService) Revoke(name string) error
- type ApiKeyServiceConfig
- type IApiKeyService
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ApiKeyService ¶
type ApiKeyService struct {
// contains filtered or unexported fields
}
func (*ApiKeyService) Generate ¶
func (s *ApiKeyService) Generate(keyType apikey.ApiKeyType, name string) (string, error)
func (*ApiKeyService) IsProjectApiKey ¶
func (s *ApiKeyService) IsProjectApiKey(apiKey string) bool
func (*ApiKeyService) IsValidApiKey ¶
func (s *ApiKeyService) IsValidApiKey(apiKey string) bool
func (*ApiKeyService) ListClientKeys ¶
func (s *ApiKeyService) ListClientKeys() ([]*apikey.ApiKey, error)
func (*ApiKeyService) Revoke ¶
func (s *ApiKeyService) Revoke(name string) error
type ApiKeyServiceConfig ¶
type IApiKeyService ¶ added in v0.12.0
type IApiKeyService interface { Generate(keyType apikey.ApiKeyType, name string) (string, error) IsProjectApiKey(apiKey string) bool IsValidApiKey(apiKey string) bool ListClientKeys() ([]*apikey.ApiKey, error) Revoke(name string) error }
func NewApiKeyService ¶
func NewApiKeyService(config ApiKeyServiceConfig) IApiKeyService
Click to show internal directories.
Click to hide internal directories.