wshfs

package
v0.14.0-beta.1 Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2026 License: Apache-2.0 Imports: 11 Imported by: 0

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