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

Function StoreForFormat

cmd/sops/common/common.go:174–180  ·  view source on GitHub ↗

StoreForFormat returns the correct format-specific implementation of the Store interface given the format.

(format Format, c *config.StoresConfig)

Source from the content-addressed store, hash-verified

172// StoreForFormat returns the correct format-specific implementation
173// of the Store interface given the format.
174func StoreForFormat(format Format, c *config.StoresConfig) Store {
175 storeConst, found := storeConstructors[format]
176 if !found {
177 storeConst = storeConstructors[Binary] // default
178 }
179 return storeConst(c)
180}
181
182// DefaultStoreForPath returns the correct format-specific implementation
183// of the Store interface given the path to a file

Callers 3

DataWithFormatFunction · 0.92
DefaultStoreForPathFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected