Documentation
¶
Overview ¶
Package importer onboards an existing ~/.ssh into the manifest + inventory. It parses an ssh config (following relative Include directives) into profiles + hosts, fingerprints any private keys it can find into the inventory, and adopts non-canonical keys into the profiles/ layout. Profile assignment derives from an IdentityFile under profiles/<profile>/ or profiles/<category>/<profile>/ (which also carries the category over), else "imported".
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ImportResult ¶
type ImportResult struct {
Profiles map[string]int // profile -> host count (counts all parsed hosts)
KeysFound int
Adopted int
DryRun bool
// Skipped names each host left out because the manifest would refuse it
// (e.g. a hostname ssh itself refuses), with the reason.
Skipped []string
}
ImportResult summarizes an import run.
func (ImportResult) Format ¶
func (r ImportResult) Format() string
Format renders the human-readable import summary (mirrors ImportResult.format).