package
0.18.7
Repository: https://github.com/k0sproject/rig.git
Documentation: pkg.go.dev

# Functions

NewFsys returns a fs.FS implementation for a remote filesystem.
NewPosixFsys returns a fs.FS implementation for a remote filesystem that uses POSIX commands for access.
NewWindowsFsys returns a new fs.FS implementing filesystem for Windows targets.

# Constants

OpClose Close operation.
OpCopyFrom CopyFrom operation.
OpCopyTo CopyTo operation.
OpOpen Open operation.
OpRead Read operation.
OpSeek Seek operation.
OpStat Stat operation.
OpWrite Write operation.

# Variables

ErrCommandFailed is returned when a remote command fails.

# Structs

ByteCounter is a simple io.Writer that counts the number of bytes written to it, to be used in conjunction with io.MultiWriter / io.TeeReader.
FileInfo implements fs.FileInfo for stat on remote files.
PosixDir implements fs.ReadDirFile for a remote directory.
PosixFile implements fs.File for a remote file.
PosixFsys implements fs.FS for a remote filesystem that uses POSIX commands for access.
WinFsys is a fs.FS implemen{.

# Interfaces

Copier is a file-like struct that can copy data to and from io.Reader and io.Writer.
File is a file in the remote filesystem.
Fsys is a filesystem on the remote host.