Documentation ¶
Overview ¶
Package keys provides the domain needed for configuring public keys on a model for a user.
Public keys for a user are per model based and will not follow a user between models. Currently under the covers we do not model the public keys and their user (owner) as an old legacy implementation details of Juju 3.x.
Index ¶
Constants ¶
View Source
const ( // FingerprintHashAlgorithmMD5 FingerprintHashAlgorithmMD5 = FingerprintHashAlgorithm("md5") // FingerprintHashAlgorithmSHA256 FingerprintHashAlgorithmSHA256 = FingerprintHashAlgorithm("sha256") )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FingerprintHashAlgorithm ¶
type FingerprintHashAlgorithm string
FingerprintHashAlgorithm represents the hasing algorithm to computer the fingerprint of a public key.
func (FingerprintHashAlgorithm) String ¶
func (f FingerprintHashAlgorithm) String() string
type PublicKey ¶
type PublicKey struct { // Comment represents the comment string of the public key. May be empty if // the public key does not contain a comment. Comment string // FingerprintHash is the hasing algorithm used to computer the // [PublicKey.Fingerprint] FingerprintHash FingerprintHashAlgorithm // Fingerprint is the computed hash of an ssh public key. Fingerprint string // Key is the raw ssh public key. Key string }
PublicKey repreents an exploded view of an ssh public key. Specifically the components of a public key that the keymanager cares about in order to offer the functionality of the domain.
Click to show internal directories.
Click to hide internal directories.