MCPcopy
hub / github.com/dmacvicar/terraform-provider-libvirt / Write

Method Write

internal/libvirt/dialers/sshcmd.go:372–378  ·  view source on GitHub ↗
(b []byte)

Source from the content-addressed store, hash-verified

370}
371
372func (c *sshCmdConn) Write(b []byte) (int, error) {
373 n, err := c.stdin.Write(b)
374 if err != nil {
375 return n, fmt.Errorf("ssh: %s", strings.Join(c.lastStderrLines(), "\n"))
376 }
377 return n, nil
378}
379
380func (c *sshCmdConn) Close() error {
381 c.cancel()

Calls 1

lastStderrLinesMethod · 0.95