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

Method GetDataKey

sops.go:963–967  ·  view source on GitHub ↗

GetDataKey retrieves the data key from the first MasterKey in the Metadata's KeySources that's able to return it, using the local KeyService

()

Source from the content-addressed store, hash-verified

961// GetDataKey retrieves the data key from the first MasterKey in the Metadata's KeySources that's able to return it,
962// using the local KeyService
963func (m Metadata) GetDataKey() ([]byte, error) {
964 return m.GetDataKeyWithKeyServices([]keyservice.KeyServiceClient{
965 keyservice.NewLocalClient(),
966 }, nil)
967}
968
969// ToBytes converts a string, int, float or bool to a byte representation.
970func ToBytes(in interface{}) ([]byte, error) {

Callers 1

DataWithFormatFunction · 0.80

Calls 2

NewLocalClientFunction · 0.92

Tested by

no test coverage detected