keyline

package
v14.26.0 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2023 License: MIT Imports: 7 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
	Config *config.Config
}

func NewPrincipalKeyLine

func NewPrincipalKeyLine(keyId, principal string, config *config.Config) (*KeyLine, error)

func NewPublicKeyLine

func NewPublicKeyLine(id, publicKey string, config *config.Config) (*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