models

package
v0.0.0-...-1b308a6 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2018 License: Apache-2.0 Imports: 6 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (

	// ActionExecKindNodejs6 captures enum value "nodejs:6"
	ActionExecKindNodejs6 string = "nodejs:6"

	// ActionExecKindNodejs8 captures enum value "nodejs:8"
	ActionExecKindNodejs8 string = "nodejs:8"

	// ActionExecKindNodejsDefault captures enum value "nodejs:default"
	ActionExecKindNodejsDefault string = "nodejs:default"

	// ActionExecKindPython2 captures enum value "python:2"
	ActionExecKindPython2 string = "python:2"

	// ActionExecKindPython3 captures enum value "python:3"
	ActionExecKindPython3 string = "python:3"

	// ActionExecKindPythonDefault captures enum value "python:default"
	ActionExecKindPythonDefault string = "python:default"

	// ActionExecKindPhp71 captures enum value "php:7.1"
	ActionExecKindPhp71 string = "php:7.1"

	// ActionExecKindPhp72 captures enum value "php:7.2"
	ActionExecKindPhp72 string = "php:7.2"

	// ActionExecKindSwift311 captures enum value "swift:3.1.1"
	ActionExecKindSwift311 string = "swift:3.1.1"

	// ActionExecKindSwift41 captures enum value "swift:4.1"
	ActionExecKindSwift41 string = "swift:4.1"

	// ActionExecKindJava captures enum value "java"
	ActionExecKindJava string = "java"

	// ActionExecKindJavaDefault captures enum value "java:default"
	ActionExecKindJavaDefault string = "java:default"

	// ActionExecKindBlackbox captures enum value "blackbox"
	ActionExecKindBlackbox string = "blackbox"

	// ActionExecKindSequence captures enum value "sequence"
	ActionExecKindSequence string = "sequence"
)
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"
)
View Source
const (

	// RulePutStatusActive captures enum value "active"
	RulePutStatusActive string = "active"

	// RulePutStatusInactive captures enum value "inactive"
	RulePutStatusInactive string = "inactive"

	// RulePutStatus captures enum value ""
	RulePutStatus string = ""
)
View Source
const (

	// SetStateParamsBodyStatusInactive captures enum value "inactive"
	SetStateParamsBodyStatusInactive string = "inactive"

	// SetStateParamsBodyStatusActive captures enum value "active"
	SetStateParamsBodyStatusActive string = "active"
)

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
	Parameters []*KeyValue `json:"parameters"`

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

	// Time when the action was updated
	Updated int64 `json:"updated,omitempty"`

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

Action action swagger:model Action

func (*Action) MarshalBinary

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

MarshalBinary interface implementation

func (*Action) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*Action) Validate

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

Validate validates this action

type ActionExec

type ActionExec struct {

	// Whether the action has a binary attachment or not
	Binary bool `json:"binary,omitempty"`

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

	// For sequence actions, the individual action components
	Components []string `json:"components"`

	// 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
	// Enum: [nodejs:6 nodejs:8 nodejs:default python:2 python:3 python:default php:7.1 php:7.2 swift:3.1.1 swift:4.1 java java:default blackbox sequence]
	Kind string `json:"kind,omitempty"`

	// main entrypoint of the action code
	Main string `json:"main,omitempty"`
}

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

func (*ActionExec) MarshalBinary

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

MarshalBinary interface implementation

func (*ActionExec) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*ActionExec) Validate

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

Validate validates this action exec

type ActionLimits

type ActionLimits struct {

	// log size in megabytes
	Logs *int32 `json:"logs,omitempty"`

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

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

ActionLimits Limits on a specific action swagger:model ActionLimits

func (*ActionLimits) MarshalBinary

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

MarshalBinary interface implementation

func (*ActionLimits) UnmarshalBinary

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

UnmarshalBinary interface implementation

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

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

MarshalBinary interface implementation

func (*ActionPayload) UnmarshalBinary

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

UnmarshalBinary interface implementation

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

	// Name of the item
	// Min Length: 1
	Name string `json:"name,omitempty"`

	// Namespace of the item
	// Min Length: 1
	Namespace string `json:"namespace,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 used when updating an Action swagger:model ActionPut

func (*ActionPut) MarshalBinary

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

MarshalBinary interface implementation

func (*ActionPut) UnmarshalBinary

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

UnmarshalBinary interface implementation

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

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

	// the activation id that caused this activation
	Cause string `json:"cause,omitempty"`

	// How long the invocation took, in millisecnods
	Duration int64 `json:"duration,omitempty"`

	// Time when the activation completed
	End int64 `json:"end,omitempty"`

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

	// response
	// Required: true
	Response *ActivationResult `json:"response"`

	// Time when the activation began
	// Required: true
	Start *int64 `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) MarshalBinary

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

MarshalBinary interface implementation

func (*Activation) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*Activation) Validate

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

Validate validates this activation

type ActivationID

type ActivationID struct {

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

ActivationID activation Id swagger:model ActivationId

func (*ActivationID) MarshalBinary

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

MarshalBinary interface implementation

func (*ActivationID) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*ActivationID) Validate

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

Validate validates this activation Id

type ActivationIds

type ActivationIds struct {

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

ActivationIds activation ids swagger:model ActivationIds

func (*ActivationIds) MarshalBinary

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

MarshalBinary interface implementation

func (*ActivationIds) UnmarshalBinary

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

UnmarshalBinary interface implementation

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

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

MarshalBinary interface implementation

func (*ActivationInfo) UnmarshalBinary

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

UnmarshalBinary interface implementation

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

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

MarshalBinary interface implementation

func (*ActivationInfoResult) UnmarshalBinary

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

UnmarshalBinary interface implementation

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

ActivationLogs activation logs swagger:model ActivationLogs

func (*ActivationLogs) MarshalBinary

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

MarshalBinary interface implementation

func (*ActivationLogs) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*ActivationLogs) Validate

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

Validate validates this activation logs

type ActivationResult

type ActivationResult struct {

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

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

	// Whether the activation was successful or not
	Success bool `json:"success,omitempty"`
}

ActivationResult activation result swagger:model ActivationResult

func (*ActivationResult) MarshalBinary

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

MarshalBinary interface implementation

func (*ActivationResult) UnmarshalBinary

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

UnmarshalBinary interface implementation

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

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

MarshalBinary interface implementation

func (*ActivationStderr) UnmarshalBinary

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

UnmarshalBinary interface implementation

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

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

MarshalBinary interface implementation

func (*EntityBrief) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*EntityBrief) Validate

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

Validate validates this entity brief

type ErrorMessage

type ErrorMessage struct {

	// code
	Code string `json:"code,omitempty"`

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

ErrorMessage error message swagger:model ErrorMessage

func (*ErrorMessage) MarshalBinary

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

MarshalBinary interface implementation

func (*ErrorMessage) UnmarshalBinary

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

UnmarshalBinary interface implementation

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

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

MarshalBinary interface implementation

func (*ItemID) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*ItemID) Validate

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

Validate validates this item Id

type KeyValue

type KeyValue struct {

	// key
	Key string `json:"key,omitempty"`

	// Any JSON value
	Value interface{} `json:"value,omitempty"`
}

KeyValue key value swagger:model KeyValue

func (*KeyValue) MarshalBinary

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

MarshalBinary interface implementation

func (*KeyValue) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*KeyValue) Validate

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

Validate validates this key value

type Package

type Package struct {

	// Actions contained in this package
	Actions []*PackageAction `json:"actions"`

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

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

	// Feeds contained in this package
	Feeds []interface{} `json:"feeds"`

	// 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
	Parameters []*KeyValue `json:"parameters"`

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

	// Time when the package was updated
	Updated int64 `json:"updated,omitempty"`

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

Package package swagger:model Package

func (*Package) MarshalBinary

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

MarshalBinary interface implementation

func (*Package) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*Package) Validate

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

Validate validates this package

type PackageAction

type PackageAction struct {

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

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

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

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

PackageAction A restricted Action view used when listing actions in a package swagger:model PackageAction

func (*PackageAction) MarshalBinary

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

MarshalBinary interface implementation

func (*PackageAction) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*PackageAction) Validate

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

Validate validates this package action

type PackageBinding

type PackageBinding struct {

	// Name of the item
	Name string `json:"name,omitempty"`

	// Namespace of the item
	Namespace string `json:"namespace,omitempty"`
}

PackageBinding package binding swagger:model PackageBinding

func (*PackageBinding) MarshalBinary

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

MarshalBinary interface implementation

func (*PackageBinding) UnmarshalBinary

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

UnmarshalBinary interface implementation

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

	// Name of the item
	// Min Length: 1
	Name string `json:"name,omitempty"`

	// Namespace of the item
	// Min Length: 1
	Namespace string `json:"namespace,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 used when updating a Package swagger:model PackagePut

func (*PackagePut) MarshalBinary

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

MarshalBinary interface implementation

func (*PackagePut) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*PackagePut) Validate

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

Validate validates this package put

type PathName

type PathName struct {

	// name
	// Required: true
	Name *string `json:"name"`

	// path
	// Required: true
	Path *string `json:"path"`
}

PathName path name swagger:model PathName

func (*PathName) MarshalBinary

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

MarshalBinary interface implementation

func (*PathName) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*PathName) Validate

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

Validate validates this path name

type Principal

type Principal string

Principal principal swagger:model Principal

func (Principal) Validate

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

Validate validates this principal

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

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

MarshalBinary interface implementation

func (*Provider) UnmarshalBinary

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

UnmarshalBinary interface implementation

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

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

MarshalBinary interface implementation

func (*ProviderAction) UnmarshalBinary

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

UnmarshalBinary interface implementation

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

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

MarshalBinary interface implementation

func (*ProviderBinding) UnmarshalBinary

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

UnmarshalBinary interface implementation

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

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

MarshalBinary interface implementation

func (*ProviderTrigger) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*ProviderTrigger) Validate

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

Validate validates this provider trigger

type Rule

type Rule struct {

	// action
	// Required: true
	Action *PathName `json:"action"`

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

	// 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
	// Enum: [active inactive activating deactivating]
	Status string `json:"status,omitempty"`

	// trigger
	// Required: true
	Trigger *PathName `json:"trigger"`

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

Rule rule swagger:model Rule

func (*Rule) MarshalBinary

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

MarshalBinary interface implementation

func (*Rule) UnmarshalBinary

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

UnmarshalBinary interface implementation

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

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

	// Name of the item
	// Min Length: 1
	Name string `json:"name,omitempty"`

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

	// Status of a rule
	// Enum: [active inactive ]
	Status string `json:"status,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 used when updating a Rule swagger:model RulePut

func (*RulePut) MarshalBinary

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

MarshalBinary interface implementation

func (*RulePut) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*RulePut) Validate

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

Validate validates this rule put

type SetStateParamsBody

type SetStateParamsBody struct {

	// status
	// Required: true
	// Enum: [inactive active]
	Status *string `json:"status"`
}

SetStateParamsBody set state params body swagger:model setStateParamsBody

func (*SetStateParamsBody) MarshalBinary

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

MarshalBinary interface implementation

func (*SetStateParamsBody) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*SetStateParamsBody) Validate

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

Validate validates this set state params body

type Trigger

type Trigger struct {

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

	// limits
	Limits TriggerLimits `json:"limits,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 bindings for the trigger
	Parameters []*KeyValue `json:"parameters"`

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

	// rules associated with the trigger
	Rules interface{} `json:"rules,omitempty"`

	// Time when the trigger was updated
	Updated int64 `json:"updated,omitempty"`

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

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

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

MarshalBinary interface implementation

func (*TriggerPayload) UnmarshalBinary

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

UnmarshalBinary interface implementation

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

	// Name of the item
	// Min Length: 1
	Name string `json:"name,omitempty"`

	// Namespace of the item
	// Min Length: 1
	Namespace string `json:"namespace,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 used when updating the Trigger swagger:model TriggerPut

func (*TriggerPut) MarshalBinary

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

MarshalBinary interface implementation

func (*TriggerPut) UnmarshalBinary

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

UnmarshalBinary interface implementation

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