cmd

package
v0.0.0-...-3dd0999 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2020 License: GPL-3.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Execute

func Execute(ls *app.LogSet, hash string)

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

func GetClient

func GetClient() (pb.FileStoreClient, error)

GetClient - return a connected client

func GetTagsAttrs

func GetTagsAttrs(flags *pflag.FlagSet) ([]string, map[string]string)

GetTagsAttrs - helper function to process commandline attributes and tags

Types

type ConfigStruct

type ConfigStruct struct {
	Server struct {
		HTTPAddr   string `mapstructure:"httpAddr"`
		LogLevel   string `mapstructure:"logLevel"`
		GRPCAddr   string `mapstructure:"grpcAddr"`
		Debug      bool   `mapstructure:"debug"`
		SigningKey string `mapstructure:"signingKey"`
	}
	Debug struct {
		ListingLimit int `mapstructure:"listingLimit"`
	}
	VMgr struct {
		DB struct {
			Host string `mapstructure:"host"`
			Port int    `mapstructure:"port"`
			Name string `mapstructure:"name"`
			User string `mapstructure:"user"`
			Pass string `mapstructure:"pass"`
		}
		Paths map[string]string `mapstructure:"paths"`
	}
}

ConfigStruct - The control structure holding user's config vars.

Directories

Path Synopsis
service

Jump to

Keyboard shortcuts

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