commands

package
v0.0.0-...-794a2a4 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2024 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Overview

Package commands contains the functionality for the set of commands currently supported by the CLI tooling.

Index

Constants

This section is empty.

Variables

View Source
var ErrHelp = errors.New("provided help")

ErrHelp provides context that help was given.

Functions

func GenKey

func GenKey() error

GenKey creates an x509 private/public key for auth tokens.

func GenToken

func GenToken(log *logger.Logger, dbConfig sqldb.Config, keyPath string, userID uuid.UUID, kid string) error

GenToken generates a JWT for the specified user.

func Migrate

func Migrate(cfg sqldb.Config) error

Migrate creates the schema in the database.

func Seed

func Seed(cfg sqldb.Config) error

Seed loads test data into the database.

func UserAdd

func UserAdd(log *logger.Logger, cfg sqldb.Config, name, email, password string) error

UserAdd adds new users into the database.

func Users

func Users(log *logger.Logger, cfg sqldb.Config, pageNumber string, rowsPerPage string) error

Users retrieves all users from the database.

Types

This section is empty.

Jump to

Keyboard shortcuts

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