local

package
v0.1.0-devel Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 17, 2022 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Overview

Package local implements a local storage driver for objdeliv

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Factory

func Factory(conf storage.DriverConfigure) (storage.Driver, error)

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) IsExist

func (d *LocalDriver) IsExist(id uuid.UUID) (bool, 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

func (*LocalDriver) SetExpire

func (d *LocalDriver) SetExpire(id uuid.UUID, expire time.Duration) <-chan error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL