MCPcopy Create free account
hub / github.com/belak/gitdir / PublicKey

Struct PublicKey

models/public_key.go:13–17  ·  view source on GitHub ↗

PublicKey is a wrapper around gossh.PublicKey to also store the comment. Note when using that pk.Marshal() handles the wire format, not the authorized keys format.

Source from the content-addressed store, hash-verified

11// Note when using that pk.Marshal() handles the wire format, not the
12// authorized keys format.
13type PublicKey struct {
14 ssh.PublicKey
15
16 Comment string
17}
18
19// ParsePublicKey will return a PublicKey from the given data.
20func ParsePublicKey(data []byte) (*PublicKey, error) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected