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 (*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