Versions in this module Expand all Collapse all v1 v1.13.0 Jul 1, 2026 Changes in this version + func Routes(api *API) []models.Route + type API struct + func NewAPI(service apiservices.ApiKeyService) *API + func (a *API) Create(ctx context.Context, actor *models.Actor, req types.CreateApiKeyRequest) (*types.CreateApiKeyResponse, error) + func (a *API) Delete(ctx context.Context, actor *models.Actor, id string) error + func (a *API) DeleteAllByOwner(ctx context.Context, actor *models.Actor, ownerType string, ownerID string) error + func (a *API) DeleteExpired(ctx context.Context) error + func (a *API) GetAll(ctx context.Context, actor *models.Actor, req types.GetApiKeysRequest) (*types.GetAllApiKeysResponse, error) + func (a *API) GetByID(ctx context.Context, actor *models.Actor, id string) (*types.ApiKey, error) + func (a *API) RecordLastRequest(ctx context.Context, id string, timestamp time.Time) (*types.ApiKey, error) + func (a *API) Update(ctx context.Context, actor *models.Actor, id string, ...) (*types.ApiKey, error) + func (a *API) Verify(ctx context.Context, req types.VerifyApiKeyRequest) (*types.VerifyApiKeyResult, error) + type ApiKeyPlugin struct + Api *API + func New(config types.ApiKeyPluginConfig) *ApiKeyPlugin + func (p *ApiKeyPlugin) Close() error + func (p *ApiKeyPlugin) Config() any + func (p *ApiKeyPlugin) DependsOn() []string + func (p *ApiKeyPlugin) Hooks() []models.Hook + func (p *ApiKeyPlugin) Init(ctx *models.PluginContext) error + func (p *ApiKeyPlugin) Metadata() models.PluginMetadata + func (p *ApiKeyPlugin) Migrations(provider string) []migrations.Migration + func (p *ApiKeyPlugin) Routes() []models.Route