wshfs

package
v0.11.0-beta.5 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2025 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ThirtySeconds = 30 * 1000
)

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) Copy

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

func (WshClient) Delete

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

func (WshClient) GetConnectionType

func (c WshClient) GetConnectionType() string

func (WshClient) Join

func (c WshClient) Join(ctx context.Context, conn *connparse.Connection, parts ...string) (string, 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) Move

func (c WshClient) Move(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 (c WshClient) ReadTarStream(ctx context.Context, conn *connparse.Connection, opts *wshrpc.FileCopyOpts) <-chan wshrpc.RespOrErrorUnion[[]byte]

func (WshClient) Stat

Jump to

Keyboard shortcuts

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