adsa-cms: github.com/mmanjoura/adsa-cms/media_library/aws Index | Files

package aws

import "github.com/mmanjoura/adsa-cms/media_library/aws"

Index

Package Files

s3.go

type S3 Uses

type S3 struct {
    media_library.Base
}

S3 a struct used to upload files to S3

func (S3) GetURLTemplate Uses

func (s S3) GetURLTemplate(option *media_library.Option) (path string)

GetURLTemplate get url template

func (S3) Retrieve Uses

func (s S3) Retrieve(url string) (file *os.File, err error)

Retrieve retrieve file content with url

func (S3) Store Uses

func (s S3) Store(url string, option *media_library.Option, reader io.Reader) error

Store store reader's content with url

Package aws imports 13 packages (graph). Updated 2017-06-20. Refresh now. Tools for package owners. This is an inactive package (no imports and no commits in at least two years).