storage

package
v0.0.244 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2024 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type File

type File interface {
	io.ReadCloser
	io.Writer
}

type Filesystem added in v0.0.199

type Filesystem struct {
	Storage
	Manager
	// contains filtered or unexported fields
}

func (Filesystem) Close added in v0.0.199

func (f Filesystem) Close() error

func (Filesystem) Create added in v0.0.199

func (f Filesystem) Create(name string) (File, error)

func (Filesystem) Mkdir added in v0.0.199

func (f Filesystem) Mkdir(name string, perm fs.FileMode) error

func (Filesystem) MkdirAll added in v0.0.199

func (f Filesystem) MkdirAll(path string, perm fs.FileMode) error

func (Filesystem) Open added in v0.0.199

func (f Filesystem) Open(name string) (File, error)

func (Filesystem) Remove added in v0.0.199

func (f Filesystem) Remove(name string) error

func (Filesystem) Sub added in v0.0.199

func (f Filesystem) Sub(dir string) (Storage, error)

type Manager added in v0.0.227

type Manager interface {
	Open(name string) (File, error)
	Create(name string) (File, error)
	Mkdir(name string, perm fs.FileMode) error
	MkdirAll(name string, perm fs.FileMode) error
	Remove(name string) error
	Sub(dir string) (Storage, error)
}

type S3 added in v0.0.199

type S3 struct {
	Storage
	Manager
	// contains filtered or unexported fields
}

func (S3) Close added in v0.0.199

func (s S3) Close() error

func (S3) Create added in v0.0.199

func (s S3) Create(name string) (File, error)

func (S3) Mkdir added in v0.0.199

func (s S3) Mkdir(_ string, _ fs.FileMode) error

func (S3) MkdirAll added in v0.0.199

func (s S3) MkdirAll(_ string, _ fs.FileMode) error

func (S3) Open added in v0.0.199

func (s S3) Open(name string) (File, error)

func (S3) Remove added in v0.0.199

func (s S3) Remove(name string) error

func (S3) Sub added in v0.0.199

func (s S3) Sub(dir string) (Storage, error)

type S3File added in v0.0.199

type S3File struct {
	File
	// contains filtered or unexported fields
}

func (*S3File) Close added in v0.0.199

func (f *S3File) Close() error

func (*S3File) Read added in v0.0.244

func (f *S3File) Read(p []byte) (n int, err error)

func (*S3File) Write added in v0.0.199

func (f *S3File) Write(p []byte) (n int, err error)

type Storage

type Storage interface {
	Manager
	Close() error
}

func NewStorage

func NewStorage(cfg *config.Config) (Storage, error)

Jump to

Keyboard shortcuts

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