Documentation
¶
Index ¶
- Constants
- type Action
- type ActionExec
- type ActionLimits
- type ActionPayload
- type ActionPut
- type Activation
- type ActivationIds
- type ActivationInfo
- type ActivationInfoResult
- type ActivationLogs
- type ActivationResult
- type ActivationStderr
- type EntityBrief
- type ErrorMessage
- type ItemID
- type KeyValue
- type Package
- type PackageBinding
- type PackagePut
- type Provider
- type ProviderAction
- type ProviderBinding
- type ProviderTrigger
- type Rule
- type RulePut
- type Trigger
- type TriggerLimits
- type TriggerPayload
- type TriggerPut
Constants ¶
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" )
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
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
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
type ActionPayload ¶
type ActionPayload struct {
// The payload to pass to the action.
// Required: true
Payload *string `json:"payload"`
}
ActionPayload action payload swagger:model ActionPayload
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
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
type ActivationIds ¶
type ActivationIds struct {
// Array of activation ids
Ids []string `json:"ids"`
}
ActivationIds activation ids swagger:model ActivationIds
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
type ActivationInfoResult ¶
type ActivationInfoResult struct {
// status
// Required: true
Status *string `json:"status"`
}
ActivationInfoResult Activation result swagger:model ActivationInfoResult
type ActivationLogs ¶
type ActivationLogs struct {
// Interleaved standard output and error of an activation
Logs string `json:"logs,omitempty"`
}
ActivationLogs activation logs swagger:model ActivationLogs
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
type ActivationStderr ¶
type ActivationStderr struct {
// Standard error of an activation
Stderr string `json:"stderr,omitempty"`
}
ActivationStderr activation stderr swagger:model ActivationStderr
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
type ErrorMessage ¶
type ErrorMessage struct {
// error
// Required: true
Error *string `json:"error"`
}
ErrorMessage error message swagger:model ErrorMessage
type ItemID ¶
type ItemID struct {
// id
// Required: true
ID *string `json:"id"`
}
ItemID item Id swagger:model ItemId
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
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
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
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
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
type ProviderAction ¶
type ProviderAction struct {
// Name of the action
// Required: true
// Min Length: 1
Name *string `json:"name"`
}
ProviderAction provider action swagger:model ProviderAction
type ProviderBinding ¶
type ProviderBinding struct {
// Name of the binding
// Required: true
// Min Length: 1
Name *string `json:"name"`
}
ProviderBinding provider binding swagger:model ProviderBinding
type ProviderTrigger ¶
type ProviderTrigger struct {
// Name of the trigger
// Required: true
// Min Length: 1
Name *string `json:"name"`
}
ProviderTrigger provider trigger swagger:model ProviderTrigger
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
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
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
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
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
Source Files
¶
- action.go
- action_exec.go
- action_limits.go
- action_payload.go
- action_put.go
- activation.go
- activation_ids.go
- activation_info.go
- activation_logs.go
- activation_result.go
- activation_stderr.go
- entity_brief.go
- error_message.go
- item_id.go
- key_value.go
- package.go
- package_binding.go
- package_put.go
- provider.go
- provider_action.go
- provider_binding.go
- provider_trigger.go
- rule.go
- rule_put.go
- trigger.go
- trigger_limits.go
- trigger_payload.go
- trigger_put.go