ssh

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: May 26, 2025 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var HeadersStringList = [headersLen]string{"Name", "Host", "Port", "User", "Identity"}

Functions

func Connect

func Connect(host *Host)

Types

type Header uint8
const (
	NameHeader Header = iota
	HostHeader
	PortHeader
	UserHeader
	IdentityHeader
)

func (Header) String

func (h Header) String() string

type Host

type Host [headersLen]string

func LoadHosts

func LoadHosts(fp string) ([]*Host, error)

func (Host) Get

func (h Host) Get(header Header) string

func (*Host) Iter

func (h *Host) Iter() iter.Seq2[Header, string]

Jump to

Keyboard shortcuts

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