storage

package
v0.0.0-...-5c0bb04 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Local  = "local"
	FTP    = "ftp"
	SFTP   = "sftp"
	Aliyun = "aliyun"
	Qiniu  = "qiniu"
	Upyun  = "upyun"
)

supported storage types

Variables

This section is empty.

Functions

func Close

func Close()

func Delete

func Delete(path string, thumbs map[string][2]int) error

Delete remove image form storage

func Init

func Init()

Init for storage

func Read

func Read(path string, thumbs map[string][2]int) map[string]string

Read get images form storage

func Write

func Write(path string, reader io.Reader, thumbs map[string][2]int) error

Write save image to storage

Types

type Interface

type Interface interface {
	Read(path string, thumbs map[string][2]int) map[string]string
	Write(path string, reader io.Reader, thumbs map[string][2]int) error
	Delete(path string, thumbs map[string][2]int) error
	io.Closer
}

Interface storage methods

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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