Documentation ¶
Index ¶
- func Create(ctx context.Context, input *apicontracts.ApiKey, ...) (string, error)
- func CreateForAgent(ctx context.Context, input *apicontracts.AgentApiKeyModel) (string, error)
- func CreateOrRenew(ctx context.Context, req *apicontractsv2self.CreateOrRenewApikeyRequest) (*apicontractsv2self.CreateOrRenewApikeyResponse, error)
- func Delete(ctx context.Context, apikeyId string, identity *identitymodels.Identity) (bool, error)
- func DeleteForUser(ctx context.Context, apikeyId string, identity *identitymodels.Identity) (bool, error)
- func GetByFilter(ctx context.Context, filter *apicontracts.Filter) (*apicontracts.PaginatedResult[apicontracts.ApiKey], error)
- func UpdateLastUsed(ctx context.Context, apikeyId string, identifier string) error
- func VerifyApiKey(ctx context.Context, apikey string) (apicontracts.ApiKey, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Create ¶
func Create(ctx context.Context, input *apicontracts.ApiKey, identity *identitymodels.Identity) (string, error)
func CreateForAgent ¶
func CreateForAgent(ctx context.Context, input *apicontracts.AgentApiKeyModel) (string, error)
func CreateOrRenew ¶
func CreateOrRenew(ctx context.Context, req *apicontractsv2self.CreateOrRenewApikeyRequest) (*apicontractsv2self.CreateOrRenewApikeyResponse, error)
func DeleteForUser ¶
func GetByFilter ¶
func GetByFilter(ctx context.Context, filter *apicontracts.Filter) (*apicontracts.PaginatedResult[apicontracts.ApiKey], error)
func UpdateLastUsed ¶
func VerifyApiKey ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.