swagger_models

package
v0.0.0-...-4e90260 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2017 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// ActionExecKindNodejs captures enum value "nodejs"
	ActionExecKindNodejs string = "nodejs"
	// ActionExecKindNodejs6 captures enum value "nodejs:6"
	ActionExecKindNodejs6 string = "nodejs:6"
	// ActionExecKindNodejsDefault captures enum value "nodejs:default"
	ActionExecKindNodejsDefault string = "nodejs:default"
	// ActionExecKindPython captures enum value "python"
	ActionExecKindPython string = "python"
	// ActionExecKindSwift captures enum value "swift"
	ActionExecKindSwift string = "swift"
	// ActionExecKindSwift3 captures enum value "swift:3"
	ActionExecKindSwift3 string = "swift:3"
	// ActionExecKindSwiftDefault captures enum value "swift:default"
	ActionExecKindSwiftDefault string = "swift:default"
	// ActionExecKindJava captures enum value "java"
	ActionExecKindJava string = "java"
	// ActionExecKindBlackbox captures enum value "blackbox"
	ActionExecKindBlackbox string = "blackbox"
)
View Source
const (
	// RuleStatusActive captures enum value "active"
	RuleStatusActive string = "active"
	// RuleStatusInactive captures enum value "inactive"
	RuleStatusInactive string = "inactive"
	// RuleStatusActivating captures enum value "activating"
	RuleStatusActivating string = "activating"
	// RuleStatusDeactivating captures enum value "deactivating"
	RuleStatusDeactivating string = "deactivating"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Action

type Action struct {

	// annotations on the item
	Annotations []*KeyValue `json:"annotations"`

	// exec
	// Required: true
	Exec *ActionExec `json:"exec"`

	// limits
	// Required: true
	Limits *ActionLimits `json:"limits"`

	// Name of the item
	// Required: true
	// Min Length: 1
	Name *string `json:"name"`

	// Namespace of the item
	// Required: true
	// Min Length: 1
	Namespace *string `json:"namespace"`

	// parameter bindings included in the context passed to the action
	// Required: true
	Parameters []*KeyValue `json:"parameters"`

	// Whether to publish the item or not
	// Required: true
	Publish *bool `json:"publish"`

	// Semantic version of the item
	// Required: true
	// Min Length: 1
	Version *string `json:"version"`
}

Action action swagger:model Action

func (*Action) Validate

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

Validate validates this action

type ActionExec

type ActionExec struct {

	// The code to execute when kind is not 'blackbox'
	Code string `json:"code,omitempty"`

	// container image name when kind is 'blackbox'
	Image string `json:"image,omitempty"`

	// optional zipfile reference when code kind is 'nodejs'
	Init string `json:"init,omitempty"`

	// the type of action
	// Required: true
	Kind *string `json:"kind"`
}

ActionExec definition of the action, such as javascript code or the name of a container swagger:model ActionExec

func (*ActionExec) Validate

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

Validate validates this action exec

type ActionLimits

type ActionLimits struct {

	// memory
	Memory *int32 `json:"memory,omitempty"`

	// timeout
	Timeout *int32 `json:"timeout,omitempty"`
}

ActionLimits Limits on a specific action swagger:model ActionLimits

func (*ActionLimits) Validate

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

Validate validates this action limits

type ActionPayload

type ActionPayload struct {

	// The payload to pass to the action.
	// Required: true
	Payload *string `json:"payload"`
}

ActionPayload action payload swagger:model ActionPayload

func (*ActionPayload) Validate

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

Validate validates this action payload

type ActionPut

type ActionPut struct {

	// annotations on the item
	Annotations []*KeyValue `json:"annotations"`

	// exec
	Exec *ActionExec `json:"exec,omitempty"`

	// limits
	Limits *ActionLimits `json:"limits,omitempty"`

	// parameter bindings included in the context passed to the action
	Parameters []*KeyValue `json:"parameters"`

	// Whether to publish the item or not
	Publish bool `json:"publish,omitempty"`

	// Semantic version of the item
	// Min Length: 1
	Version string `json:"version,omitempty"`
}

ActionPut A restricted Action view that elides properties that are auto-assigned or derived from the URI (i.e., the namespace and name). swagger:model ActionPut

func (*ActionPut) Validate

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

Validate validates this action put

type Activation

type Activation struct {

	// Id of the activation
	// Required: true
	ActivationID *string `json:"activationId"`

	// Time when the activation completed
	// Required: true
	End *string `json:"end"`

	// Logs generated by the activation
	// Required: true
	Logs *string `json:"logs"`

	// Name of the item
	// Required: true
	Name *string `json:"name"`

	// Namespace of the associated item
	// Required: true
	Namespace *string `json:"namespace"`

	// Whether to publish the item or not
	// Required: true
	Publish *bool `json:"publish"`

	// result
	// Required: true
	Result *ActivationResult `json:"result"`

	// Time when the activation began
	// Required: true
	Start *string `json:"start"`

	// The subject that activated the item
	// Required: true
	Subject *string `json:"subject"`

	// Semantic version of the item
	// Required: true
	Version *string `json:"version"`
}

Activation activation swagger:model Activation

func (*Activation) Validate

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

Validate validates this activation

type ActivationIds

type ActivationIds struct {

	// Array of activation ids
	Ids []string `json:"ids"`
}

ActivationIds activation ids swagger:model ActivationIds

func (*ActivationIds) Validate

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

Validate validates this activation ids

type ActivationInfo

type ActivationInfo struct {

	// Activation id
	// Min Length: 1
	ID string `json:"id,omitempty"`

	// result
	Result *ActivationInfoResult `json:"result,omitempty"`

	// Standard error from activation
	Stderr string `json:"stderr,omitempty"`

	// Standard output from activation
	Stdout string `json:"stdout,omitempty"`
}

ActivationInfo activation info swagger:model ActivationInfo

func (*ActivationInfo) Validate

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

Validate validates this activation info

type ActivationInfoResult

type ActivationInfoResult struct {

	// status
	// Required: true
	Status *string `json:"status"`
}

ActivationInfoResult Activation result swagger:model ActivationInfoResult

func (*ActivationInfoResult) Validate

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

Validate validates this activation info result

type ActivationLogs

type ActivationLogs struct {

	// Interleaved standard output and error of an activation
	Logs string `json:"logs,omitempty"`
}

ActivationLogs activation logs swagger:model ActivationLogs

func (*ActivationLogs) Validate

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

Validate validates this activation logs

type ActivationResult

type ActivationResult struct {

	// Exit status of the activation
	Status string `json:"status,omitempty"`

	// The return value from the activation
	Value interface{} `json:"value,omitempty"`
}

ActivationResult activation result swagger:model ActivationResult

func (*ActivationResult) Validate

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

Validate validates this activation result

type ActivationStderr

type ActivationStderr struct {

	// Standard error of an activation
	Stderr string `json:"stderr,omitempty"`
}

ActivationStderr activation stderr swagger:model ActivationStderr

func (*ActivationStderr) Validate

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

Validate validates this activation stderr

type EntityBrief

type EntityBrief struct {

	// Name of the item
	// Required: true
	// Min Length: 1
	Name *string `json:"name"`

	// Namespace of the item
	// Required: true
	// Min Length: 1
	Namespace *string `json:"namespace"`

	// Whether to publish the item or not
	// Required: true
	Publish *bool `json:"publish"`

	// Semantic version of the item
	// Required: true
	// Min Length: 1
	Version *string `json:"version"`
}

EntityBrief entity brief swagger:model EntityBrief

func (*EntityBrief) Validate

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

Validate validates this entity brief

type ErrorMessage

type ErrorMessage struct {

	// error
	// Required: true
	Error *string `json:"error"`
}

ErrorMessage error message swagger:model ErrorMessage

func (*ErrorMessage) Validate

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

Validate validates this error message

type ItemID

type ItemID struct {

	// id
	// Required: true
	ID *string `json:"id"`
}

ItemID item Id swagger:model ItemId

func (*ItemID) Validate

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

Validate validates this item Id

type KeyValue

type KeyValue struct {

	// key
	// Required: true
	Key *string `json:"key"`

	// Any JSON value
	// Required: true
	Value interface{} `json:"value"`
}

KeyValue key value swagger:model KeyValue

func (*KeyValue) Validate

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

Validate validates this key value

type Package

type Package struct {

	// annotations on the item
	Annotations []*KeyValue `json:"annotations"`

	// binding
	Binding *PackageBinding `json:"binding,omitempty"`

	// Name of the item
	// Required: true
	// Min Length: 1
	Name *string `json:"name"`

	// Namespace of the item
	// Required: true
	// Min Length: 1
	Namespace *string `json:"namespace"`

	// parameter for the package
	// Required: true
	Parameters []*KeyValue `json:"parameters"`

	// Whether to publish the item or not
	// Required: true
	Publish *bool `json:"publish"`

	// Semantic version of the item
	// Required: true
	// Min Length: 1
	Version *string `json:"version"`
}

Package package swagger:model Package

func (*Package) Validate

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

Validate validates this package

type PackageBinding

type PackageBinding struct {

	// Name of the item
	// Required: true
	Name *string `json:"name"`

	// Namespace of the item
	// Required: true
	Namespace *string `json:"namespace"`
}

PackageBinding package binding swagger:model PackageBinding

func (*PackageBinding) Validate

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

Validate validates this package binding

type PackagePut

type PackagePut struct {

	// annotations on the item
	Annotations []*KeyValue `json:"annotations"`

	// binding
	Binding *PackageBinding `json:"binding,omitempty"`

	// parameter for the package
	Parameters []*KeyValue `json:"parameters"`

	// Whether to publish the item or not
	Publish bool `json:"publish,omitempty"`

	// Semantic version of the item
	// Min Length: 1
	Version string `json:"version,omitempty"`
}

PackagePut A restricted Package view that elides properties that are auto-assigned or derived from the URI (i.e., the namespace and name). swagger:model PackagePut

func (*PackagePut) Validate

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

Validate validates this package put

type Provider

type Provider struct {

	// Name of the provider
	// Required: true
	// Min Length: 1
	Name *string `json:"name"`

	// parameter bindings included in the context passed to the provider
	Parameters []*KeyValue `json:"parameters"`

	// Whether to publish the provider or not
	Publish bool `json:"publish,omitempty"`
}

Provider provider swagger:model Provider

func (*Provider) Validate

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

Validate validates this provider

type ProviderAction

type ProviderAction struct {

	// Name of the action
	// Required: true
	// Min Length: 1
	Name *string `json:"name"`
}

ProviderAction provider action swagger:model ProviderAction

func (*ProviderAction) Validate

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

Validate validates this provider action

type ProviderBinding

type ProviderBinding struct {

	// Name of the binding
	// Required: true
	// Min Length: 1
	Name *string `json:"name"`
}

ProviderBinding provider binding swagger:model ProviderBinding

func (*ProviderBinding) Validate

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

Validate validates this provider binding

type ProviderTrigger

type ProviderTrigger struct {

	// Name of the trigger
	// Required: true
	// Min Length: 1
	Name *string `json:"name"`
}

ProviderTrigger provider trigger swagger:model ProviderTrigger

func (*ProviderTrigger) Validate

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

Validate validates this provider trigger

type Rule

type Rule struct {

	// Name of the action
	// Required: true
	// Min Length: 1
	Action *string `json:"action"`

	// Name of the item
	// Required: true
	// Min Length: 1
	Name *string `json:"name"`

	// Namespace of the item
	// Required: true
	// Min Length: 1
	Namespace *string `json:"namespace"`

	// Whether to publish the item or not
	// Required: true
	Publish *bool `json:"publish"`

	// Status of a rule
	// Required: true
	Status *string `json:"status"`

	// Name of the trigger
	// Required: true
	// Min Length: 1
	Trigger *string `json:"trigger"`

	// Semantic version of the item
	// Required: true
	// Min Length: 1
	Version *string `json:"version"`
}

Rule rule swagger:model Rule

func (*Rule) Validate

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

Validate validates this rule

type RulePut

type RulePut struct {

	// Name of the action
	// Min Length: 1
	Action string `json:"action,omitempty"`

	// Whether to publish the item or not
	Publish bool `json:"publish,omitempty"`

	// Name of the trigger
	// Min Length: 1
	Trigger string `json:"trigger,omitempty"`

	// Semantic version of the item
	// Min Length: 1
	Version string `json:"version,omitempty"`
}

RulePut A restricted Rule view that elides properties that are auto-assigned or derived from the URI (i.e., the namespace and name). swagger:model RulePut

func (*RulePut) Validate

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

Validate validates this rule put

type Trigger

type Trigger struct {

	// annotations on the item
	Annotations []*KeyValue `json:"annotations"`

	// limits
	// Required: true
	Limits TriggerLimits `json:"limits"`

	// Name of the item
	// Required: true
	// Min Length: 1
	Name *string `json:"name"`

	// Namespace of the item
	// Required: true
	// Min Length: 1
	Namespace *string `json:"namespace"`

	// parameter bindings for the trigger
	// Required: true
	Parameters []*KeyValue `json:"parameters"`

	// Whether to publish the item or not
	// Required: true
	Publish *bool `json:"publish"`

	// Semantic version of the item
	// Required: true
	// Min Length: 1
	Version *string `json:"version"`
}

Trigger trigger swagger:model Trigger

func (*Trigger) Validate

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

Validate validates this trigger

type TriggerLimits

type TriggerLimits interface{}

TriggerLimits Limits on a specific trigger swagger:model TriggerLimits

type TriggerPayload

type TriggerPayload struct {

	// The payload of the trigger event.
	// Required: true
	Payload *string `json:"payload"`
}

TriggerPayload trigger payload swagger:model TriggerPayload

func (*TriggerPayload) Validate

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

Validate validates this trigger payload

type TriggerPut

type TriggerPut struct {

	// annotations on the item
	Annotations []*KeyValue `json:"annotations"`

	// limits
	Limits TriggerLimits `json:"limits,omitempty"`

	// parameter bindings included in the context passed to the trigger
	Parameters []*KeyValue `json:"parameters"`

	// Whether to publish the item or not
	Publish bool `json:"publish,omitempty"`

	// Semantic version of the item
	// Min Length: 1
	Version string `json:"version,omitempty"`
}

TriggerPut A restricted Trigger view that elides properties that are auto-assigned or derived from the URI (i.e., the namespace and name). swagger:model TriggerPut

func (*TriggerPut) Validate

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

Validate validates this trigger put

Jump to

Keyboard shortcuts

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