cmd

package
v0.0.0-...-d33b4e0 Latest Latest
Warning

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

Go to latest
Published: May 10, 2021 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrorMissingKeyAsArg    = errors.New("key not provided")
	ErrorMissingDecryptArgs = errors.New("expected key and RSA private key path")
	ErrorValuesConfirmation = errors.New("value has not been confirmed")
)

Error messages

Functions

func Execute

func Execute() error

Execute executes the root command.

Types

type Bolt

type Bolt struct {
	Path   string `json:"path"`
	Bucket string `json:"bucket"`
}

Bolt define bolt fields

type Config

type Config struct {
	Storage string `json:"storage"`
	Bolt    Bolt   `json:"bolt"`
	Redis   Redis  `json:"redis"`
	Public  string `json:"publicPath"`
}

Config define fields of JSON file of root configurations

type Redis

type Redis struct {
	Address  string `json:"address"`
	Password string `json:"password"`
	Db       int    `json:"db"`
}

Redis define redis fields

Jump to

Keyboard shortcuts

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