summaryrefslogtreecommitdiff
path: root/vendor/github.com/dtylman/scp/README.md
diff options
context:
space:
mode:
authoropenshift-ci[bot] <75433959+openshift-ci[bot]@users.noreply.github.com>2021-08-02 17:15:54 +0000
committerGitHub <noreply@github.com>2021-08-02 17:15:54 +0000
commitbdbc21095a377a723df1f5c36fdc70273fe9a471 (patch)
tree107c854c67dd7baf8bd63b11f5404de8bd642f74 /vendor/github.com/dtylman/scp/README.md
parent0e2a7be0ec825449a1b95bd5df13e2519c67dcb4 (diff)
parent1d10ca739f3599b9bd746783ad15c8f51ce9f75c (diff)
downloadpodman-bdbc21095a377a723df1f5c36fdc70273fe9a471.tar.gz
podman-bdbc21095a377a723df1f5c36fdc70273fe9a471.tar.bz2
podman-bdbc21095a377a723df1f5c36fdc70273fe9a471.zip
Merge pull request #10828 from cdoern/scp
Created image scp feature
Diffstat (limited to 'vendor/github.com/dtylman/scp/README.md')
-rw-r--r--vendor/github.com/dtylman/scp/README.md42
1 files changed, 42 insertions, 0 deletions
diff --git a/vendor/github.com/dtylman/scp/README.md b/vendor/github.com/dtylman/scp/README.md
new file mode 100644
index 000000000..48cfefe02
--- /dev/null
+++ b/vendor/github.com/dtylman/scp/README.md
@@ -0,0 +1,42 @@
+# scp
+
+[![Go Report Card](https://goreportcard.com/badge/github.com/dtylman/scp)](https://goreportcard.com/report/github.com/dtylman/scp)
+
+A Simple `go` SCP client library.
+
+## Usage
+
+```go
+import (
+ "github.com/dtylman/scp"
+ "golang.org/x/crypto/ssh"
+)
+```
+
+## Sending Files
+
+Copies `/var/log/messages` to remote `/tmp/lala`:
+
+```go
+var sc* ssh.Client
+// establish ssh connection into sc here...
+n,err:=scp.CopyTo(sc, "/var/log/messages", "/tmp/lala")
+if err==nil{
+ fmt.Printf("Sent %v bytes",n)
+}
+```
+
+## Receiving Files
+
+Copies remote `/var/log/message` to local `/tmp/lala`:
+
+```go
+var sc* ssh.Client
+// establish ssh connection into sc here...
+n,err:=scp.CopyFrom(sc, "/var/log/message", "/tmp/lala")
+if err==nil{
+ fmt.Printf("Sent %v bytes",n)
+}
+```
+
+