ssh

package
v1.7.3 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Key

type Key struct {
	Managed bool
	Value   string
	User    string
	Host    string
}

func ParseKey

func ParseKey(line string, managed bool) (Key, error)

func (Key) String

func (k Key) String() string

type KeySorter

type KeySorter []Key

func (KeySorter) Len

func (s KeySorter) Len() int

func (KeySorter) Less

func (s KeySorter) Less(a, b int) bool

func (KeySorter) Swap

func (s KeySorter) Swap(a, b int)

type KeysReader

type KeysReader interface {
	ReadKeys(filename string) (*set.Set[Key], error)
}

func NewKeysReader

func NewKeysReader() KeysReader

Jump to

Keyboard shortcuts

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