wshfs

package
v0.11.1 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2025 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var RpcClient *wshutil.WshRpc

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

Functions

This section is empty.

Types

type WshClient

type WshClient struct{}

func NewWshClient

func NewWshClient() *WshClient

func (WshClient) AppendFile

func (c WshClient) AppendFile(ctx context.Context, conn *connparse.Connection, data wshrpc.FileData) error

func (WshClient) CopyInternal added in v0.11.1

func (c WshClient) CopyInternal(ctx context.Context, srcConn, destConn *connparse.Connection, opts *wshrpc.FileCopyOpts) (bool, error)

func (WshClient) CopyRemote added in v0.11.1

func (c WshClient) CopyRemote(ctx context.Context, srcConn, destConn *connparse.Connection, _ fstype.FileShareClient, opts *wshrpc.FileCopyOpts) (bool, error)

func (WshClient) Delete

func (c WshClient) Delete(ctx context.Context, conn *connparse.Connection, recursive bool) error

func (WshClient) GetCapability added in v0.11.1

func (c WshClient) GetCapability() wshrpc.FileShareCapability

func (WshClient) GetConnectionType

func (c WshClient) GetConnectionType() string

func (WshClient) Join

func (c WshClient) Join(ctx context.Context, conn *connparse.Connection, parts ...string) (*wshrpc.FileInfo, error)

func (WshClient) ListEntries

func (c WshClient) ListEntries(ctx context.Context, conn *connparse.Connection, opts *wshrpc.FileListOpts) ([]*wshrpc.FileInfo, error)

func (WshClient) Mkdir

func (c WshClient) Mkdir(ctx context.Context, conn *connparse.Connection) error

func (WshClient) MoveInternal added in v0.11.1

func (c WshClient) MoveInternal(ctx context.Context, srcConn, destConn *connparse.Connection, opts *wshrpc.FileCopyOpts) error

func (WshClient) PutFile

func (c WshClient) PutFile(ctx context.Context, conn *connparse.Connection, data wshrpc.FileData) error

func (WshClient) Read

func (WshClient) ReadStream

func (WshClient) ReadTarStream

func (WshClient) Stat

Jump to

Keyboard shortcuts

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