host

package
v0.0.0-...-a70f80b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 13, 2022 License: GPL-3.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Host

type Host struct {
	config.HostParams

	URL    *url.URL
	Config *config.Config
	// contains filtered or unexported fields
}

func NewHost

func NewHost(hostURL *url.URL, conf *config.Config) (*Host, error)

func Parse

func Parse(hostURL *url.URL, conf *config.Config) (host *Host, err error)

func (*Host) Addr

func (h *Host) Addr() string

func (*Host) GetJumpHost

func (h *Host) GetJumpHost() (_ *Host, err error)

func (*Host) SSHClientConfig

func (h *Host) SSHClientConfig() (sshConf *ssh.ClientConfig)

type TemplateContext

type TemplateContext struct {
	ShellUser string
	User      string
	Host      string
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL