wshfs

package
v0.14.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 3, 2026 License: Apache-2.0 Imports: 11 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	RemoteFileTransferSizeLimit = 32 * 1024 * 1024
	DefaultTimeout              = 30 * time.Second
	FileMode                    = os.FileMode(0644)
	DirMode                     = os.FileMode(0755) | os.ModeDir
	RecursiveRequiredError      = "recursive flag must be set for directory operations"
	MergeRequiredError          = "directory already exists at %q, set overwrite flag to delete the existing contents or set merge flag to merge the contents"
	OverwriteRequiredError      = "file already exists at %q, set overwrite flag to delete the existing file"
)

Variables

View Source
var RpcClient *wshutil.WshRpc

This needs to be set by whoever initializes the client, either main-server or wshcmd-connserver

Functions

func Append added in v0.14.0

func Append(ctx context.Context, data wshrpc.FileData) error

func Copy added in v0.14.0

func Delete added in v0.14.0

func Join added in v0.14.0

func Join(ctx context.Context, path string, parts ...string) (*wshrpc.FileInfo, error)

func ListEntries added in v0.14.0

func ListEntries(ctx context.Context, path string, opts *wshrpc.FileListOpts) ([]*wshrpc.FileInfo, error)

func ListEntriesStream added in v0.14.0

func Mkdir added in v0.14.0

func Mkdir(ctx context.Context, path string) error

func Move added in v0.14.0

func PutFile added in v0.14.0

func PutFile(ctx context.Context, data wshrpc.FileData) error

func Read added in v0.14.0

func Read(ctx context.Context, data wshrpc.FileData) (*wshrpc.FileData, error)

func ReadStream added in v0.14.0

func ReadStream(ctx context.Context, data wshrpc.FileData) <-chan wshrpc.RespOrErrorUnion[wshrpc.FileData]

func Stat added in v0.14.0

func Stat(ctx context.Context, path string) (*wshrpc.FileInfo, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL