MCPcopy Index your code
hub / github.com/wavetermdev/waveterm / parseConnection

Function parseConnection

pkg/remote/fileshare/wshfs/wshfs.go:35–41  ·  view source on GitHub ↗
(ctx context.Context, path string)

Source from the content-addressed store, hash-verified

33var RpcClientRouteId string
34
35func parseConnection(ctx context.Context, path string) (*connparse.Connection, error) {
36 conn, err := connparse.ParseURIAndReplaceCurrentHost(ctx, path)
37 if err != nil {
38 return nil, fmt.Errorf("error parsing connection %s: %w", path, err)
39 }
40 return conn, nil
41}
42
43func Read(ctx context.Context, data wshrpc.FileData) (*wshrpc.FileData, error) {
44 if data.Info == nil {

Callers 13

ReadFunction · 0.85
GetConnectionRouteIdFunction · 0.85
FileStreamFunction · 0.85
ListEntriesFunction · 0.85
ListEntriesStreamFunction · 0.85
StatFunction · 0.85
PutFileFunction · 0.85
AppendFunction · 0.85
MkdirFunction · 0.85
MoveFunction · 0.85
CopyFunction · 0.85
DeleteFunction · 0.85

Calls 1

Tested by

no test coverage detected