Documentation ¶
Index ¶
- func ClearConfig(interactive bool)
- func DeleteConfig(serverName string) error
- func Exec(command Command) error
- func Export(serverName string) error
- func GetAllServerIds() []string
- func GetConfig(serverId string, excludeRefreshableTokens bool) (*config.ServerDetails, error)
- func Import(serverToken string) error
- func ShowConfig(serverName string) error
- func Use(serverId string) error
- type Command
- type ConfigCommand
- func (cc *ConfigCommand) CommandName() string
- func (cc *ConfigCommand) Config() error
- func (cc *ConfigCommand) Run() error
- func (cc *ConfigCommand) ServerDetails() (*config.ServerDetails, error)
- func (cc *ConfigCommand) SetDefaultDetails(defaultDetails *config.ServerDetails) *ConfigCommand
- func (cc *ConfigCommand) SetDetails(details *config.ServerDetails) *ConfigCommand
- func (cc *ConfigCommand) SetEncPassword(encPassword bool) *ConfigCommand
- func (cc *ConfigCommand) SetInteractive(interactive bool) *ConfigCommand
- func (cc *ConfigCommand) SetServerId(serverId string) *ConfigCommand
- func (cc *ConfigCommand) SetUseBasicAuthOnly(useBasicAuthOnly bool) *ConfigCommand
- type ConfigCommandConfiguration
- type CurlCommand
- func (curlCmd *CurlCommand) GetCmd() *exec.Cmd
- func (curlCmd *CurlCommand) GetEnv() map[string]string
- func (curlCmd *CurlCommand) GetErrWriter() io.WriteCloser
- func (curlCmd *CurlCommand) GetServerDetails() (*config.ServerDetails, error)
- func (curlCmd *CurlCommand) GetStdWriter() io.WriteCloser
- func (curlCmd *CurlCommand) Run() error
- func (curlCmd *CurlCommand) ServerDetails() (*config.ServerDetails, error)
- func (curlCmd *CurlCommand) SetArguments(arguments []string) *CurlCommand
- func (curlCmd *CurlCommand) SetExecutablePath(executablePath string) *CurlCommand
- func (curlCmd *CurlCommand) SetServerDetails(serverDetails *config.ServerDetails) *CurlCommand
- func (curlCmd *CurlCommand) SetUrl(url string) *CurlCommand
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ClearConfig ¶
func ClearConfig(interactive bool)
func DeleteConfig ¶
func GetAllServerIds ¶
func GetAllServerIds() []string
func GetConfig ¶
func GetConfig(serverId string, excludeRefreshableTokens bool) (*config.ServerDetails, error)
func ShowConfig ¶
Types ¶
type Command ¶ added in v1.5.0
type Command interface { // Runs the command Run() error // Returns the Server details. The usage report is sent to this server. ServerDetails() (*config.ServerDetails, error) // The command name for the usage report. CommandName() string }
type ConfigCommand ¶
type ConfigCommand struct {
// contains filtered or unexported fields
}
func NewConfigCommand ¶
func NewConfigCommand() *ConfigCommand
func (*ConfigCommand) CommandName ¶
func (cc *ConfigCommand) CommandName() string
func (*ConfigCommand) Config ¶
func (cc *ConfigCommand) Config() error
func (*ConfigCommand) Run ¶
func (cc *ConfigCommand) Run() error
func (*ConfigCommand) ServerDetails ¶
func (cc *ConfigCommand) ServerDetails() (*config.ServerDetails, error)
func (*ConfigCommand) SetDefaultDetails ¶
func (cc *ConfigCommand) SetDefaultDetails(defaultDetails *config.ServerDetails) *ConfigCommand
func (*ConfigCommand) SetDetails ¶
func (cc *ConfigCommand) SetDetails(details *config.ServerDetails) *ConfigCommand
func (*ConfigCommand) SetEncPassword ¶
func (cc *ConfigCommand) SetEncPassword(encPassword bool) *ConfigCommand
func (*ConfigCommand) SetInteractive ¶
func (cc *ConfigCommand) SetInteractive(interactive bool) *ConfigCommand
func (*ConfigCommand) SetServerId ¶
func (cc *ConfigCommand) SetServerId(serverId string) *ConfigCommand
func (*ConfigCommand) SetUseBasicAuthOnly ¶
func (cc *ConfigCommand) SetUseBasicAuthOnly(useBasicAuthOnly bool) *ConfigCommand
type ConfigCommandConfiguration ¶
type ConfigCommandConfiguration struct { ServerDetails *config.ServerDetails Interactive bool EncPassword bool BasicAuthOnly bool }
type CurlCommand ¶ added in v1.5.0
type CurlCommand struct {
// contains filtered or unexported fields
}
func NewCurlCommand ¶ added in v1.5.0
func NewCurlCommand() *CurlCommand
func (*CurlCommand) GetCmd ¶ added in v1.5.0
func (curlCmd *CurlCommand) GetCmd() *exec.Cmd
func (*CurlCommand) GetEnv ¶ added in v1.5.0
func (curlCmd *CurlCommand) GetEnv() map[string]string
func (*CurlCommand) GetErrWriter ¶ added in v1.5.0
func (curlCmd *CurlCommand) GetErrWriter() io.WriteCloser
func (*CurlCommand) GetServerDetails ¶ added in v1.5.0
func (curlCmd *CurlCommand) GetServerDetails() (*config.ServerDetails, error)
Returns server details
func (*CurlCommand) GetStdWriter ¶ added in v1.5.0
func (curlCmd *CurlCommand) GetStdWriter() io.WriteCloser
func (*CurlCommand) Run ¶ added in v1.5.0
func (curlCmd *CurlCommand) Run() error
func (*CurlCommand) ServerDetails ¶ added in v1.5.0
func (curlCmd *CurlCommand) ServerDetails() (*config.ServerDetails, error)
func (*CurlCommand) SetArguments ¶ added in v1.5.0
func (curlCmd *CurlCommand) SetArguments(arguments []string) *CurlCommand
func (*CurlCommand) SetExecutablePath ¶ added in v1.5.0
func (curlCmd *CurlCommand) SetExecutablePath(executablePath string) *CurlCommand
func (*CurlCommand) SetServerDetails ¶ added in v1.5.0
func (curlCmd *CurlCommand) SetServerDetails(serverDetails *config.ServerDetails) *CurlCommand
func (*CurlCommand) SetUrl ¶ added in v1.5.0
func (curlCmd *CurlCommand) SetUrl(url string) *CurlCommand
Click to show internal directories.
Click to hide internal directories.