Documentation ¶
Index ¶
- type GoFS
- func (gfs *GoFS) Delete(filepath string) error
- func (gfs *GoFS) List(path string, recursive bool) ([]string, error)
- func (gfs *GoFS) Move(filepathSrc string, filepathDst string) error
- func (gfs *GoFS) Read(filepath string) ([]byte, error)
- func (gfs *GoFS) ReadString(filepath string) (string, error)
- func (gfs *GoFS) Stat(filepath string) (backend.FileInfo, error)
- func (gfs *GoFS) Write(filepath string, data []byte) error
- func (gfs *GoFS) WriteString(filepath string, content string) error
- type GoFSBackendType
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GoFS ¶
type GoFS struct {
// contains filtered or unexported fields
}
func New ¶
func New(backendType GoFSBackendType, backendConfig interface{}) (GoFS, error)
type GoFSBackendType ¶
type GoFSBackendType string
const ( BACKEND_TYPE_LOCAL GoFSBackendType = gofsbcklocal.BACKEND_NAME BACKEND_TYPE_S3 GoFSBackendType = gofsbcks3.BACKEND_NAME )
Click to show internal directories.
Click to hide internal directories.