Documentation ¶
Index ¶
- type APIKeyManager
- func (a *APIKeyManager) Check(ctx context.Context, apikey string) (*bffv1beta1.APIKey, error)
- func (a *APIKeyManager) Create(ctx context.Context, nickname string) (string, error)
- func (a *APIKeyManager) Delete(ctx context.Context, nickname string) error
- func (a *APIKeyManager) List(ctx context.Context) ([]*bffv1beta1.APIKey, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type APIKeyManager ¶
type APIKeyManager struct {
// contains filtered or unexported fields
}
Provides functionality around interacting with api keys.
func NewAPIKey ¶
func NewAPIKey(bff bffv1beta1connect.BFFServiceClient) *APIKeyManager
func (*APIKeyManager) Check ¶
func (a *APIKeyManager) Check(ctx context.Context, apikey string) (*bffv1beta1.APIKey, error)
func (*APIKeyManager) Delete ¶
func (a *APIKeyManager) Delete(ctx context.Context, nickname string) error
func (*APIKeyManager) List ¶
func (a *APIKeyManager) List(ctx context.Context) ([]*bffv1beta1.APIKey, error)
Click to show internal directories.
Click to hide internal directories.