Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ExecSCPBytesFunc ¶
var ExecSCPBytes ExecSCPBytesFunc = func(bytes []byte, dest string) error { tmpfile, err := os.CreateTemp("", "") if err != nil { return err } defer os.Remove(tmpfile.Name()) if _, err = tmpfile.Write(bytes); err != nil { return err } if err = tmpfile.Close(); err != nil { return err } if err = ExecSCP(tmpfile.Name(), dest); err != nil { return err } return nil }
Click to show internal directories.
Click to hide internal directories.