modelsv2

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2020 License: Apache-2.0 Imports: 5 Imported by: 13

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

func (m *App) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*App) UnmarshalBinary

func (m *App) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*App) Validate

func (m *App) Validate(formats strfmt.Registry) error

Validate validates this app

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

func (m *AppList) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*AppList) UnmarshalBinary

func (m *AppList) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*AppList) Validate

func (m *AppList) Validate(formats strfmt.Registry) error

Validate validates this app list

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

func (m *Call) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Call) UnmarshalBinary

func (m *Call) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Call) Validate

func (m *Call) Validate(formats strfmt.Registry) error

Validate validates this call

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

func (m *CallList) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*CallList) UnmarshalBinary

func (m *CallList) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*CallList) Validate

func (m *CallList) Validate(formats strfmt.Registry) error

Validate validates this call list

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

func (m *Error) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Error) UnmarshalBinary

func (m *Error) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Error) Validate

func (m *Error) Validate(formats strfmt.Registry) error

Validate validates this error

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

func (m *Fn) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Fn) UnmarshalBinary

func (m *Fn) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Fn) Validate

func (m *Fn) Validate(formats strfmt.Registry) error

Validate validates this fn

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

func (m *FnList) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*FnList) UnmarshalBinary

func (m *FnList) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*FnList) Validate

func (m *FnList) Validate(formats strfmt.Registry) error

Validate validates this fn list

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

func (m *Log) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Log) UnmarshalBinary

func (m *Log) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Log) Validate

func (m *Log) Validate(formats strfmt.Registry) error

Validate validates this log

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

func (m *Stat) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Stat) UnmarshalBinary

func (m *Stat) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Stat) Validate

func (m *Stat) Validate(formats strfmt.Registry) error

Validate validates this stat

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

func (*StatMetrics) Validate

func (m *StatMetrics) Validate(formats strfmt.Registry) error

Validate validates this stat metrics

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

func (m *Trigger) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Trigger) UnmarshalBinary

func (m *Trigger) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Trigger) Validate

func (m *Trigger) Validate(formats strfmt.Registry) error

Validate validates this trigger

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

func (*TriggerList) Validate

func (m *TriggerList) Validate(formats strfmt.Registry) error

Validate validates this trigger list

Jump to

Keyboard shortcuts

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