Help us shape the future of Go! Take the 2026 Go Developer Survey

models

package
v0.1.13 Latest Latest
Warning

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

Go to latest
Published: May 8, 2018 License: Apache-2.0 Imports: 6 Imported by: 0

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

func (*CloudEvent) Validate added in v0.1.13

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

Validate validates this cloud event

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

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 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

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

MarshalBinary interface implementation

func (*Function) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*Function) Validate

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

Validate validates this function

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

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

MarshalBinary interface implementation

func (*Logs) UnmarshalBinary added in v0.1.13

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

UnmarshalBinary interface implementation

func (*Logs) Validate added in v0.1.13

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

Validate validates this logs

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

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

MarshalBinary interface implementation

func (*Run) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*Run) Validate

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

Validate validates this run

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

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

MarshalBinary interface implementation

func (*Schema) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*Schema) Validate

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

Validate validates this schema

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"
)

func (Status) Validate

func (m Status) Validate(formats strfmt.Registry) error

Validate validates this status

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

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

MarshalBinary interface implementation

func (*Tag) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*Tag) Validate

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

Validate validates this tag

Jump to

Keyboard shortcuts

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