MCPcopy Index your code
hub / github.com/getsops/sops / ToMap

Method ToMap

pgp/keysource.go:484–490  ·  view source on GitHub ↗

ToMap converts the MasterKey into a map for serialization purposes.

()

Source from the content-addressed store, hash-verified

482
483// ToMap converts the MasterKey into a map for serialization purposes.
484func (key MasterKey) ToMap() map[string]interface{} {
485 out := make(map[string]interface{})
486 out["fp"] = key.Fingerprint
487 out["created_at"] = key.CreationDate.UTC().Format(time.RFC3339)
488 out["enc"] = key.EncryptedKey
489 return out
490}
491
492// TypeToIdentifier returns the string identifier for the MasterKey type.
493func (key *MasterKey) TypeToIdentifier() string {

Callers

nothing calls this directly

Calls 1

FormatMethod · 0.80

Tested by

no test coverage detected