model

package
v0.0.0-...-4fa2157 Latest Latest
Warning

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

Go to latest
Published: Jan 2, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ArtefactType

type ArtefactType string
const (
	ArtefactTypeOCI ArtefactType = "oci"
	ArtefactTypeZIP ArtefactType = "zip"
)

type DurationMS

type DurationMS time.Duration

func (DurationMS) MarshalJSON

func (d DurationMS) MarshalJSON() ([]byte, error)

func (*DurationMS) UnmarshalJSON

func (d *DurationMS) UnmarshalJSON(b []byte) error

type InitRequestMessage

type InitRequestMessage struct {
	AccountID            string          `json:"account_id"`
	AwsKey               string          `json:"aws_key"`
	AwsSecret            string          `json:"aws_secret"`
	AwsSession           string          `json:"aws_session"`
	AwsRegion            string          `json:"aws_region"`
	EnvVars              KVMap           `json:"env_vars"`
	MemorySizeBytes      int             `json:"ram_limit"`
	FunctionARN          string          `json:"function_arn"`
	FunctionVersion      string          `json:"function_version"`
	FunctionVersionID    string          `json:"version_id"`
	ArtefactType         ArtefactType    `json:"artefact_type"`
	TaskName             string          `json:"task_name"`
	Handler              string          `json:"handler,omitempty"`
	InvokeTimeout        DurationMS      `json:"invoke_timeout_ms"`
	InitTimeout          DurationMS      `json:"init_timeout_ms"`
	RuntimeVersion       string          `json:"runtime_version,omitempty"`
	RuntimeArn           string          `json:"runtime_arn,omitempty"`
	RuntimeWorkerCount   int             `json:"runtime_worker_count"`
	LogFormat            string          `json:"log_format"`
	LogLevel             string          `json:"log_level"`
	LogGroupName         string          `json:"log_group_name"`
	LogStreamName        string          `json:"log_stream_name"`
	TelemetryAPIAddress  TelemetryAddr   `json:"telemetry_api_address"`
	TelemetryPassphrase  string          `json:"telemetry_passphrase"`
	XRayDaemonAddress    string          `json:"xray_daemon_address"`
	XrayTracingMode      XrayTracingMode `json:"xray_tracing_mode"`
	CurrentWorkingDir    string          `json:"cwd"`
	RuntimeBinaryCommand []string        `json:"cmd"`

	AvailabilityZoneId string `json:"aws_availability_zone_id"`

	AmiId string `json:"ami_id"`
}

func (InitRequestMessage) String

func (i InitRequestMessage) String() string

type KVMap

type KVMap map[string]string

type KVSlice

type KVSlice []string

type TelemetryAddr

type TelemetryAddr netip.AddrPort

func (TelemetryAddr) MarshalJSON

func (t TelemetryAddr) MarshalJSON() ([]byte, error)

func (*TelemetryAddr) UnmarshalJSON

func (t *TelemetryAddr) UnmarshalJSON(b []byte) error

type XrayTracingMode

type XrayTracingMode string
const (
	XRayTracingModeActive      XrayTracingMode = "Active"
	XRayTracingModePassThrough XrayTracingMode = "PassThrough"
)

Jump to

Keyboard shortcuts

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