 Documentation
      ¶
      Documentation
      ¶
    
    
  
    
  
    Overview ¶
Package project implements multi-function operations.
Index ¶
- Variables
- type Config
- type Project
- func (p *Project) Clean(names []string) error
- func (p *Project) Delete(names []string) error
- func (p *Project) Deploy(names []string) error
- func (p *Project) DeployAndClean(names []string) error
- func (p *Project) FunctionByName(name string) (*function.Function, error)
- func (p *Project) FunctionNames() (list []string, err error)
- func (p *Project) Open() error
 
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) DeployAndClean ¶
DeployAndClean deploys functions and then cleans up their build artifacts.
func (*Project) FunctionByName ¶
FunctionByName returns a function by `name` or returns ErrNotFound.
func (*Project) FunctionNames ¶
FunctionNames returns a list of function names sans-directory.
 Click to show internal directories. 
   Click to hide internal directories.