Documentation
¶
Index ¶
- Variables
- func InitLogging()
- func LoadConfigs(iface Interface, configFile string)
- func MergeArrays(ov, nv reflect.Value) reflect.Value
- func MergeMaps(ov, nv reflect.Value)
- func MergeStructs(ov, nv reflect.Value)
- func ProcessAllOptions(i Interface) string
- func RunCommand(i Interface, command string) error
- type Cli
- func (c *Cli) Browse(uri string) error
- func (c *Cli) CommandLine() *kingpin.Application
- func (c *Cli) Delete(uri string, content string) (*http.Response, error)
- func (c *Cli) Get(uri string) (*http.Response, error)
- func (c *Cli) GetCommand(command string) func() error
- func (c *Cli) GetCommands() map[string]func() error
- func (c *Cli) GetDefaults() interface{}
- func (c *Cli) GetHttpClient() *http.Client
- func (c *Cli) GetOptions() interface{}
- func (c *Cli) GetTemplate(template string) string
- func (c *Cli) GetTimeout(msTimeout int, uri string) (*http.Response, error)
- func (c *Cli) Head(uri string) (*http.Response, error)
- func (c *Cli) Name() string
- func (c *Cli) NewOptions() interface{}
- func (c *Cli) Post(uri string, content string) (*http.Response, error)
- func (c *Cli) PostForm(uri string, content string) (*http.Response, error)
- func (c *Cli) PostTimeout(msTimeout int, uri, content string) (*http.Response, error)
- func (c *Cli) PostXML(uri string, content string) (*http.Response, error)
- func (c *Cli) Put(uri string, content string) (*http.Response, error)
- func (c *Cli) PutXML(uri string, content string) (*http.Response, error)
- func (c *Cli) RegisterAuthentication(hostname, user, password string)
- func (c *Cli) SetCommands(commands map[string]func() error)
- func (c *Cli) SetCookieFile(file string)
- func (c *Cli) SetDefaults(val interface{})
- func (c *Cli) SetHttpClient(client *http.Client)
- func (c *Cli) SetOptions(val interface{})
- func (c *Cli) SetTemplates(templates map[string]string)
- type Exit
- type Interface
- type NoChangesFound
- type Options
Constants ¶
This section is empty.
Variables ¶
View Source
var LOG_FORMAT = "%{color}%{time:2006-01-02T15:04:05.000Z07:00} %{level:-5s} [%{shortfile}]%{color:reset} %{message}"
Functions ¶
func InitLogging ¶
func InitLogging()
func LoadConfigs ¶ added in v1.0.0
func MergeStructs ¶ added in v1.0.3
func ProcessAllOptions ¶ added in v1.0.0
func RunCommand ¶ added in v1.0.0
Types ¶
type Cli ¶
type Cli struct {
// contains filtered or unexported fields
}
func (*Cli) CommandLine ¶ added in v1.0.0
func (c *Cli) CommandLine() *kingpin.Application
func (*Cli) GetCommand ¶ added in v1.0.0
func (*Cli) GetCommands ¶ added in v1.0.7
func (*Cli) GetDefaults ¶ added in v1.0.0
func (c *Cli) GetDefaults() interface{}
func (*Cli) GetHttpClient ¶ added in v1.0.0
func (*Cli) GetOptions ¶ added in v1.0.0
func (c *Cli) GetOptions() interface{}
func (*Cli) GetTemplate ¶
func (*Cli) GetTimeout ¶ added in v1.0.13
func (*Cli) NewOptions ¶ added in v1.0.0
func (c *Cli) NewOptions() interface{}
func (*Cli) PostTimeout ¶ added in v1.0.13
func (*Cli) RegisterAuthentication ¶ added in v1.0.12
func (*Cli) SetCommands ¶ added in v1.0.0
func (*Cli) SetCookieFile ¶ added in v1.0.2
func (*Cli) SetDefaults ¶ added in v1.0.0
func (c *Cli) SetDefaults(val interface{})
func (*Cli) SetHttpClient ¶ added in v1.0.0
func (*Cli) SetOptions ¶ added in v1.0.0
func (c *Cli) SetOptions(val interface{})
func (*Cli) SetTemplates ¶ added in v1.0.0
type Interface ¶ added in v1.0.0
type Interface interface { // SetCookieFile(string) *Cli // GetCookieFile(string) *Cli Name() string GetDefaults() interface{} NewOptions() interface{} GetOptions() interface{} SetOptions(interface{}) CommandLine() *kingpin.Application SetCommands(map[string]func() error) GetCommand(string) func() error }
type NoChangesFound ¶
type NoChangesFound struct{}
func (NoChangesFound) Error ¶
func (f NoChangesFound) Error() string
Click to show internal directories.
Click to hide internal directories.