sshconfig

package
v0.1.13 Latest Latest
Warning

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

Go to latest
Published: May 16, 2024 License: MIT Imports: 16 Imported by: 0

Documentation

Overview

Package sshconfig can parse a SSH config file into a list of endpoints.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseFile

func ParseFile(path string, seed []*wishlist.Endpoint) ([]*wishlist.Endpoint, error)

PraseFile reads and parses the file in the given path.

func ParseReader

func ParseReader(r NamedReader, seed []*wishlist.Endpoint) ([]*wishlist.Endpoint, error)

ParseReader reads and parses the given reader.

Types

type NamedReader

type NamedReader interface {
	io.Reader
	Name() string
}

NamedReader is an io.Reader that also has a name, usually a os.File.

Jump to

Keyboard shortcuts

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