Documentation
¶
Overview ¶
Package migration reads third-party session exports without modifying them.
Index ¶
Constants ¶
View Source
const MaxBytes int64 = 32 << 20
View Source
const MaxEntries = 10000
View Source
const MaxFiles = 1024
View Source
const MaxIssues = 10000
Variables ¶
View Source
var ( ErrFormat = errors.New("unsupported or malformed migration format") ErrTooLarge = errors.New("migration input exceeds limit") ErrNoEntries = errors.New("no SSH entries found") ErrRead = errors.New("cannot read migration input") ErrEncrypted = errors.New("encrypted migration input is not supported") )
Functions ¶
This section is empty.
Types ¶
type Entry ¶
type Entry struct {
ID, Name, Address, User, Group string
Port int
Password, PrivateKey, Passphrase []byte `json:"-" yaml:"-"`
KeyPath string
Jumps []Hop
Issues []Issue
}
Secrets are transient bytes and must never be serialized to application metadata.
type Result ¶
type Source ¶
type Source string
const ( Xshell Source = "Xshell" MobaXterm Source = "MobaXterm" PuTTY Source = "PuTTY" WindTerm Source = "WindTerm" Electerm Source = "Electerm" Tabby Source = "Tabby" Netcatty Source = "Netcatty" Remmina Source = "Remmina" MRemoteNG Source = "mRemoteNG" WinSCP Source = "WinSCP" // Text is a host list of key=value lines, typed, pasted or read // from a file; it is not one of the clients Sources lists. Text Source = "Text" )
Click to show internal directories.
Click to hide internal directories.