Documentation ¶
Index ¶
- func CloseConn(host, jump *ssh.Client)
- func ConnHost(jumpCLient *ssh.Client, sshAddr string) (net.Conn, *ssh.Client, error)
- func CreateSession(connect *ssh.Client) (*ssh.Session, io.Reader)
- func CreateSessionNoTrm(connect *ssh.Client) (*ssh.Session, io.Reader)
- func DialHost(sshConfig *ssh.ClientConfig, sshAddr string, sshPort int8) (*ssh.Client, error)
- func FireCommands(rmtHstSshClient *ssh.Client, commands ...string) (map[string]string, error)
- func LoadFile(flPth string) []byte
- func MakeNewClientConn(remoteHostConn net.Conn, jmpBxSshClient *ssh.Client, remoteAddr string, ...) (rmtHstSshClt, JumpSshClient *ssh.Client, err error)
- func SourceHostName() string
- type BastionAuth
- type DCDN
- type HJSShConfig
- func (hj *HJSShConfig) CreateSshClientHost() (*ssh.Client, error)
- func (hj *HJSShConfig) CreateSshClientJumpHost() (rmtHstSshClt, JumpSshClient *ssh.Client, err error)
- func (hj *HJSShConfig) DisplayHostDetails()
- func (hj *HJSShConfig) JumpOrNot() (host, jump *ssh.Client)
- func (hj *HJSShConfig) MapHostDc(hostname string) error
- type HostAuth
- type SShCfg
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FireCommands ¶
func MakeNewClientConn ¶
func SourceHostName ¶
func SourceHostName() string
Types ¶
type BastionAuth ¶
type HJSShConfig ¶
type HJSShConfig struct { HostAuth *HostAuth BastionAuth *BastionAuth SSHConfig *SShCfg Dx *DCDN }
func ParseCfg ¶
func ParseCfg(yamlBuf []byte) HJSShConfig
func (*HJSShConfig) CreateSshClientHost ¶
func (hj *HJSShConfig) CreateSshClientHost() (*ssh.Client, error)
func (*HJSShConfig) CreateSshClientJumpHost ¶
func (hj *HJSShConfig) CreateSshClientJumpHost() (rmtHstSshClt, JumpSshClient *ssh.Client, err error)
func (*HJSShConfig) DisplayHostDetails ¶
func (hj *HJSShConfig) DisplayHostDetails()
func (*HJSShConfig) JumpOrNot ¶
func (hj *HJSShConfig) JumpOrNot() (host, jump *ssh.Client)
func (*HJSShConfig) MapHostDc ¶
func (hj *HJSShConfig) MapHostDc(hostname string) error
takes a host name and gives out full domain name and host name
Click to show internal directories.
Click to hide internal directories.