Documentation ¶ Index ¶ type Host func New(ip string, port int, key []byte, user string) *Host func (h *Host) Bastion(b *Host) error func (h *Host) Close() func (h *Host) Connect() error func (h *Host) Reconnect() func (h *Host) Run(commands []string) error Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Host ¶ type Host struct { IP *net.IP Ssh *ssh.ClientConfig Client *ssh.Client Session *ssh.Session Port int User string } func New ¶ func New(ip string, port int, key []byte, user string) *Host func (*Host) Bastion ¶ func (h *Host) Bastion(b *Host) error func (*Host) Close ¶ func (h *Host) Close() func (*Host) Connect ¶ func (h *Host) Connect() error func (*Host) Reconnect ¶ func (h *Host) Reconnect() func (*Host) Run ¶ func (h *Host) Run(commands []string) error Source Files ¶ View all Source files bastion.go Click to show internal directories. Click to hide internal directories.