ssh

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2022 License: MIT Imports: 7 Imported by: 1

Documentation

Overview

Package ssh is a set of types and functions for parsing and applying a user's SSH hostname aliases.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Translator

type Translator interface {
	Translate(*url.URL) *url.URL
}

Translator is the interface that encapsulates the SSH hostname alias translate method.

func NewTranslator

func NewTranslator() Translator

NewTranslator constructs a map of SSH hostname aliases based on user and system configuration files. It returns a Translator to apply these mappings.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳