Documentation
¶
Index ¶
- Constants
- Variables
- func CheckErr(err error)
- func CobraAddCommand(cobraRootCmd, parentCmd, cobraCmd CobraCommand)
- func CobraInit(cobraRootCmd CobraCommand)
- func ConfigEdit()
- func ConfigInit(allowClobber bool) string
- func ConfigString(header bool) string
- func Confirm(prompt string) bool
- func Expand(pathname string) string
- func Fatal(err error) error
- func Fatalf(format string, args ...interface{}) error
- func FormatJSON(v any) string
- func HexDump(data []byte) string
- func Init(name, version, configFile string)
- func IsDir(path string) bool
- func IsFile(pathname string) bool
- func OptionKey(cobraCmd CobraCommand, key string) string
- func OptionString(cobraCmd CobraCommand, name, flag, defaultValue, description string)
- func OptionSwitch(cobraCmd CobraCommand, name, flag, description string)
- func ProgramName() string
- func ProgramVersion() string
- func Shutdown()
- func TildePath(path string) (string, error)
- func ViperGet(key string) any
- func ViperGetBool(key string) bool
- func ViperGetInt(key string) int
- func ViperGetInt64(key string) int64
- func ViperGetString(key string) string
- func ViperGetStringMapString(key string) map[string]string
- func ViperGetStringSlice(key string) []string
- func ViperKey(key string) string
- func ViperSet(key string, value any)
- func ViperSetDefault(key string, value any)
- func Warning(format string, args ...interface{})
- type APIClient
- type CobraCommand
- type Daemon
- type Menu
- type Sendmail
Constants ¶
View Source
const DEFAULT_BIND_ADDRESS = "127.0.0.1"
View Source
const DEFAULT_HTTPS_PORT = 10080
View Source
const DEFAULT_SHUTDOWN_TIMEOUT_SECONDS = 5
View Source
const Version = "1.1.7"
Variables ¶
View Source
var Debug bool
View Source
var Verbose bool
Functions ¶
func CobraAddCommand ¶ added in v1.1.0
func CobraAddCommand(cobraRootCmd, parentCmd, cobraCmd CobraCommand)
func CobraInit ¶ added in v1.1.0
func CobraInit(cobraRootCmd CobraCommand)
func ConfigEdit ¶ added in v1.1.0
func ConfigEdit()
func ConfigInit ¶ added in v1.1.0
func ConfigString ¶ added in v1.1.0
func FormatJSON ¶ added in v1.1.0
func OptionKey ¶ added in v1.1.0
func OptionKey(cobraCmd CobraCommand, key string) string
func OptionString ¶ added in v1.1.0
func OptionString(cobraCmd CobraCommand, name, flag, defaultValue, description string)
func OptionSwitch ¶ added in v1.1.0
func OptionSwitch(cobraCmd CobraCommand, name, flag, description string)
func ProgramName ¶ added in v1.1.0
func ProgramName() string
func ProgramVersion ¶ added in v1.1.0
func ProgramVersion() string
func ViperGetBool ¶ added in v1.1.0
func ViperGetInt ¶ added in v1.1.0
func ViperGetInt64 ¶ added in v1.1.0
func ViperGetString ¶ added in v1.1.0
func ViperGetStringMapString ¶ added in v1.1.3
func ViperGetStringSlice ¶ added in v1.1.0
func ViperSetDefault ¶ added in v1.1.0
Types ¶
type APIClient ¶ added in v1.1.0
type APIClient interface {
Close()
Get(path string, response interface{}) (string, error)
Post(path string, request, response interface{}, headers *map[string]string) (string, error)
Put(path string, request, response interface{}, headers *map[string]string) (string, error)
Delete(path string, response interface{}) (string, error)
}
type CobraCommand ¶ added in v1.1.0
type CobraCommand interface {
}
type Daemon ¶
type Daemon struct {
Name string
Address string
Version string
Port int
// contains filtered or unexported fields
}
func NewWinexecServer ¶ added in v1.1.7
Click to show internal directories.
Click to hide internal directories.