MCPcopy
hub / github.com/getsops/sops / newMasterKey

Function newMasterKey

azkv/keysource.go:69–76  ·  view source on GitHub ↗

newMasterKey creates a new MasterKey from a URL, key name and version, setting the creation date to the current date.

(vaultURL string, keyName string, keyVersion string)

Source from the content-addressed store, hash-verified

67// newMasterKey creates a new MasterKey from a URL, key name and version,
68// setting the creation date to the current date.
69func newMasterKey(vaultURL string, keyName string, keyVersion string) *MasterKey {
70 return &MasterKey{
71 VaultURL: vaultURL,
72 Name: keyName,
73 Version: keyVersion,
74 CreationDate: time.Now().UTC(),
75 }
76}
77
78// NewMasterKey creates a new MasterKey from a URL, key name and (mandatory) version,
79// setting the creation date to the current date.

Callers 5

NewMasterKeyFunction · 0.85
NewMasterKeyFromURLFunction · 0.85
TestMasterKey_ToStringFunction · 0.85

Calls

no outgoing calls

Tested by 2

TestMasterKey_ToStringFunction · 0.68