cp

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CopyFileClient

type CopyFileClient struct {
	// contains filtered or unexported fields
}

CopyFileClient 拷贝文件客户端

func New

func New(client common.Client) *CopyFileClient

New 创建 CopyFileClient

func (*CopyFileClient) Client

func (c *CopyFileClient) Client() common.Client

Client 返回使用的客户端

func (*CopyFileClient) Receive

func (c *CopyFileClient) Receive(ctx context.Context, stream *streamv1.Stream, path string) (string, error)

Receive 接收文件或目录

func (*CopyFileClient) Send

func (c *CopyFileClient) Send(ctx context.Context, stream *streamv1.Stream, path string) error

Send 发送文件或目录

func (*CopyFileClient) WithClient

func (c *CopyFileClient) WithClient(client common.Client) *CopyFileClient

WithClient 返回使用指定客户端的拷贝文件客户端

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳