Documentation ¶
Index ¶
- Constants
- func New(driver *ddrv.Driver, cfg *Config) dp.DataProvider
- type Config
- type Provider
- func (bfp *Provider) CHTime(p string, newMTime time.Time) error
- func (bfp *Provider) Close() error
- func (bfp *Provider) Create(name, parent string, dir bool) (*dp.File, error)
- func (bfp *Provider) CreateNodes(id string, nodes []ddrv.Node) error
- func (bfp *Provider) Delete(id, parent string) error
- func (bfp *Provider) Get(id, parent string) (*dp.File, error)
- func (bfp *Provider) GetChild(id string) ([]*dp.File, error)
- func (bfp *Provider) GetNodes(id string) ([]ddrv.Node, error)
- func (bfp *Provider) Ls(p string, limit int, offset int) ([]*dp.File, error)
- func (bfp *Provider) Mkdir(p string) error
- func (bfp *Provider) Mv(oldPath, newPath string) error
- func (bfp *Provider) Name() string
- func (bfp *Provider) RenameBucket(tx *bbolt.Tx, oldp, newp string) error
- func (bfp *Provider) RenameFile(tx *bbolt.Tx, b *bbolt.Bucket, data []byte, oldp, newp string) error
- func (bfp *Provider) Rm(p string) error
- func (bfp *Provider) Stat(p string) (*dp.File, error)
- func (bfp *Provider) Touch(p string) error
- func (bfp *Provider) Truncate(id string) error
- func (bfp *Provider) Update(id, parent string, file *dp.File) (*dp.File, error)
Constants ¶
View Source
const RootDirPath = "/"
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Provider ¶
type Provider struct {
// contains filtered or unexported fields
}
func (*Provider) RenameBucket ¶
func (*Provider) RenameFile ¶
Click to show internal directories.
Click to hide internal directories.