blobstore

package
v0.0.0-...-db1d7af Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2014 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BlobStore

type BlobStore interface {
	Upload(key string, content io.ReadSeeker) error
}

func NewFileSystemBlobStore

func NewFileSystemBlobStore(filepath string) BlobStore

func NewS3FileSystemBlobstore

func NewS3FileSystemBlobstore(bucket s3.Bucket) BlobStore

type BlobStoreArgs

type BlobStoreArgs struct {
	Filepath        string
	Provider        Provider
	AccessKeyId     string
	AccessKeySecret string
	Host            string
	BucketName      string
}

type Provider

type Provider string
const (
	Local Provider = "local"
	S3    Provider = "s3"
)

type Repo

type Repo interface {
	AppPackageStore() BlobStore
}

func NewRepo

func NewRepo(args RepoArgs) Repo

type RepoArgs

type RepoArgs struct {
	AppPackageStore BlobStoreArgs
}

Jump to

Keyboard shortcuts

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