fileshare

package
v0.11.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	ErrorParsingConnection = "error creating fileshare client, could not parse connection %s"
)

Variables

This section is empty.

Functions

func Append

func Append(ctx context.Context, data wshrpc.FileData) error

func Copy

func CreateFileShareClient

func CreateFileShareClient(ctx context.Context, connection string) (fstype.FileShareClient, *connparse.Connection)

CreateFileShareClient creates a fileshare client based on the connection string Returns the client and the parsed connection

func Delete

func Delete(ctx context.Context, path string) error

func Join

func Join(ctx context.Context, path string, parts ...string) (string, error)

func ListEntries

func ListEntries(ctx context.Context, path string, opts *wshrpc.FileListOpts) ([]*wshrpc.FileInfo, error)

func Mkdir

func Mkdir(ctx context.Context, path string) error

func Move

func PutFile

func PutFile(ctx context.Context, data wshrpc.FileData) error

func Read

func Read(ctx context.Context, data wshrpc.FileData) (*wshrpc.FileData, error)

func ReadStream

func ReadStream(ctx context.Context, data wshrpc.FileData) <-chan wshrpc.RespOrErrorUnion[wshrpc.FileData]

func Stat

func Stat(ctx context.Context, path string) (*wshrpc.FileInfo, error)

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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