Documentation ¶
Index ¶
- type Client
- type Directory
- type Filer
- func (f *Filer) Create(content io.Reader, filename string, path string) error
- func (f *Filer) Delete(filename string, path string) error
- func (f *Filer) DeleteFilesUntil(path string, lastFileName string) error
- func (f *Filer) Ping() error
- func (f *Filer) Read(filename string, path string) (io.Reader, error)
- func (f *Filer) ReadDirectory(path string, lastFileName string) (*Directory, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client represents a SeaweedFS client
func NewClient ¶
NewClient creates a new client. The given url has to be the address of the master server
type Directory ¶
type Directory struct { Directory string `json:"path"` Files []file `json:"Files"` Subdirectories []subdirectory `json:"Subdirectories"` }
Directory represents a directory mapped from the seaweed filer
type Filer ¶
type Filer struct {
// contains filtered or unexported fields
}
Filer represents a filer for SeaweedFS
func (*Filer) Create ¶
Create creates a new file with the given content name and under the given path
func (*Filer) DeleteFilesUntil ¶
DeleteFilesUntil deletes all file under the given path until the given filename
Click to show internal directories.
Click to hide internal directories.