storage

package
v0.9.1 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2017 License: MIT Imports: 18 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AssetInfo

type AssetInfo struct {
	FileName string
	Data     io.Reader
}

type AwsS3StorageProvider

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

func (AwsS3StorageProvider) Get

func (provider AwsS3StorageProvider) Get(assetInfo *AssetInfo) ([]byte, *models.ProblemDetail)

func (AwsS3StorageProvider) Init

func (provider AwsS3StorageProvider) Init() error

func (AwsS3StorageProvider) Post

func (provider AwsS3StorageProvider) Post(assetInfo *AssetInfo) (string, *models.ProblemDetail)

type GcpStorageProvider

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

func (GcpStorageProvider) Get

func (provider GcpStorageProvider) Get(assetInfo *AssetInfo) ([]byte, *models.ProblemDetail)

func (GcpStorageProvider) Init

func (provider GcpStorageProvider) Init() error

func (GcpStorageProvider) Post

func (provider GcpStorageProvider) Post(assetInfo *AssetInfo) (string, *models.ProblemDetail)

type LocalStorageProvider

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

func (LocalStorageProvider) Get

func (provider LocalStorageProvider) Get(assetInfo *AssetInfo) ([]byte, *models.ProblemDetail)

func (LocalStorageProvider) Init

func (provider LocalStorageProvider) Init() error

func (LocalStorageProvider) Post

func (provider LocalStorageProvider) Post(assetInfo *AssetInfo) (string, *models.ProblemDetail)

type Provider

type Provider interface {
	Init() error
	Post(*AssetInfo) (string, *models.ProblemDetail)
	Get(*AssetInfo) ([]byte, *models.ProblemDetail)
}

func GetProvider

func GetProvider() Provider

Jump to

Keyboard shortcuts

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