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

models

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2017 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 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"`
}

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

	// id
	ID strfmt.UUID `json:"id,omitempty"`

	// image
	// Required: true
	Image *string `json:"image"`

	// 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"`

	// status
	Status Status `json:"status,omitempty"`

	// tags
	Tags FunctionTags `json:"tags"`
}

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 FunctionTags

type FunctionTags []*Tag

func (FunctionTags) Validate

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

Validate validates this function tags

type GetFunctionRunsOKBody

type GetFunctionRunsOKBody []*Run

func (GetFunctionRunsOKBody) Validate

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

Validate validates this get function runs o k body

type GetFunctionsOKBody

type GetFunctionsOKBody []*Function

func (GetFunctionsOKBody) Validate

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

Validate validates this get functions o k body

type GetRunsOKBody

type GetRunsOKBody []*Run

func (GetRunsOKBody) Validate

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

Validate validates this get runs o k body

type Run

type Run struct {

	// blocking
	Blocking bool `json:"blocking,omitempty"`

	// executed time
	// Read Only: true
	ExecutedTime int64 `json:"executedTime,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"`

	// input
	Input interface{} `json:"input,omitempty"`

	// logs
	Logs []string `json:"logs"`

	// 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"`

	// status
	Status Status `json:"status,omitempty"`
}

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"`
}

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
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"`
}

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