s3

package
v0.8.3 Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2021 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// Up contains the systems availability. If true the s3 service is up.
	Up bool

	// Health contains the systems readiness. If false the s3 service
	// most likely can't read or download from s3. Most likely temporary.
	Health bool

	// Config contains parameters related to S3.
	Config config
)

Functions

func Poll

func Poll(bucket, bucketRegion string, log *zap.Logger)

Poll polls every 60 seconds, kicking of an s3 sync.

func Sync

func Sync(t time.Time, log *zap.Logger)

Sync sets up an s3 session, parses all files and puts them into the kv store.

Types

type S3API added in v0.8.3

type S3API interface {
	s3iface.S3API
}

S3API is a local wrapper over aws-sdk-go's S3 API

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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