cmd

package
v0.0.0-...-d92abce Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2018 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ProgramVersion string
View Source
var RootCmd = &cobra.Command{
	Use:   "claptrap",
	Short: "Fintech toolkit",
	Long:  `Fintech aytomation toolkit, can be used as CLI and as a server`,
}

RootCmd represents the base command when called without any subcommands

View Source
var SecretPath string
View Source
var SecretValue string
View Source
var UnsealKey string
View Source
var VaultAddr string

Functions

func Execute

func Execute()

Execute adds all child commands to the root command sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.

func GetMinerStatistic

func GetMinerStatistic() (retVal string, err error)

func GetStatisticsTCP

func GetStatisticsTCP()

func UserHomeDir

func UserHomeDir() string

Types

type VaultSettings

type VaultSettings struct {
	VaultURL string `json:"vaulturl"`
	Secret   string `json:"secret"`
	Token    string `json:"token"`
}

Jump to

Keyboard shortcuts

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