client

package
v0.0.0-...-7ce57cb Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2022 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RfsClient

type RfsClient struct {
	UUID          uuid.UUID
	MetaServerURL *url.URL
	// contains filtered or unexported fields
}

func NewRfsClient

func NewRfsClient() (*RfsClient, error)

func (*RfsClient) GetFile

func (rc *RfsClient) GetFile(ctx context.Context, path string) (fileName string, file io.Reader, err error)

func (*RfsClient) List

func (rc *RfsClient) List(ctx context.Context, dir string) (es []*rfspb.Entry, err error)

func (*RfsClient) Mkdir

func (rc *RfsClient) Mkdir(ctx context.Context, path string) (err error)

func (*RfsClient) Move

func (rc *RfsClient) Move(ctx context.Context, srcPath string, dstPath string) (err error)

func (*RfsClient) PutFile

func (rc *RfsClient) PutFile(ctx context.Context, dir string, file fs.File) (err error)

func (*RfsClient) Remove

func (rc *RfsClient) Remove(ctx context.Context, path string) (err error)

func (*RfsClient) Stat

func (rc *RfsClient) Stat(ctx context.Context, dir string) (fileInfo *rfspb.Entry, err error)

Jump to

Keyboard shortcuts

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