ssh

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config map[string]string

Config encapsulates the translation of SSH hostname aliases.

func ParseConfig

func ParseConfig() Config

ParseConfig constructs a map of SSH hostname aliases based on user and system configuration files.

func (Config) Translator

func (m Config) Translator() func(*url.URL) *url.URL

Translator returns a function that applies hostname aliases to URLs.

Jump to

Keyboard shortcuts

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