Documentation
¶
Overview ¶
Package local implements a local storage driver for objdeliv
Index ¶
- func Factory(conf storage.DriverConfigure) (storage.Driver, error)
- type LocalDriver
- func (d *LocalDriver) GetName() string
- func (d *LocalDriver) GetObject(id uuid.UUID) (io.ReadCloser, error)
- func (d *LocalDriver) IsExist(id uuid.UUID) (bool, error)
- func (d *LocalDriver) NewObject(id uuid.UUID) (io.WriteCloser, error)
- func (d *LocalDriver) ReleaseObject(id uuid.UUID) error
- func (d *LocalDriver) SetExpire(id uuid.UUID, expire time.Duration) <-chan error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type LocalDriver ¶
type LocalDriver struct {
// contains filtered or unexported fields
}
func New ¶
func New(path string) *LocalDriver
func (*LocalDriver) GetName ¶
func (d *LocalDriver) GetName() string
func (*LocalDriver) GetObject ¶
func (d *LocalDriver) GetObject(id uuid.UUID) (io.ReadCloser, error)
func (*LocalDriver) NewObject ¶
func (d *LocalDriver) NewObject(id uuid.UUID) (io.WriteCloser, error)
func (*LocalDriver) ReleaseObject ¶
func (d *LocalDriver) ReleaseObject(id uuid.UUID) error
Click to show internal directories.
Click to hide internal directories.