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
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 NewApiKeyService ¶
func NewApiKeyService(config ApiKeyServiceConfig) *ApiKeyService
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 ¶
Click to show internal directories.
Click to hide internal directories.