Documentation
¶
Index ¶
- type SSHProxy
- func (s *SSHProxy) Args() []string
- func (s *SSHProxy) Connect() error
- func (s *SSHProxy) Info() string
- func (s *SSHProxy) PopulateFromProxy(global *SSHProxy)
- func (s *SSHProxy) PrintStatus() string
- func (s *SSHProxy) String() string
- func (s *SSHProxy) TestConnection()
- func (s *SSHProxy) Validate() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SSHProxy ¶
type SSHProxy struct { // SSH configs. User string `yaml:"user"` Host string `yaml:"host"` Port int `yaml:"port"` Key string `yaml:"key"` // Config filepath. Filename string `yaml:"-"` // Name of SSHProxy config. Name string `yaml:"-"` // A bool to determine if the connection is ok. Connection bool `yaml:"-"` // Extra args. ExtraArgs string `yaml:"-"` }
SSHProxy is a type which contains configs for an ssh connection.
func NewGlobal ¶ added in v1.0.0
func NewGlobal() *SSHProxy
NewGlobal - Create a new SSHProxy object that will be used as a global config.
func (*SSHProxy) PopulateFromProxy ¶ added in v1.0.0
PopulateFromProxy - Fill in values from a global proxy object.
func (*SSHProxy) PrintStatus ¶
PrintStatus - Return connection status for an SSHProxy object.
func (*SSHProxy) TestConnection ¶
func (s *SSHProxy) TestConnection()
TestConnection - Test SSHProxy connection.
Click to show internal directories.
Click to hide internal directories.