settings

package
v0.4.23 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 7, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

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

type FunctionChecker interface {
	FunctionExists(name string) bool
}

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 New

func New(checker FunctionChecker) *Service

New returns a ready-to-use Service.

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

func (s *Service) GetRecursionConfig(w http.ResponseWriter, r *http.Request, functionName string)

GetRecursionConfig handles GET /2015-03-31/functions/{FunctionName}/recursion-config.

func (*Service) GetRuntimeConfig

func (s *Service) GetRuntimeConfig(w http.ResponseWriter, r *http.Request, functionName string)

GetRuntimeConfig handles GET /2015-03-31/functions/{FunctionName}/runtime-management-config.

func (*Service) PutRecursionConfig

func (s *Service) PutRecursionConfig(w http.ResponseWriter, r *http.Request, functionName string)

PutRecursionConfig handles PUT /2015-03-31/functions/{FunctionName}/recursion-config.

func (*Service) PutRuntimeConfig

func (s *Service) PutRuntimeConfig(w http.ResponseWriter, r *http.Request, functionName string)

PutRuntimeConfig handles PUT /2015-03-31/functions/{FunctionName}/runtime-management-config.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL