commands

package
v0.0.0-...-01d1cd0 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2022 License: Apache-2.0 Imports: 20 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 AddUser

func AddUser(log *log.Logger, gqlConfig data.GraphQLConfig, newUser user.NewUser) error

AddUser handles the creation of users.

func GenToken

func GenToken(log *log.Logger, gqlConfig data.GraphQLConfig, email string, privateKeyFile string, algorithm string) error

GenToken generates a JWT for the specified user.

func GetUser

func GetUser(log *log.Logger, gqlConfig data.GraphQLConfig, email string) error

GetUser returns information about a user by email.

func KeyGen

func KeyGen() error

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

func Schema

func Schema(gqlConfig data.GraphQLConfig, config schema.Config) error

Schema handles the updating of the schema.

func Seed

func Seed(log *log.Logger, gqlConfig data.GraphQLConfig, config loader.Config) error

Seed handles loading the databse with a user and city data.

Types

This section is empty.

Jump to

Keyboard shortcuts

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