keyline

package
v0.0.0-...-7d5229d Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2019 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PublicKeyPrefix = "key"
	PrincipalPrefix = "username"
	SshOptions      = "no-port-forwarding,no-X11-forwarding,no-agent-forwarding,no-pty"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type KeyLine

type KeyLine struct {
	Id      string // This can be either an ID of a Key or username
	Value   string // This can be either a public key or a principal name
	Prefix  string
	RootDir string
}

func NewPrincipalKeyLine

func NewPrincipalKeyLine(keyId string, principal string, rootDir string) (*KeyLine, error)

func NewPublicKeyLine

func NewPublicKeyLine(id string, publicKey string, rootDir string) (*KeyLine, error)

func (*KeyLine) ToString

func (k *KeyLine) ToString() string

Jump to

Keyboard shortcuts

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