gcp

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2020 License: GPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EmptyWebsiteContainer added in v0.2.0

func EmptyWebsiteContainer() object.WebsiteContainer

func NewObjectProvider added in v0.2.0

func NewObjectProvider(client *storage.Client, logging logging.LoggerFactory) app.ObjectProvider

func NewWebsiteContainer added in v0.2.0

func NewWebsiteContainer(bucket string, indexFile string) (object.WebsiteContainer, error)

func ParseObjectUrlString added in v0.2.0

func ParseObjectUrlString(path string) (object.Object, error)

Types

type BucketCache added in v0.2.0

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

func NewBucketCache added in v0.2.0

func NewBucketCache() BucketCache

func NewBucketCacheWithParams added in v0.2.0

func NewBucketCacheWithParams(items map[string]BucketCacheItem, lock *sync.RWMutex) BucketCache

func (*BucketCache) Get added in v0.2.0

func (this *BucketCache) Get(key string) (*storage.BucketWebsite, bool)

func (*BucketCache) Put added in v0.2.0

func (this *BucketCache) Put(key string, item *storage.BucketWebsite)

type BucketCacheItem added in v0.2.0

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

type Object

type Object struct {
	Bucket string
	Key    string
}

func ParsePath added in v0.2.0

func ParsePath(path []string) (Object, error)

func (*Object) GetPath

func (o *Object) GetPath() string

type ObjectProvider added in v0.2.0

type ObjectProvider struct {
	app.ObjectProvider
	// contains filtered or unexported fields
}

func (ObjectProvider) Data added in v0.2.0

func (this ObjectProvider) Data(ctx context.Context, objectPath []string) (io.Reader, error)

func (ObjectProvider) Headers added in v0.2.0

func (this ObjectProvider) Headers(ctx context.Context, objectPath []string) ([]http.Header, error)

func (ObjectProvider) WebsiteContainer added in v0.2.0

func (this ObjectProvider) WebsiteContainer(ctx context.Context, objectPath []string) (object.WebsiteContainer, error)

Jump to

Keyboard shortcuts

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