user

package
v1.6.2 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2025 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package user describes the methods to handle users needed for webauthn.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Repository

type Repository interface {
	GetOrCreateByName(ctx context.Context, name string) (*user.User, error)
	GetByName(ctx context.Context, name string) (*user.User, error)
	Get(ctx context.Context, id []byte) (*user.User, error)
	Create(ctx context.Context, name string, displayName string) (*user.User, error)
	AddCredential(ctx context.Context, id []byte, credential *webauthn.Credential) error
	UpdateCredential(ctx context.Context, credential *webauthn.Credential) error
	RemoveCredential(ctx context.Context, id []byte, credentialID []byte) error
}

Repository defines the user methods needed for webauthn.

Jump to

Keyboard shortcuts

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