 Documentation
      ¶
      Documentation
      ¶
    
    
  
    
  
    Overview ¶
Package project implements multi-function operations.
Index ¶
- Constants
- type Config
- type Project
- func (p *Project) Clean() error
- func (p *Project) Delete() error
- func (p *Project) Deploy() error
- func (p *Project) DeployAndClean() error
- func (p *Project) FunctionDirNames() (list []string, err error)
- func (p *Project) LoadFunctions(names ...string) error
- func (p *Project) Open() error
- func (p *Project) Setenv(name, value string)
 
Constants ¶
      View Source
      
  
const ( // DefaultMemory defines default memory value (MB) for every function in a project DefaultMemory = 128 // DefaultTimeout defines default timeout value (s) for every function in a project DefaultTimeout = 3 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
	Name         string            `json:"name" validate:"nonzero"`
	Description  string            `json:"description"`
	Runtime      string            `json:"runtime"`
	Memory       int64             `json:"memory"`
	Timeout      int64             `json:"timeout"`
	Role         string            `json:"role"`
	Handler      string            `json:"handler"`
	Shim         bool              `json:"shim"`
	NameTemplate string            `json:"nameTemplate"`
	Environment  map[string]string `json:"environment"`
	Hooks        hooks.Hooks       `json:"hooks"`
}
    Config for project.
type Project ¶
type Project struct {
	Config
	Path            string
	Concurrency     int
	Log             log.Interface
	Service         lambdaiface.LambdaAPI
	Functions       []*function.Function
	IgnoredPatterns []string
	// contains filtered or unexported fields
}
    Project represents zero or more Lambda functions.
func (*Project) DeployAndClean ¶
DeployAndClean deploys functions and then cleans up their build artifacts.
func (*Project) FunctionDirNames ¶ added in v0.4.0
FunctionDirNames returns a list of function directory names.
func (*Project) LoadFunctions ¶ added in v0.6.0
LoadFunctions reads the ./functions directory, populating the Functions field. If no `names` are specified, all functions are loaded.
 Click to show internal directories. 
   Click to hide internal directories.