storage

package
v2.1.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2018 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AliyunStorage

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

func NewAliyunStorage

func NewAliyunStorage() *AliyunStorage

func (*AliyunStorage) DeleteObject

func (a *AliyunStorage) DeleteObject(key string)

func (*AliyunStorage) GenURL

func (a *AliyunStorage) GenURL(key string) string

func (*AliyunStorage) GetObjects

func (a *AliyunStorage) GetObjects() ([]*FileObject, error)

type AzureStorage

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

func NewAzureStorage

func NewAzureStorage() *AzureStorage

func (*AzureStorage) DeleteObject

func (a *AzureStorage) DeleteObject(key string)

func (*AzureStorage) GenURL

func (a *AzureStorage) GenURL(key string) string

func (*AzureStorage) GetObjects

func (a *AzureStorage) GetObjects() ([]*FileObject, error)

type FileObject

type FileObject struct {
	Key          string
	Size         int64
	LastModified time.Time
}

type Storage

type Storage interface {
	GetObjects() ([]*FileObject, error)
	GenURL(key string) string
	DeleteObject(key string)
}

Jump to

Keyboard shortcuts

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