MCPcopy
hub / github.com/smallstep/cli / ReadAll

Function ReadAll

utils/read.go:38–41  ·  view source on GitHub ↗

ReadAll returns a slice of bytes with the content of the given reader.

(r io.Reader)

Source from the content-addressed store, hash-verified

36
37// ReadAll returns a slice of bytes with the content of the given reader.
38func ReadAll(r io.Reader) ([]byte, error) {
39 b, err := io.ReadAll(r)
40 return b, errors.Wrap(err, "error reading data")
41}
42
43// ReadString reads one line from the given io.Reader.
44func ReadString(r io.Reader) (string, error) {

Callers 7

encryptActionFunction · 0.92
decryptActionFunction · 0.92
readPayloadFunction · 0.92
boxOpenActionFunction · 0.92
secretboxOpenActionFunction · 0.92
TestReadAllFunction · 0.85
ReadInputFunction · 0.85

Calls

no outgoing calls

Tested by 1

TestReadAllFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…