apikeysservice

package
v1.0.47 Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2025 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

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 Delete

func Delete(ctx context.Context, apikeyId string, identity *identitymodels.Identity) (bool, error)

func DeleteForUser

func DeleteForUser(ctx context.Context, apikeyId string, identity *identitymodels.Identity) (bool, error)

func UpdateLastUsed

func UpdateLastUsed(ctx context.Context, apikeyId string, identifier string) error

func VerifyApiKey

func VerifyApiKey(ctx context.Context, apikey string) (apicontracts.ApiKey, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL