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

Function LoadEncryptedFile

cmd/sops/common/common.go:159–161  ·  view source on GitHub ↗

LoadEncryptedFile loads an encrypted SOPS file, returning a SOPS tree

(loader sops.EncryptedFileLoader, inputPath string)

Source from the content-addressed store, hash-verified

157
158// LoadEncryptedFile loads an encrypted SOPS file, returning a SOPS tree
159func LoadEncryptedFile(loader sops.EncryptedFileLoader, inputPath string) (*sops.Tree, error) {
160 return LoadEncryptedFileEx(loader, inputPath, false)
161}
162
163// NewExitError returns a cli.ExitError given an error (wrapped in a generic interface{})
164// and an exit code to represent the failure

Callers 6

cfsFunction · 0.92
DeleteFunction · 0.92
AddFunction · 0.92
updateFileFunction · 0.92
RunFunction · 0.92

Calls 1

LoadEncryptedFileExFunction · 0.85

Tested by

no test coverage detected