package
2.0.0-alpha.3
Repository: https://github.com/k0sproject/rig.git
Documentation: pkg.go.dev

# Functions

CreateTemp creates a new temporary file in the directory dir with a name built using the pattern, opens the file for reading and writing, and returns the resulting File.
NewFS returns a fs.FS compatible implementation for access to remote filesystems.
NewPosixFS returns a fs.FS implementation for a remote filesystem that uses POSIX commands for access.
NewProvider returns a new Repository.
NewRemoteFSService creates a new instance of Service with the provided remotefs Provider and runner.
NewWindowsFS returns a new fs.FS implementing filesystem for Windows targets.
PathError returns a fs.PathError with the given operation, path and error.
PathErrorf returns a fs.PathError with the given operation, path and error created using a sprintf style format string and arguments.
Upload a file to the remote host.

# 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

DefaultProvider is the default Repository for remote filesystem implementations.
ErrChecksumMismatch is returned when the checksum of the uploaded file does not match the local checksum.
ErrNotSupported is returned when a function is not supported on Windows.

# Structs

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.
PosixFS implements fs.FS for a remote filesystem that uses POSIX commands for access.
Provider is a factory for remote filesystem implementations.
Service provides a unified interface to interact with the filesystem on a remote host.
WinFS 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.
FS is a filesystem on the remote host.
Opener is a file opener interface, modeled after stdlib's OS package.
OS is a os/filesystem utility interface, these operations are modeled after stdlib's OS package.
RemoteFSProvider is a factory for remote filesystem implementations.
Sha256summer implementing struct can calculate sha256 checksum of a file.