Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CloudEvent ¶ added in v0.1.13
type CloudEvent struct {
// cloud events version
// Required: true
CloudEventsVersion *string `json:"cloud-events-version"`
// content type
ContentType string `json:"content-type,omitempty"`
// data
// Max Length: 0
Data string `json:"data,omitempty"`
// event id
// Required: true
EventID *string `json:"event-id"`
// event time
EventTime strfmt.DateTime `json:"event-time,omitempty"`
// event type
// Required: true
// Max Length: 128
// Pattern: ^[\w\d\-\.]+$
EventType *string `json:"event-type"`
// event type version
EventTypeVersion string `json:"event-type-version,omitempty"`
// extensions
Extensions map[string]interface{} `json:"extensions,omitempty"`
// namespace
// Required: true
Namespace *string `json:"namespace"`
// schema url
SchemaURL string `json:"schema-url,omitempty"`
// source id
// Required: true
SourceID *string `json:"source-id"`
// source type
// Required: true
SourceType *string `json:"source-type"`
}
CloudEvent cloud event swagger:model CloudEvent
func (*CloudEvent) MarshalBinary ¶ added in v0.1.13
func (m *CloudEvent) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*CloudEvent) UnmarshalBinary ¶ added in v0.1.13
func (m *CloudEvent) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type Error ¶
type Error struct {
// code
Code int64 `json:"code,omitempty"`
// function error
FunctionError interface{} `json:"functionError,omitempty"`
// message
// Required: true
Message *string `json:"message"`
// user error
UserError interface{} `json:"userError,omitempty"`
}
Error error swagger:model Error
func (*Error) MarshalBinary ¶
MarshalBinary interface implementation
func (*Error) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type Function ¶
type Function struct {
// code
// Required: true
Code *string `json:"code"`
// created time
CreatedTime int64 `json:"createdTime,omitempty"`
// faas Id
FaasID strfmt.UUID `json:"faasId,omitempty"`
// id
ID strfmt.UUID `json:"id,omitempty"`
// image
// Required: true
Image *string `json:"image"`
// kind
// Read Only: true
// Pattern: ^[\w\d\-]+$
Kind string `json:"kind,omitempty"`
// main
Main *string `json:"main,omitempty"`
// modified time
ModifiedTime int64 `json:"modifiedTime,omitempty"`
// name
// Required: true
// Pattern: ^[\w\d\-]+$
Name *string `json:"name"`
// schema
Schema *Schema `json:"schema,omitempty"`
// secrets
Secrets []string `json:"secrets"`
// services
Services []string `json:"services"`
// status
Status Status `json:"status,omitempty"`
// tags
Tags []*Tag `json:"tags"`
}
Function function swagger:model Function
func (*Function) MarshalBinary ¶
MarshalBinary interface implementation
func (*Function) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type Logs ¶ added in v0.1.13
type Logs struct {
// stderr
// Required: true
Stderr []string `json:"stderr"`
// stdout
// Required: true
Stdout []string `json:"stdout"`
}
Logs logs swagger:model Logs
func (*Logs) MarshalBinary ¶ added in v0.1.13
MarshalBinary interface implementation
func (*Logs) UnmarshalBinary ¶ added in v0.1.13
UnmarshalBinary interface implementation
type Run ¶
type Run struct {
// blocking
Blocking bool `json:"blocking,omitempty"`
// event
Event *CloudEvent `json:"event,omitempty"`
// executed time
// Read Only: true
ExecutedTime int64 `json:"executedTime,omitempty"`
// faas Id
FaasID strfmt.UUID `json:"faasId,omitempty"`
// finished time
// Read Only: true
FinishedTime int64 `json:"finishedTime,omitempty"`
// function Id
// Read Only: true
FunctionID string `json:"functionId,omitempty"`
// function name
// Read Only: true
FunctionName string `json:"functionName,omitempty"`
// http context
// Read Only: true
HTTPContext map[string]interface{} `json:"httpContext,omitempty"`
// input
Input interface{} `json:"input,omitempty"`
// logs
Logs *Logs `json:"logs,omitempty"`
// name
// Read Only: true
Name strfmt.UUID `json:"name,omitempty"`
// output
// Read Only: true
Output interface{} `json:"output,omitempty"`
// reason
Reason []string `json:"reason"`
// secrets
Secrets []string `json:"secrets"`
// services
Services []string `json:"services"`
// status
Status Status `json:"status,omitempty"`
// tags
Tags []*Tag `json:"tags"`
}
Run run swagger:model Run
func (*Run) MarshalBinary ¶
MarshalBinary interface implementation
func (*Run) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type Schema ¶
type Schema struct {
// in
In interface{} `json:"in,omitempty"`
// out
Out interface{} `json:"out,omitempty"`
}
Schema schema swagger:model Schema
func (*Schema) MarshalBinary ¶
MarshalBinary interface implementation
func (*Schema) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type Status ¶
type Status string
Status status swagger:model Status
const ( // StatusCREATING captures enum value "CREATING" StatusCREATING Status = "CREATING" // StatusREADY captures enum value "READY" StatusREADY Status = "READY" // StatusUPDATING captures enum value "UPDATING" StatusUPDATING Status = "UPDATING" // StatusERROR captures enum value "ERROR" StatusERROR Status = "ERROR" // StatusDELETING captures enum value "DELETING" StatusDELETING Status = "DELETING" )
type Tag ¶
type Tag struct {
// key
Key string `json:"key,omitempty"`
// value
Value string `json:"value,omitempty"`
}
Tag tag swagger:model Tag
func (*Tag) MarshalBinary ¶
MarshalBinary interface implementation
func (*Tag) UnmarshalBinary ¶
UnmarshalBinary interface implementation