Documentation ¶
Index ¶
- type Config
- type Manager
- func (m *Manager) CreateFunction(funcName string, dir string, e env.Env, memoryS string, timeoutS string) error
- func (m *Manager) DeleteFunction(funcName string) error
- func (m *Manager) GetCodeURI(funcName string) (string, error)
- func (m *Manager) GetFunction(funcName string) (*function.Meta, error)
- func (m *Manager) GetImage(funcName string) (string, error)
- func (m *Manager) InvokeFunction(funcName string, args []byte) ([]byte, error)
- func (m *Manager) ListFunction() ([]*function.Meta, error)
- func (m *Manager) SaveCode(funcName string, file string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { RegionID string `yaml:"regionID"` AccessKeyID string `yaml:"accessKeyID"` AccessKeySecret string `yaml:"accessKeySecret"` Account string `yaml:"account"` LambdaRole string `yaml:"lambdaRole"` UserCodeBucket string `yaml:"userCodeBucket"` AwsCodeBucket string `yaml:"awsCodeBucket"` }
Config defines the neccessary settings about aws.Manager
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
Manager exposes the interfaces about resource CRUD on aws
func NewManagerWithConfig ¶
NewManagerWithConfig create a manager with given configuration
func (*Manager) CreateFunction ¶
func (m *Manager) CreateFunction(funcName string, dir string, e env.Env, memoryS string, timeoutS string) error
CreateFunction creates a function on lambda
func (*Manager) DeleteFunction ¶
DeleteFunction deletes a function
func (*Manager) GetFunction ¶
GetFunction fetches the metadata of a function
func (*Manager) InvokeFunction ¶
InvokeFunction invokes a function by name
func (*Manager) ListFunction ¶
ListFunction displays the functions
Click to show internal directories.
Click to hide internal directories.