Documentation
¶
Index ¶
- type LocalBackend
- func (c LocalBackend) DeleteDir(path string) error
- func (c LocalBackend) DeleteFile(path string) error
- func (c LocalBackend) Exist(path string) (bool, error)
- func (c LocalBackend) ListDir(path string) ([]string, error)
- func (c LocalBackend) ReadFile(path string) ([]byte, error)
- func (c LocalBackend) WriteFile(path string, value []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LocalBackend ¶
type LocalBackend struct {
BasePath string
}
func NewLocalBackend ¶
func NewLocalBackend(basePath string) (LocalBackend, error)
func (LocalBackend) DeleteDir ¶
func (c LocalBackend) DeleteDir(path string) error
func (LocalBackend) DeleteFile ¶
func (c LocalBackend) DeleteFile(path string) error
Click to show internal directories.
Click to hide internal directories.