Version: v0.5.4 Latest Latest

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

Go to latest
Published: Jun 24, 2019 License: Apache-2.0 Imports: 14 Imported by: 0




This section is empty.


This section is empty.


This section is empty.


type S3Cache

type S3Cache struct {
	Bucket    string `hcl:"bucket"`
	Endpoint  string `hcl:"endpoint"`
	AccessKey string `hcl:"access_key"`
	SecretKey string `hcl:"secret_key"`
	Disabled  bool   `hcl:"disabled"`
	// contains filtered or unexported fields

func (*S3Cache) BaseURL added in v0.2.0

func (c *S3Cache) BaseURL() string

func (*S3Cache) DumpCacheManifest

func (c *S3Cache) DumpCacheManifest(namespace, cacheKey string, entries []cache.CacheEntry) error

func (*S3Cache) Enabled added in v0.2.0

func (c *S3Cache) Enabled() bool

func (S3Cache) Env

func (c S3Cache) Env() map[string]string

func (*S3Cache) Get

func (c *S3Cache) Get(namespace string, entry cache.CacheEntry) error

func (*S3Cache) Init

func (c *S3Cache) Init() error

func (*S3Cache) LoadCacheManifest

func (c *S3Cache) LoadCacheManifest(namespace, cacheKey string) ([]cache.CacheEntry, error)

func (S3Cache) Name

func (c S3Cache) Name() string

func (*S3Cache) Set

func (c *S3Cache) Set(namespace, filePath string) (cache.CacheEntry, error)

func (*S3Cache) Writer added in v0.2.0

func (c *S3Cache) Writer(namespace string, filename string) (io.WriteCloser, string, error)

type S3Writer added in v0.2.0

type S3Writer struct {
	// contains filtered or unexported fields

func (*S3Writer) Close added in v0.2.0

func (w *S3Writer) Close() error

func (*S3Writer) Init added in v0.2.0

func (w *S3Writer) Init(s3 *S3Cache, namespace, filename string) string

func (*S3Writer) Write added in v0.2.0

func (w *S3Writer) Write(bytes []byte) (int, error)

Source Files

Jump to

Keyboard shortcuts

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