Documentation
¶
Overview ¶
Package sshkeys parses supported public keys and stores the operator's authorized_keys.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RecognizedType ¶
RecognizedType includes obsolete types so account inspection can report exclusions.
Types ¶
type Key ¶
func Classify ¶
Classify excludes restricted, malformed and obsolete key entries rather than turning a restricted credential into an unrestricted one by removing options.
type Source ¶
type Source struct {
User string `json:"user"`
Path string `json:"path"`
Keys []Key `json:"keys"`
Excluded int `json:"excluded"`
Problem string `json:"problem,omitempty"`
}
Source contains only supported public keys. Problem distinguishes an incomplete observation from a successfully read source with no supported keys.
type Store ¶
type Store struct{ Path string }
Store uses the same directory lock for operator edits and the helper's disable guard. Locking the directory keeps the lock stable when authorized_keys is atomically replaced. External editors do not participate in this coordination.