Documentation ¶
Overview ¶
Package keyline provides functionality for managing SSH key lines
Index ¶
Constants ¶
View Source
const ( // PublicKeyPrefix is the prefix used for public keys PublicKeyPrefix = "key" // PrincipalPrefix is the prefix used for principals PrincipalPrefix = "username" // SSHOptions specifies SSH options for key lines 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 }
KeyLine represents a struct used for SSH key management
func NewPrincipalKeyLine ¶
NewPrincipalKeyLine creates a new KeyLine for a principal
func NewPublicKeyLine ¶
NewPublicKeyLine creates a new KeyLine for a public key
Click to show internal directories.
Click to hide internal directories.