MCPcopy
hub / github.com/superplanehq/superplane / Read

Method Read

pkg/components/ssh/ssh_test.go:74–84  ·  view source on GitHub ↗
(path string)

Source from the content-addressed store, hash-verified

72}
73
74func (f *fakeFilesContext) Read(path string) (io.ReadCloser, error) {
75 f.readPath = path
76 if f.readErr != nil {
77 return nil, f.readErr
78 }
79 content, ok := f.files[path]
80 if !ok {
81 return nil, fmt.Errorf("file %q not found", path)
82 }
83 return io.NopCloser(strings.NewReader(content)), nil
84}
85
86func authConfig(method string, privateKey, password any) map[string]any {
87 m := map[string]any{"authMethod": method}

Callers

nothing calls this directly

Calls 1

ErrorfMethod · 0.80

Tested by

no test coverage detected