Documentation
¶
Index ¶
Constants ¶
View Source
const ( DefaultTimeout = 30 DefaultMemory = 512 )
View Source
const ( RuntimeUnknown = "unknown" RuntimePython = "python" RuntimeGo = "go" RuntimeNode = "nodejs" DefaultNodeVersion = "18.13.0" DefaultPythonVersion = "3.9.0" DefaultGoVersion = "1.19.0" )
Variables ¶
This section is empty.
Functions ¶
func ReadIgnoredFiles ¶ added in v0.1.0
Types ¶
type Config ¶
type Config struct { Name string `json:"name"` Stage string `json:"stage"` Bucket string `json:"bucket"` Region string `json:"region"` Lambda *Lambda `json:"lambda"` Dir string `json:"dir"` Entry string `json:"entry"` }
Config is the Jerm configuration details
func ParseConfig ¶
ParseConfig parses a configuration data to Config struct
func ReadConfig ¶
ReadConfig reads a configuration file
func (*Config) GetFunctionName ¶ added in v0.1.0
func (*Config) PromptConfig ¶ added in v0.1.0
type Go ¶ added in v0.1.0
type Go struct {
*Runtime
}
Go runtime
type Lambda ¶
type Lambda struct { Runtime string `json:"runtime"` Timeout int `json:"timeout"` Role string `json:"role"` Memory int `json:"memory"` Handler string `json:"handler"` KeepWarm bool `json:"keep_warm"` }
Lambda configuration.
type Python ¶
type Python struct {
*Runtime
}
type RuntimeInterface ¶ added in v0.1.0
type RuntimeInterface interface { // Builds the deployment package for the underlying runtime Build(*Config) (string, error) // Entry is the directory where the cloud function handler resides. // The directory can be a file. Entry() string // contains filtered or unexported methods }
func NewGoRuntime ¶ added in v0.1.0
func NewGoRuntime() RuntimeInterface
NewGoConfig instantiates a new Go runtime
func NewNodeRuntime ¶ added in v0.1.0
func NewNodeRuntime() RuntimeInterface
NewNodeConfig instantiates a new NodeJS runtime
func NewPythonRuntime ¶ added in v0.1.0
func NewPythonRuntime() RuntimeInterface
NewPythonConfig instantiates a new Python runtime
func NewRuntime ¶ added in v0.1.0
func NewRuntime() RuntimeInterface
NewRuntime instantiates a new runtime
Click to show internal directories.
Click to hide internal directories.