filesystem

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Local

type Local struct{}

Local is a file system abstraction for a local file system.

func NewLocal

func NewLocal() *Local

NewLocal creates a new initialised Local structure.

func (*Local) Walk

func (fs *Local) Walk(ctx context.Context, fsName db.FSName, path string, fsEntriesCh chan<- db.FSEntry, errCh <-chan error) error

Walk traverses the file system entries and writes each entry to fsEntriesCh. It must check for an error in errCh (which indicates the receiver of fsEntriesCh encountered a problem and terminate if one is present. Walk is the PRODUCER on fsEntriesCh and IS RESPONSIBLE FOR CLOSING IT!! nolint: gocognit, gocyclo

type PCloud

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

PCloud is a file system abstraction for the PCloud file system.

func NewPCloud

func NewPCloud(sdk pCloudSDK) *PCloud

NewPCloud creates a new initialised PCloud structure.

func (*PCloud) Walk

func (fs *PCloud) Walk(ctx context.Context, fsName db.FSName, path string, fsEntriesCh chan<- db.FSEntry, errCh <-chan error) error

Walk traverses the file system entries and writes each entry to fsEntriesCh. It must check for an error in errCh (which indicates the receiver of fsEntriesCh encountered a problem and terminate if one is present. Walk is the PRODUCER on fsEntriesCh and IS RESPONSIBLE FOR CLOSING IT!! nolint: gocognit

Jump to

Keyboard shortcuts

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