Documentation
¶
Index ¶
- Variables
- type WshClient
- func (c WshClient) AppendFile(ctx context.Context, conn *connparse.Connection, data wshrpc.FileData) error
- func (c WshClient) CopyInternal(ctx context.Context, srcConn, destConn *connparse.Connection, ...) (bool, error)
- func (c WshClient) CopyRemote(ctx context.Context, srcConn, destConn *connparse.Connection, ...) (bool, error)
- func (c WshClient) Delete(ctx context.Context, conn *connparse.Connection, recursive bool) error
- func (c WshClient) GetCapability() wshrpc.FileShareCapability
- func (c WshClient) GetConnectionType() string
- func (c WshClient) Join(ctx context.Context, conn *connparse.Connection, parts ...string) (*wshrpc.FileInfo, error)
- func (c WshClient) ListEntries(ctx context.Context, conn *connparse.Connection, opts *wshrpc.FileListOpts) ([]*wshrpc.FileInfo, error)
- func (c WshClient) ListEntriesStream(ctx context.Context, conn *connparse.Connection, opts *wshrpc.FileListOpts) <-chan wshrpc.RespOrErrorUnion[wshrpc.CommandRemoteListEntriesRtnData]
- func (c WshClient) Mkdir(ctx context.Context, conn *connparse.Connection) error
- func (c WshClient) MoveInternal(ctx context.Context, srcConn, destConn *connparse.Connection, ...) error
- func (c WshClient) PutFile(ctx context.Context, conn *connparse.Connection, data wshrpc.FileData) error
- func (c WshClient) Read(ctx context.Context, conn *connparse.Connection, data wshrpc.FileData) (*wshrpc.FileData, error)
- func (c WshClient) ReadStream(ctx context.Context, conn *connparse.Connection, data wshrpc.FileData) <-chan wshrpc.RespOrErrorUnion[wshrpc.FileData]
- func (c WshClient) ReadTarStream(ctx context.Context, conn *connparse.Connection, opts *wshrpc.FileCopyOpts) <-chan wshrpc.RespOrErrorUnion[iochantypes.Packet]
- func (c WshClient) Stat(ctx context.Context, conn *connparse.Connection) (*wshrpc.FileInfo, error)
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 (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) GetCapability ¶ added in v0.11.1
func (c WshClient) GetCapability() wshrpc.FileShareCapability
func (WshClient) GetConnectionType ¶
func (WshClient) ListEntries ¶
func (c WshClient) ListEntries(ctx context.Context, conn *connparse.Connection, opts *wshrpc.FileListOpts) ([]*wshrpc.FileInfo, error)
func (WshClient) ListEntriesStream ¶
func (c WshClient) ListEntriesStream(ctx context.Context, conn *connparse.Connection, opts *wshrpc.FileListOpts) <-chan wshrpc.RespOrErrorUnion[wshrpc.CommandRemoteListEntriesRtnData]
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) ReadStream ¶
func (WshClient) ReadTarStream ¶
func (c WshClient) ReadTarStream(ctx context.Context, conn *connparse.Connection, opts *wshrpc.FileCopyOpts) <-chan wshrpc.RespOrErrorUnion[iochantypes.Packet]
Click to show internal directories.
Click to hide internal directories.