MCPcopy Index your code
hub / github.com/cloudnative-pg/cloudnative-pg / StreamByName

Function StreamByName

pkg/executablehash/executablehash.go:43–45  ·  view source on GitHub ↗

StreamByName opens a stream reading from an executable given its name

(name string)

Source from the content-addressed store, hash-verified

41
42// StreamByName opens a stream reading from an executable given its name
43func StreamByName(name string) (io.ReadCloser, error) {
44 return os.Open(filepath.Clean(name))
45}
46
47// Get gets the hashcode of the executable of this binary
48func Get() (string, error) {

Callers 2

FileStreamMethod · 0.92
GetByNameFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected