aws

package
v0.0.0-...-7c6ac54 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2017 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EC2RoleAwsConfig

func EC2RoleAwsConfig() *aws.Config

Types

type CloudFront

type CloudFront struct {
	S3
}

func (CloudFront) GetURLTemplate

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

GetURLTemplate get url template

func (CloudFront) Retrieve

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

Retrieve retrieve file content with url

func (CloudFront) Store

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

Store store reader's content with url

type S3

type S3 struct {
	media_library.Base
}

S3 a struct used to upload files to S3

func (S3) GetURLTemplate

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

GetURLTemplate get url template

func (S3) Retrieve

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

Retrieve retrieve file content with url

func (S3) Store

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

Store store reader's content with url

Jump to

Keyboard shortcuts

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