sshman

package
v0.0.0-...-8dc1d63 Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2019 License: MIT Imports: 10 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 struct {
	Prefix string
	// contains filtered or unexported fields
}

Config .

func NewConfig

func NewConfig(l tool.ILogger, store tool.IStorage) Config

NewConfig .

func (Config) Login

func (c Config) Login(passphrase *validate.Passphrase)

Login .

func (Config) New

func (c Config) New(passphrase *validate.Passphrase)

New SSH item and generate a private key.

func (Config) Set

func (c Config) Set(passphrase *validate.Passphrase)

Set a new SSH item.

func (Config) Unset

func (c Config) Unset(passphrase *validate.Passphrase)

Unset .

func (Config) View

func (c Config) View(passphrase *validate.Passphrase)

View .

type SSHEntry

type SSHEntry struct {
	Name       string `json:"name"`
	Hostname   string `json:"hostname"`
	User       string `json:"user"`
	PrivateKey string `json:"private_key"`
}

SSHEntry represents an SSH entry.

type SSHFile

type SSHFile struct {
	Arr []SSHEntry `json:"entries"`
}

SSHFile is an SSH config file.

func (SSHFile) Decrypted

func (f SSHFile) Decrypted(passphrase *validate.Passphrase) SSHFile

Decrypted returns an decrypted object.

func (SSHFile) Encrypted

func (f SSHFile) Encrypted(passphrase *validate.Passphrase) SSHFile

Encrypted returns an encrypted object.

Jump to

Keyboard shortcuts

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