{"modulePath":"github.com/aws/aws-lambda-runtime-interface-emulator","version":"v0.0.0-20261030222936-bef5c4ba774d","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package model\n\n## Constants\n\n```go\nconst (\n\tErrorReasonUnknownError    ErrorType     = \"UnknownError\"\n\tErrorCategoryReasonUnknown ErrorCategory = \"Fatal.Sandbox\"\n\tErrorCategoryClientCaused  ErrorCategory = \"Invalid.Client\"\n)\n```\n\n## Types\n\n```go\ntype AppError interface {\n\terror\n\n\tSeverity() ErrorSeverity\n\n\tSource() ErrorSource\n\n\tErrorCategory() ErrorCategory\n\n\tErrorType() ErrorType\n\n\tUnwrap() error\n\n\tReturnCode() int\n\n\tErrorDetails() string\n}\n```\n\n```go\ntype ClientError struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc NewClientError(cause error, severity ErrorSeverity, errorType ErrorType) ClientError\n```\n\n```go\nfunc (e ClientError) Error() string\n```\n\n```go\nfunc (e ClientError) ErrorCategory() ErrorCategory\n```\n\n```go\nfunc (e ClientError) ErrorDetails() string\n```\n\n```go\nfunc (e ClientError) ErrorType() ErrorType\n```\n\n```go\nfunc (e ClientError) ReturnCode() int\n```\n\n```go\nfunc (e ClientError) Severity() ErrorSeverity\n```\n\n```go\nfunc (e ClientError) Source() ErrorSource\n```\n\n```go\nfunc (e ClientError) Unwrap() error\n```\n\n```go\ntype Credentials struct {\n\tAwsKey     string\n\tAwsSecret  string\n\tAwsSession string\n}\n```\n\n```go\ntype CustomerError struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc NewCustomerError(errorType ErrorType, opts ...ErrorOption) CustomerError\n```\n\n```go\nfunc WrapErrorIntoCustomerFatalError(e error, errorType ErrorType) CustomerError\n```\n\n```go\nfunc WrapErrorIntoCustomerInvalidError(e error, errorType ErrorType) CustomerError\n```\n\n```go\nfunc (e CustomerError) Error() string\n```\n\n```go\nfunc (e CustomerError) ErrorCategory() ErrorCategory\n```\n\n```go\nfunc (e CustomerError) ErrorDetails() string\n```\n\n```go\nfunc (e CustomerError) ErrorType() ErrorType\n```\n\n```go\nfunc (e CustomerError) ReturnCode() int\n```\n\n```go\nfunc (e CustomerError) Severity() ErrorSeverity\n```\n\n```go\nfunc (e CustomerError) Source() ErrorSource\n```\n\n```go\nfunc (e CustomerError) Unwrap() error\n```\n\n```go\ntype ErrorCategory string\n```\n\n```go\nfunc (e ErrorCategory) String() string\n```\n\n```go\ntype ErrorOption func(err *appError)\n```\n\n```go\nfunc WithCause(cause error) ErrorOption\n```\n\n```go\nfunc WithErrorMessage(msg string) ErrorOption\n```\n\n```go\nfunc WithSeverity(sev ErrorSeverity) ErrorOption\n```\n\n```go\ntype ErrorSeverity string\n```\n\n```go\nconst (\n\tErrorSeverityError   ErrorSeverity = \"Error\"\n\tErrorSeverityFatal   ErrorSeverity = \"Fatal\"\n\tErrorSeverityInvalid ErrorSeverity = \"Invalid\"\n)\n```\n\n```go\ntype ErrorSource string\n```\n\n```go\nconst (\n\tErrorSourceClient  ErrorSource = \"Client\"\n\tErrorSourceSandbox ErrorSource = \"Sandbox\"\n\tErrorSourceRuntime ErrorSource = \"Runtime\"\n)\n```\n\n```go\ntype ErrorType string\n```\n\n```go\nconst (\n\tErrorInvalidRequest                    ErrorType = \"InvalidRequest\"\n\tErrorMalformedRequest                  ErrorType = \"ErrMalformedRequest\"\n\tErrorInitIncomplete                    ErrorType = \"Client.InitIncomplete\"\n\tErrorEnvironmentUnhealthy              ErrorType = \"Client.ExecutionEnvironmentUnhealthy\"\n\tErrorRuntimeUnavailable                ErrorType = \"Runtime.Unavailable\"\n\tErrorDuplicatedInvokeId                ErrorType = \"Client.DuplicatedInvokeId\"\n\tErrorInvalidFunctionVersion            ErrorType = \"ErrInvalidFunctionVersion\"\n\tErrorInvalidMaxPayloadSize             ErrorType = \"ErrInvalidMaxPayloadSize\"\n\tErrorInvalidResponseBandwidthRate      ErrorType = \"ErrInvalidResponseBandwidthRate\"\n\tErrorInvalidResponseBandwidthBurstSize ErrorType = \"ErrInvalidResponseBandwidthBurstSize\"\n\tErrorExecutionEnvironmentShutdown      ErrorType = \"Client.ExecutionEnvironmentShutDown\"\n\n\tErrorInvalidInvokeId ErrorType = \"Client.InvalidInvokeId\"\n\n\tErrorInvalidConnectionHoldTimeout ErrorType = \"ErrInvalidConnectionHoldTimeout\"\n\tErrorInvalidResponseHoldTimeout   ErrorType = \"ErrInvalidResponseHoldTimeout\"\n\tErrorIncompleteLongPollingConfig  ErrorType = \"ErrIncompleteLongPollingConfig\"\n)\n```\n\n```go\nconst (\n\tErrorAgentPermissionDenied  ErrorType = \"PermissionDenied\"\n\tErrorAgentExtensionLaunch   ErrorType = \"Extension.LaunchError\"\n\tErrorAgentTooManyExtensions ErrorType = \"TooManyExtensions\"\n\tErrorAgentInit              ErrorType = \"Extension.InitError\"\n\tErrorAgentExit              ErrorType = \"Extension.ExitError\"\n\tErrorAgentCrash             ErrorType = \"Extension.Crash\"\n\tErrorAgentUnknown           ErrorType = \"Unknown\"\n\n\tErrorRuntimeInit                      ErrorType = \"Runtime.InitError\"\n\tErrorRuntimeInvalidWorkingDir         ErrorType = \"Runtime.InvalidWorkingDir\"\n\tErrorRuntimeInvalidEntryPoint         ErrorType = \"Runtime.InvalidEntrypoint\"\n\tErrorRuntimeExit                      ErrorType = \"Runtime.ExitError\"\n\tErrorRuntimeUnknown                   ErrorType = \"Runtime.Unknown\"\n\tErrorRuntimeOutOfMemory               ErrorType = \"Runtime.OutOfMemory\"\n\tErrorRuntimeTruncatedResponse         ErrorType = \"Runtime.TruncatedResponse\"\n\tErrorRuntimeInvalidResponseModeHeader ErrorType = \"Runtime.InvalidResponseModeHeader\"\n\n\tErrorRuntimeInvokeResponseInProgress ErrorType = \"Runtime.InvokeResponseInProgress\"\n\tErrorRuntimeInvokeErrorInProgress    ErrorType = \"Runtime.ErrorResponseInProgress\"\n\tErrorRuntimeInvokeResponseWasSent    ErrorType = \"Runtime.InvokeResponseWasSent\"\n\tErrorRuntimeInvalidInvokeId          ErrorType = \"Runtime.InvalidInvokeId\"\n\tErrorRuntimeInvokeTimeout            ErrorType = \"Runtime.InvokeTimeout\"\n\tErrorRuntimeTooManyIdleRuntimes      ErrorType = \"Runtime.TooManyIdleRuntimes\"\n\n\tErrorSandboxTimedout               ErrorType = \"Sandbox.Timedout\"\n\tErrorSandboxFailure                ErrorType = \"Sandbox.Failure\"\n\tErrorSandboxTimeoutResponseTrailer ErrorType = \"Sandbox.TimeoutResponseTrailer\"\n\n\tErrorFunctionOversizedResponse ErrorType = \"Function.ResponseSizeTooLarge\"\n\tErrorFunctionUnknown           ErrorType = \"Function.Unknown\"\n)\n```\n\n```go\nconst (\n\tErrorReasonExtensionExecFailed    ErrorType = \"ExtensionExecFailure\"\n\tErrorAgentCountRegistrationFailed ErrorType = \"Extension.CountRegistrationFailed\"\n\tErrorAgentExtensionCreationFailed ErrorType = \"Extension.CreationFailed\"\n\tErrorAgentRegistrationFailed      ErrorType = \"Extension.RegistrationFailed\"\n\tErrorAgentReadyFailed             ErrorType = \"Extension.ReadyFailed\"\n\tErrorAgentGateCreationFailed      ErrorType = \"Extension.GateCreationFailed\"\n\n\tErrorReasonRuntimeExecFailed   ErrorType = \"RuntimeExecFailure\"\n\tErrorRuntimeReadyFailed        ErrorType = \"Runtime.ReadyFailed\"\n\tErrorRuntimeRegistrationFailed ErrorType = \"Runtime.RegistrationFailed\"\n\n\tErrSandboxLogSocketsUnavailable ErrorType = \"Sandbox.LogSocketsUnavailable\"\n\tErrSandboxEventSetupFailure     ErrorType = \"Sandbox.EventSetupFailure\"\n\n\tErrSandboxShutdownFailed  ErrorType = \"Sandbox.ShutdownFailed\"\n\tErrorResponseReplayFailed ErrorType = \"Sandbox.ResponseReplayFailed\"\n)\n```\n\n```go\nfunc GetValidExtensionErrorType(errorType string, defaultErrorType ErrorType) ErrorType\n```\n\n```go\nfunc GetValidRuntimeOrFunctionErrorType(errorType string) ErrorType\n```\n\n```go\nfunc (e ErrorType) String() string\n```\n\n```go\ntype ExtensionsExec struct {\n\tEnv        model.KVMap\n\tWorkingDir string\n}\n```\n\n```go\ntype ExternalAgents struct {\n\tBootstraps []string\n\tExecConfig ExtensionsExec\n}\n```\n\n```go\ntype FunctionError struct {\n\tType ErrorType `json:\"errorType,omitempty\"`\n\n\tMessage string `json:\"errorMessage,omitempty\"`\n}\n```\n\n```go\ntype FunctionMetadata struct {\n\tAccountID          string\n\tFunctionName       string\n\tFunctionVersion    string\n\tMemorySizeBytes    uint64\n\tHandler            string\n\tRuntimeInfo        RuntimeInfo\n\tRuntimeWorkerCount int\n}\n```\n\n```go\ntype PlatformError struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc NewPlatformError(cause error, errorType ErrorType) PlatformError\n```\n\n```go\nfunc WrapErrorIntoPlatformFatalError(e error, errorType ErrorType) PlatformError\n```\n\n```go\nfunc (e PlatformError) Error() string\n```\n\n```go\nfunc (e PlatformError) ErrorCategory() ErrorCategory\n```\n\n```go\nfunc (e PlatformError) ErrorDetails() string\n```\n\n```go\nfunc (e PlatformError) ErrorType() ErrorType\n```\n\n```go\nfunc (e PlatformError) ReturnCode() int\n```\n\n```go\nfunc (e PlatformError) Severity() ErrorSeverity\n```\n\n```go\nfunc (e PlatformError) Source() ErrorSource\n```\n\n```go\nfunc (e PlatformError) Unwrap() error\n```\n\n```go\ntype Runtime struct {\n\tExecConfig  RuntimeExec\n\tConfigError *RuntimeExecError\n}\n```\n\n```go\ntype RuntimeExec struct {\n\tEnv        model.KVMap\n\tCmd        []string\n\tWorkingDir string\n}\n```\n\n```go\ntype RuntimeExecError struct {\n\tType RuntimeExecErrorType\n\tErr  error\n}\n```\n\n```go\ntype RuntimeExecErrorType int\n```\n\n```go\nconst (\n\tInvalidTaskConfig RuntimeExecErrorType = iota\n\tInvalidEntrypoint\n\tInvalidWorkingDir\n)\n```\n\n```go\nfunc (e RuntimeExecErrorType) FatalErrorType() ErrorType\n```\n\n```go\ntype RuntimeInfo struct {\n\tArn     string\n\tVersion string\n}\n```\n\n```go\ntype RuntimeNextWaiter interface {\n\tRuntimeNextWait(ctx context.Context) AppError\n}\n```\n\n","path":"github.com/aws/aws-lambda-runtime-interface-emulator/internal/lambda-managed-instances/rapid/model","name":"model","synopsis":"","isRedistributable":true}
