Documentation
¶
Overview ¶
Package bfsscp abstracts an SSH/SCP workflow
When imported, it registers both `scp://` and `ssh://` global scheme resolver and can be used like:
import (
"github.com/bsm/bfs"
_ "github.com/bsm/bfs/bfsscp"
)
func main() {
ctx := context.Background()
b, _ := bfs.Connect(ctx, "ssh://user:pass@hostname:22/path/to/root?tmpdir=%2Fcustom%2Ftmp")
f, _ := b.Open(ctx, "file/within/root.txt")
...
}
bfs.Connect supports the following query parameters:
tmpdir - custom temp dir
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.