local

package
v0.1.21 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Dir       string
	CDNURL    string
	Endpoint  string
	SecretKey string
}

type Driver

type Driver struct {
	// contains filtered or unexported fields
}

func New

func New(dir string) *Driver

func NewFromConfig

func NewFromConfig(cfg core.Config) *Driver

func NewWithConfig

func NewWithConfig(cfg Config) *Driver

func (*Driver) Delete

func (d *Driver) Delete(paths ...string) error

func (*Driver) Get

func (d *Driver) Get(path string) (io.ReadCloser, error)

func (*Driver) List

func (d *Driver) List(path string) ([]core.Object, error)

func (*Driver) Put

func (d *Driver) Put(file core.FileHeader) error

func (*Driver) Source

func (d *Driver) Source(path string, ttl time.Duration) (string, error)

func (*Driver) TempDir

func (d *Driver) TempDir() string

func (*Driver) Token

func (d *Driver) Token(info core.FileInfo, ttl time.Duration) (*core.UploadCredential, error)

Jump to

Keyboard shortcuts

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