protocol

package
v0.0.0-...-5f09953 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const MaxInlineBlob = 100

Variables

This section is empty.

Functions

This section is empty.

Types

type Blob

type Blob struct {
	String string `json:"s,omitempty"`
	Bytes  []byte `json:"b,omitempty"`
	Ref    string `json:"r,omitempty"`
	Err    string `json:"e,omitempty"`
}

type File

type File struct {
	Blob
	Mode os.FileMode `json:"m,omitempty"`
}

type FileAndPath

type FileAndPath struct {
	File
	Path string `json:"p"`
}

type FileList

type FileList []FileAndPath

type InvocationResponse

type InvocationResponse struct {
	ExitStatus  int            `json:"status"`
	Stdout      *Blob          `json:"stdout,omitempty"`
	Stderr      *Blob          `json:"stderr,omitempty"`
	Outputs     FileList       `json:"outputs,omitempty"`
	InlineSpans []tracing.Span `json:"inlinespans,omitempty"`
	Spans       *Blob          `json:"spans,omitempty"`
	Usage       UsageMetrics   `json:"usage"`
	Times       Timing         `json:"times"`
}

type InvocationSpec

type InvocationSpec struct {
	Trace   *tracing.Propagation `json:"trace,omitemptry"`
	Args    []string             `json:"args"`
	Stdin   *Blob                `json:"stdin,omitempty"`
	Files   FileList             `json:"files,omitempty"`
	Outputs []string             `json:"outputs,emitempty"`
}

type LambdaUsage

type LambdaUsage struct {
	Millis    uint64
	MB_Millis uint64
	Requests  uint64
}

type StoreUsage

type StoreUsage struct {
	Write_Requests uint64
	Read_Requests  uint64
	Xfer_In        uint64
	Xfer_Out       uint64
}

type Timing

type Timing struct {
	ColdStart bool          `json:"cold"`
	E2E       time.Duration `json:"e2e"`
	Fetch     time.Duration `json:"fetch"`
	Upload    time.Duration `json:"upload"`
	Exec      time.Duration `json:"exec"`
}

type UsageMetrics

type UsageMetrics struct {
	Lambda LambdaUsage
	S3     StoreUsage
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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