project

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2016 License: MIT Imports: 10 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package project implements multi-function operations.

Index

Constants

This section is empty.

Variables

View Source
var ErrNotFound = errors.New("project: no function found")

ErrNotFound is returned when a function cannot be found.

Functions

This section is empty.

Types

type Config

type Config struct {
	Name        string `json:"name" validate:"nonzero"`
	Description string `json:"description"`
}

Config for project.

type Project

type Project struct {
	Config
	Path        string
	Concurrency int
	Log         log.Interface
	Service     lambdaiface.LambdaAPI
	Functions   []*function.Function
}

Project represents zero or more Lambda functions.

func (*Project) Clean

func (p *Project) Clean(names []string) error

Clean up function build artifacts.

func (*Project) Delete

func (p *Project) Delete(names []string) error

Delete functions.

func (*Project) Deploy

func (p *Project) Deploy(names []string) error

Deploy functions and their configurations.

func (*Project) DeployAndClean

func (p *Project) DeployAndClean(names []string) error

DeployAndClean deploys functions and then cleans up their build artifacts.

func (*Project) FunctionByName

func (p *Project) FunctionByName(name string) (*function.Function, error)

FunctionByName returns a function by `name` or returns ErrNotFound.

func (*Project) FunctionNames

func (p *Project) FunctionNames() (list []string, err error)

FunctionNames returns a list of function names sans-directory.

func (*Project) Open

func (p *Project) Open() error

Open the project.json file and prime the config.

Jump to

Keyboard shortcuts

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