MCPcopy Index your code
hub / github.com/devspace-sh/devspace / Write

Method Write

pkg/devspace/server/logs.go:39–49  ·  view source on GitHub ↗
(p []byte)

Source from the content-addressed store, hash-verified

37}
38
39func (ws *wsStream) Write(p []byte) (int, error) {
40 ws.writeMutex.Lock()
41 defer ws.writeMutex.Unlock()
42
43 err := ws.WebSocket.WriteMessage(websocket.BinaryMessage, p)
44 if err != nil {
45 return 0, err
46 }
47
48 return len(p), nil
49}
50
51func (ws *wsStream) Read(p []byte) (int, error) {
52 ws.readMutex.Lock()

Callers 15

internalDeployMethod · 0.45
BuildMethod · 0.45
RenderMethod · 0.45
CallPluginExecutableFunction · 0.45
exitWithErrorMethod · 0.45
MakeSSHKeyPairFunction · 0.45
WriteValuesMethod · 0.45
InstallChartMethod · 0.45
versionMethod · 0.45
returnConfigMethod · 0.45
requestMethod · 0.45

Calls 2

LockMethod · 0.80
UnlockMethod · 0.80

Tested by 1

TestParseCommandsFunction · 0.36