forked from TrueCloudLab/rclone
fs: Remove unused ListFser interface
This commit is contained in:
parent
f88300a153
commit
e7e9aa0dfa
1 changed files with 8 additions and 12 deletions
20
fs/fs.go
20
fs/fs.go
|
@ -101,8 +101,10 @@ func Register(info *RegInfo) {
|
||||||
fsRegistry = append(fsRegistry, info)
|
fsRegistry = append(fsRegistry, info)
|
||||||
}
|
}
|
||||||
|
|
||||||
// ListFser is the interface for listing a remote Fs
|
// Fs is the interface a cloud storage system must provide
|
||||||
type ListFser interface {
|
type Fs interface {
|
||||||
|
Info
|
||||||
|
|
||||||
// List the objects and directories in dir into entries. The
|
// List the objects and directories in dir into entries. The
|
||||||
// entries can be returned in any order but should be for a
|
// entries can be returned in any order but should be for a
|
||||||
// complete directory.
|
// complete directory.
|
||||||
|
@ -117,12 +119,6 @@ type ListFser interface {
|
||||||
// NewObject finds the Object at remote. If it can't be found
|
// NewObject finds the Object at remote. If it can't be found
|
||||||
// it returns the error ErrorObjectNotFound.
|
// it returns the error ErrorObjectNotFound.
|
||||||
NewObject(remote string) (Object, error)
|
NewObject(remote string) (Object, error)
|
||||||
}
|
|
||||||
|
|
||||||
// Fs is the interface a cloud storage system must provide
|
|
||||||
type Fs interface {
|
|
||||||
Info
|
|
||||||
ListFser
|
|
||||||
|
|
||||||
// Put in to the remote path with the modTime given of the given size
|
// Put in to the remote path with the modTime given of the given size
|
||||||
//
|
//
|
||||||
|
@ -142,7 +138,7 @@ type Fs interface {
|
||||||
Rmdir(dir string) error
|
Rmdir(dir string) error
|
||||||
}
|
}
|
||||||
|
|
||||||
// Info provides an interface to reading information about a filesystem.
|
// Info provides a read only interface to information about a filesystem.
|
||||||
type Info interface {
|
type Info interface {
|
||||||
// Name of the remote (as passed into NewFs)
|
// Name of the remote (as passed into NewFs)
|
||||||
Name() string
|
Name() string
|
||||||
|
@ -180,7 +176,7 @@ type Object interface {
|
||||||
Remove() error
|
Remove() error
|
||||||
}
|
}
|
||||||
|
|
||||||
// ObjectInfo contains information about an object.
|
// ObjectInfo provides read only information about an object.
|
||||||
type ObjectInfo interface {
|
type ObjectInfo interface {
|
||||||
BasicInfo
|
BasicInfo
|
||||||
|
|
||||||
|
@ -195,8 +191,8 @@ type ObjectInfo interface {
|
||||||
Storable() bool
|
Storable() bool
|
||||||
}
|
}
|
||||||
|
|
||||||
// BasicInfo common interface for Dir and Object providing the very
|
// BasicInfo provides read only information about the common subset of
|
||||||
// basic attributes of an object.
|
// a Dir or Object.
|
||||||
type BasicInfo interface {
|
type BasicInfo interface {
|
||||||
// String returns a description of the Object
|
// String returns a description of the Object
|
||||||
String() string
|
String() string
|
||||||
|
|
Loading…
Add table
Reference in a new issue