helios

package
v0.0.0-...-fed1ae5 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2015 License: GPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Daemon

func Daemon(conf Config) (err error)

Daemon loops infinitely * If getListOfJsonFiles returns empty, run Helios.Sunrise * Otherwise run Helios.Sunset * Then wait a bit

func Sunrise

func Sunrise(conf Config) (err error)

Sunrise imports from s3 to npm-registry 1) download bucket listing from s3 2) download files from s3 3) talk to couchdb directly to overwrite the registry documents

func Sunset

func Sunset(conf Config) (err error)

Sunset exports from npm-registry to s3 1) talk to couchdb directly to get list of json files 2) download all json files 3) parse them and download all tgz attachments 4) upload everything to s3

Types

type Config

type Config struct {
	AWS struct {
		AccessKeyID     string
		SecretAccessKey string
		S3BucketName    string
	}
	Couch struct {
		Username string
		Password string
		URL      string
	}
	DaemonPause string
	Log         struct {
		Level    string
		FilePath string
	}
}

Jump to

Keyboard shortcuts

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