Documentation
¶
Index ¶
- type AccountLimit
- type AccountUsage
- type FunctionChecker
- type RuntimeManagementConfig
- type Service
- func (s *Service) GetAccountSettings(w http.ResponseWriter, r *http.Request)
- func (s *Service) GetRecursionConfig(w http.ResponseWriter, r *http.Request, functionName string)
- func (s *Service) GetRuntimeConfig(w http.ResponseWriter, r *http.Request, functionName string)
- func (s *Service) PutRecursionConfig(w http.ResponseWriter, r *http.Request, functionName string)
- func (s *Service) PutRuntimeConfig(w http.ResponseWriter, r *http.Request, functionName string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccountLimit ¶
type AccountLimit struct {
CodeSizeUnzipped int64 `json:"CodeSizeUnzipped"`
CodeSizeZipped int64 `json:"CodeSizeZipped"`
ConcurrentExecutions int `json:"ConcurrentExecutions"`
TotalCodeSize int64 `json:"TotalCodeSize"`
UnreservedConcurrentExecutions int `json:"UnreservedConcurrentExecutions"`
}
AccountLimit holds the fixed mock limits for this account.
type AccountUsage ¶
type AccountUsage struct {
FunctionCount int64 `json:"FunctionCount"`
TotalCodeSize int64 `json:"TotalCodeSize"`
}
AccountUsage holds mock usage figures for this account.
type FunctionChecker ¶
FunctionChecker validates that a named Lambda function exists.
type RuntimeManagementConfig ¶
type RuntimeManagementConfig struct {
FunctionArn string `json:"FunctionArn"`
RuntimeVersionArn string `json:"RuntimeVersionArn,omitempty"`
UpdateRuntimeOn string `json:"UpdateRuntimeOn"` // "Auto" | "FunctionUpdate" | "Manual"
}
RuntimeManagementConfig holds the runtime update policy for a single function.
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service manages in-memory state for account, runtime and scaling settings.
func (*Service) GetAccountSettings ¶
func (s *Service) GetAccountSettings(w http.ResponseWriter, r *http.Request)
GetAccountSettings handles GET /2015-03-31/account-settings. Returns fixed mock values — no state required.
func (*Service) GetRecursionConfig ¶
GetRecursionConfig handles GET /2015-03-31/functions/{FunctionName}/recursion-config.
func (*Service) GetRuntimeConfig ¶
GetRuntimeConfig handles GET /2015-03-31/functions/{FunctionName}/runtime-management-config.
func (*Service) PutRecursionConfig ¶
PutRecursionConfig handles PUT /2015-03-31/functions/{FunctionName}/recursion-config.
func (*Service) PutRuntimeConfig ¶
PutRuntimeConfig handles PUT /2015-03-31/functions/{FunctionName}/runtime-management-config.