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

Function Stream

pkg/executablehash/executablehash.go:38–40  ·  view source on GitHub ↗

Stream opens a stream reading from the executable of the current process binary (os.Args[0] after path cleaning).

()

Source from the content-addressed store, hash-verified

36
37// Stream opens a stream reading from the executable of the current process binary (os.Args[0] after path cleaning).
38func Stream() (io.ReadCloser, error) {
39 return os.Open(filepath.Clean(os.Args[0])) //nolint:gosec // reading our own binary
40}
41
42// StreamByName opens a stream reading from an executable given its name
43func StreamByName(name string) (io.ReadCloser, error) {

Callers 1

GetFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected