Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type App ¶
type App struct { // Application annotations - this is a map of annotations attached to this app, keys must not exceed 128 bytes and must consist of non-whitespace printable ascii characters, and the seralized representation of individual values must not exeed 512 bytes. Annotations map[string]interface{} `json:"annotations,omitempty"` // Application function configuration, applied to all Functions. Config map[string]string `json:"config,omitempty"` // Time when app was created. Always in UTC. // Read Only: true // Format: date-time CreatedAt strfmt.DateTime `json:"created_at,omitempty"` // App ID // Read Only: true ID string `json:"id,omitempty"` // Name of this app. Must be different than the image name. Can ony contain alphanumeric, -, and _. // Read Only: true Name string `json:"name,omitempty"` // A comma separated list of syslog urls to send all function logs to. supports tls, udp or tcp. e.g. tls://logs.papertrailapp.com:1 SyslogURL *string `json:"syslog_url,omitempty"` // Most recent time that app was updated. Always in UTC. // Read Only: true // Format: date-time UpdatedAt strfmt.DateTime `json:"updated_at,omitempty"` }
App app swagger:model App
func (*App) MarshalBinary ¶
MarshalBinary interface implementation
func (*App) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type AppList ¶
type AppList struct { // items // Required: true Items []*App `json:"items"` // Cursor to send with subsequent request to receive the next page, if non-empty. // Read Only: true NextCursor string `json:"next_cursor,omitempty"` }
AppList app list swagger:model AppList
func (*AppList) MarshalBinary ¶
MarshalBinary interface implementation
func (*AppList) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type Call ¶
type Call struct { // App ID of fn that executed this call. // Read Only: true AppID string `json:"app_id,omitempty"` // Time when call completed, whether it was successul or failed. Always in UTC. // Read Only: true // Format: date-time CompletedAt strfmt.DateTime `json:"completed_at,omitempty"` // Time when call was submitted. Always in UTC. // Read Only: true // Format: date-time CreatedAt strfmt.DateTime `json:"created_at,omitempty"` // Call execution error, if status is 'error'. // Read Only: true Error string `json:"error,omitempty"` // Fn ID of fn that executed this call. // Read Only: true FnID string `json:"fn_id,omitempty"` // Call ID. // Read Only: true ID string `json:"id,omitempty"` // Time when call started execution. Always in UTC. // Read Only: true // Format: date-time StartedAt strfmt.DateTime `json:"started_at,omitempty"` // A histogram of stats for a call, each is a snapshot of a calls state at the timestamp. // Read Only: true Stats []*Stat `json:"stats"` // Call execution status. // Read Only: true Status string `json:"status,omitempty"` }
Call call swagger:model Call
func (*Call) MarshalBinary ¶
MarshalBinary interface implementation
func (*Call) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type CallList ¶
type CallList struct { // items // Required: true Items []*Call `json:"items"` // Cursor to send with subsequent request to recieve next page, if non-empty. // Read Only: true NextCursor string `json:"next_cursor,omitempty"` }
CallList call list swagger:model CallList
func (*CallList) MarshalBinary ¶
MarshalBinary interface implementation
func (*CallList) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type Error ¶
type Error struct { // fields // Read Only: true Fields string `json:"fields,omitempty"` // message // Read Only: true Message string `json:"message,omitempty"` }
Error error swagger:model Error
func (*Error) MarshalBinary ¶
MarshalBinary interface implementation
func (*Error) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type Fn ¶
type Fn struct { // Func annotations - this is a map of annotations attached to this func, keys must not exceed 128 bytes and must consist of non-whitespace printable ascii characters, and the seralized representation of individual values must not exeed 512 bytes. Annotations map[string]interface{} `json:"annotations,omitempty"` // App ID. AppID string `json:"app_id,omitempty"` // Function configuration key values. Config map[string]string `json:"config,omitempty"` // Time when function was created. Always in UTC RFC3339. // Read Only: true // Format: date-time CreatedAt strfmt.DateTime `json:"created_at,omitempty"` // Unique identifier // Read Only: true ID string `json:"id,omitempty"` // Hot functions idle timeout before container termination. Value in Seconds. IDLETimeout *int32 `json:"idle_timeout,omitempty"` // Full container image name, e.g. hub.docker.com/fnproject/yo or fnproject/yo (default registry: hub.docker.com) Image string `json:"image,omitempty"` // Maximum usable memory given to function (MiB). Memory uint64 `json:"memory,omitempty"` // Unique name for this function. Name string `json:"name,omitempty"` // Timeout for executions of a function. Value in Seconds. Timeout *int32 `json:"timeout,omitempty"` // Most recent time that function was updated. Always in UTC RFC3339. // Read Only: true // Format: date-time UpdatedAt strfmt.DateTime `json:"updated_at,omitempty"` }
Fn fn swagger:model Fn
func (*Fn) MarshalBinary ¶
MarshalBinary interface implementation
func (*Fn) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type FnList ¶
type FnList struct { // items // Required: true Items []*Fn `json:"items"` // Cursor to send with subsequent request to receive the next page, if non-empty. // Read Only: true NextCursor string `json:"next_cursor,omitempty"` }
FnList fn list swagger:model FnList
func (*FnList) MarshalBinary ¶
MarshalBinary interface implementation
func (*FnList) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type Log ¶
type Log struct { // Call UUID ID CallID string `json:"call_id,omitempty"` // log Log string `json:"log,omitempty"` }
Log log swagger:model Log
func (*Log) MarshalBinary ¶
MarshalBinary interface implementation
func (*Log) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type Stat ¶
type Stat struct { // metrics Metrics *StatMetrics `json:"metrics,omitempty"` // timestamp // Format: date-time Timestamp strfmt.DateTime `json:"timestamp,omitempty"` }
Stat stat swagger:model Stat
func (*Stat) MarshalBinary ¶
MarshalBinary interface implementation
func (*Stat) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type StatMetrics ¶
type StatMetrics struct { // cpu kernel CPUKernel int64 `json:"cpu_kernel,omitempty"` // cpu total CPUTotal int64 `json:"cpu_total,omitempty"` // cpu user CPUUser int64 `json:"cpu_user,omitempty"` // disk read DiskRead int64 `json:"disk_read,omitempty"` // disk write DiskWrite int64 `json:"disk_write,omitempty"` // mem limit MemLimit int64 `json:"mem_limit,omitempty"` // mem usage MemUsage int64 `json:"mem_usage,omitempty"` // net rx NetRx int64 `json:"net_rx,omitempty"` // net tx NetTx int64 `json:"net_tx,omitempty"` }
StatMetrics stat metrics swagger:model StatMetrics
func (*StatMetrics) MarshalBinary ¶
func (m *StatMetrics) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*StatMetrics) UnmarshalBinary ¶
func (m *StatMetrics) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type Trigger ¶
type Trigger struct { // Trigger annotations - this is a map of annotations attached to this trigger, keys must not exceed 128 bytes and must consist of non-whitespace printable ascii characters, and the seralized representation of individual values must not exeed 512 bytes. Annotations map[string]interface{} `json:"annotations,omitempty"` // Opaque, unique Application identifier // Read Only: true AppID string `json:"app_id,omitempty"` // Time when trigger was created. Always in UTC. // Read Only: true // Format: date-time CreatedAt strfmt.DateTime `json:"created_at,omitempty"` // Opaque, unique Function identifier // Read Only: true FnID string `json:"fn_id,omitempty"` // Unique Trigger identifier. // Read Only: true ID string `json:"id,omitempty"` // Unique name for this trigger, used to identify this trigger. Name string `json:"name,omitempty"` // URI path for this trigger. e.g. `sayHello`, `say/hello` Source string `json:"source,omitempty"` // Class of trigger, e.g. schedule, http, queue Type string `json:"type,omitempty"` // Most recent time that trigger was updated. Always in UTC. // Read Only: true // Format: date-time UpdatedAt strfmt.DateTime `json:"updated_at,omitempty"` }
Trigger trigger swagger:model Trigger
func (*Trigger) MarshalBinary ¶
MarshalBinary interface implementation
func (*Trigger) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type TriggerList ¶
type TriggerList struct { // items // Required: true Items []*Trigger `json:"items"` // Cursor to send with subsequent request to receive the next page, if non-empty. // Read Only: true NextCursor string `json:"next_cursor,omitempty"` }
TriggerList trigger list swagger:model TriggerList
func (*TriggerList) MarshalBinary ¶
func (m *TriggerList) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*TriggerList) UnmarshalBinary ¶
func (m *TriggerList) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation