commands

package
v0.3.4 Latest Latest
Warning

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

Go to latest
Published: May 11, 2021 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Overview

Package commands contains 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 KeyGen

func KeyGen() error

KeyGen creates a x509 private/public key for auth tokens.

func Migrate

func Migrate(cfg database.Config) error

Migrate creates the schema in the database.

func Seed

func Seed(cfg database.Config) error

Seed loads test data into the database.

func TokenGen

func TokenGen(traceID string, log *log.Logger, cfg database.Config, userID string, privateKeyFile string, algorithm string) error

TokenGen generates a JWT for the specified user.

func UserAdd

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

UserAdd adds new users into the database.

func Users

func Users(traceID string, log *log.Logger, cfg database.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