apikeys

package
v0.11.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 12, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

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

type ApiKeyServiceConfig struct {
	ApiKeyStore apikey.Store
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳