config

package
v0.0.0-...-63ab0d9 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2015 License: MPL-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package config handles the lambda configuration - both loading and saving config files from disk.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Create

func Create(conceptName string, dir string) error

Create a lambda_config.json file that can be used as part of the input into AWS. conceptName should be something like "todo" or anything else anything else that might exist under app/endpoint/{conceptName} dir should be ??

Types

type LambdaConfig

type LambdaConfig struct {
	Name      string
	RAM       int //in MB
	Timeout   int //in seconds
	AWSRegion string
}

type PolkaConfig

type PolkaConfig struct {
	Name               string
	NumberOfExecutions int
}

func CreatePolkaHomeConfigAsNeeded

func CreatePolkaHomeConfigAsNeeded() (PolkaConfig, error)

CreatePolkaHomeConfig creates ~/.polka if it doesn't exist already. It then places the contents of PolkaConfig into it as ~/.polka/polka_config.json

func (*PolkaConfig) Exists

func (p *PolkaConfig) Exists() bool

func (*PolkaConfig) Save

func (p *PolkaConfig) Save()

type ProjectConfig

type ProjectConfig struct {
	S3 string
}

func LoadProjectConfig

func LoadProjectConfig() (ProjectConfig, error)

func (*ProjectConfig) Save

func (p *ProjectConfig) Save()

Save this project config in config/app.json. Always overwrites the previous file.

Jump to

Keyboard shortcuts

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