local

package
v0.0.0-...-33c5ed1 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2023 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewStorage

func NewStorage(conf storage.ConfigStorage) (storage.IStorage, error)

Types

type Local

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

func (*Local) CreateDir

func (s *Local) CreateDir(dirName string) error

func (*Local) DeleteFile

func (s *Local) DeleteFile(objName string) error

仅删除文件 目录保留

func (*Local) GetFile

func (s *Local) GetFile(objName string) (io.Reader, error)

func (*Local) GetFileTo

func (s *Local) GetFileTo(objName string, w io.Writer) error

func (*Local) GetThumbUrl

func (s *Local) GetThumbUrl(objName string) (link string, err error)

func (*Local) GetThumbUrls

func (s *Local) GetThumbUrls(objNames []string) (links []string, err error)

func (*Local) GetUrl

func (s *Local) GetUrl(objName string) (link string, err error)

func (*Local) GetUrls

func (s *Local) GetUrls(objNames []string) (links []string, err error)

func (*Local) PushFile

func (s *Local) PushFile(objName string, reader io.Reader) (link string, err error)

func (*Local) ScanDst

func (s *Local) ScanDst(dst string) ([]map[string]string, error)

Jump to

Keyboard shortcuts

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