Documentation
¶
Index ¶
- Constants
- Variables
- func ContextList()
- func ContextUse(ctxName string)
- func Copy(args []string, singleServer bool)
- func Exec(tagOrName, cmd string, singleServer bool)
- func InitConfig()
- func InteractiveLogin()
- func ServerAdd()
- func ServerDelete(serverNames []string)
- func ServerDetail(serverName string)
- func ServerList()
- func SingleLogin(name string)
- func UpdateContextTimestamp(_ *cobra.Command, _ []string)
- func UpdateContextTimestampTask(_ *cobra.Command, _ []string)
- type Basic
- type Context
- type Contexts
- type Server
- type Servers
Constants ¶
View Source
const ( KeyServers = "servers" KeyBasic = "basic" KeyTags = "tags" KeyContext = "context" KeyContextUse = "context_use" KeyContextUseTime = "context_use_time" KeyContextTimeout = "context_timeout" KeyContextAutoDowngrade = "context_auto_downgrade" )
Variables ¶
Functions ¶
func ContextList ¶ added in v1.3.0
func ContextList()
func ContextUse ¶ added in v1.3.0
func ContextUse(ctxName string)
func InitConfig ¶ added in v1.2.3
func InitConfig()
func InteractiveLogin ¶
func InteractiveLogin()
func ServerDelete ¶ added in v1.3.0
func ServerDelete(serverNames []string)
func ServerDetail ¶ added in v1.3.0
func ServerDetail(serverName string)
func ServerList ¶ added in v1.3.0
func ServerList()
func SingleLogin ¶
func SingleLogin(name string)
func UpdateContextTimestamp ¶ added in v1.3.0
func UpdateContextTimestampTask ¶ added in v1.3.1
Types ¶
type Basic ¶ added in v1.2.3
type Basic struct { User string `yaml:"user" mapstructure:"user"` Password string `yaml:"password" mapstructure:"password"` PrivateKey string `yaml:"privatekey" mapstructure:"privatekey"` PrivateKeyPassword string `yaml:"privatekey_password" mapstructure:"privatekey_password"` Port int `yaml:"port" mapstructure:"port"` Proxy string `yaml:"proxy" mapstructure:"proxy"` }
type Context ¶ added in v1.3.0
type Context struct {
ConfigPath string `yaml:"config_path" mapstructure:"config_path"`
}
type Server ¶
type Server struct { Name string `yaml:"name" mapstructure:"name"` Tags []string `yaml:"tags" mapstructure:"tags"` User string `yaml:"user" mapstructure:"user"` Password string `yaml:"password" mapstructure:"password"` PrivateKey string `yaml:"privatekey" mapstructure:"privatekey"` PrivateKeyPassword string `yaml:"privatekey_password" mapstructure:"privatekey_password"` Address string `yaml:"address" mapstructure:"address"` Port int `yaml:"port" mapstructure:"port"` Proxy string `yaml:"proxy" mapstructure:"proxy"` ServerAliveInterval time.Duration `yaml:"server_alive_interval" mapstructure:"server_alive_interval"` // contains filtered or unexported fields }
Click to show internal directories.
Click to hide internal directories.