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

Function Data

decrypt/decrypt.go:77–80  ·  view source on GitHub ↗

Data is a helper that takes encrypted data and a format string, decrypts the data and returns its cleartext in an []byte. The format string can be `json`, `yaml`, `ini`, `dotenv` or `binary`. If the format string is empty, binary format is assumed.

(data []byte, format string)

Source from the content-addressed store, hash-verified

75// The format string can be `json`, `yaml`, `ini`, `dotenv` or `binary`.
76// If the format string is empty, binary format is assumed.
77func Data(data []byte, format string) (cleartext []byte, err error) {
78 formatFmt := FormatFromString(format)
79 return DataWithFormat(data, formatFmt)
80}

Callers

nothing calls this directly

Calls 2

FormatFromStringFunction · 0.85
DataWithFormatFunction · 0.85

Tested by

no test coverage detected