auth

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2025 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrAccountNotFound = errors.New("account not found")
)
View Source
var (
	ErrUserNotFound = errors.New("user not found")
)

Functions

func AccountPath added in v0.4.0

func AccountPath(name string) (string, error)

func AccountRootPath added in v0.4.0

func AccountRootPath() (string, error)

func ListAccounts added in v0.4.0

func ListAccounts() ([]string, error)

func NewAccount

func NewAccount(name string) (string, []byte, error)

func NewUser added in v0.4.0

func NewUser(name string, accountSeed []byte, perms jwt.Permissions) (string, []byte, error)

func ReadAccount added in v0.4.0

func ReadAccount(name string) (string, []byte, error)

func ReadUser added in v0.4.0

func ReadUser(name string) (string, []byte, error)

func UserPath added in v0.4.0

func UserPath(name string) (string, error)

func WriteAccount added in v0.4.0

func WriteAccount(name string, accountJWT string, accountSeed []byte) error

func WriteUser added in v0.4.0

func WriteUser(name string, userJWT string, userSeed []byte) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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