Documentation ¶
Index ¶
- Constants
- func ParseIsoDuration(str string) (result time.Duration, err error)
- func ParseIsoDurationInt64(value string) int64
- type ConditionalEvent
- type Deployment
- type Device
- type DeviceGroup
- type Diagram
- type Element
- type FilterCriteria
- type GenericEventSource
- type IncidentHandling
- type MessageEvent
- type Notification
- type ProcessStartParameter
- type Selection
- type SelectionOption
- type Service
- type Task
- type TimeEvent
- type ValidationKind
Constants ¶
View Source
const CurrentVersion int64 = 3
Variables ¶
This section is empty.
Functions ¶
func ParseIsoDurationInt64 ¶
Types ¶
type ConditionalEvent ¶
type Deployment ¶
type Deployment struct { Version int64 `json:"version"` Id string `json:"id"` Name string `json:"name"` Description string `json:"description"` Diagram Diagram `json:"diagram"` Elements []Element `json:"elements"` Executable bool `json:"executable"` IncidentHandling *IncidentHandling `json:"incident_handling,omitempty"` StartParameter []ProcessStartParameter `json:"start_parameter,omitempty"` }
func (Deployment) Validate ¶
func (this Deployment) Validate(kind ValidationKind, optionals map[string]bool) (err error)
type DeviceGroup ¶
type Element ¶
type Element struct { BpmnId string `json:"bpmn_id"` Group *string `json:"group"` Name string `json:"name"` Order int64 `json:"order"` TimeEvent *TimeEvent `json:"time_event"` Notification *Notification `json:"notification"` MessageEvent *MessageEvent `json:"message_event"` ConditionalEvent *ConditionalEvent `json:"conditional_event"` Task *Task `json:"task"` }
type FilterCriteria ¶
type FilterCriteria struct { CharacteristicId *string `json:"characteristic_id"` //TODO: remove? FunctionId *string `json:"function_id"` DeviceClassId *string `json:"device_class_id"` AspectId *string `json:"aspect_id"` }
func (FilterCriteria) ToDeviceTypeFilter ¶
func (this FilterCriteria) ToDeviceTypeFilter() (result deviceselectionmodel.FilterCriteria)
type GenericEventSource ¶
type IncidentHandling ¶
type MessageEvent ¶
type Notification ¶
type ProcessStartParameter ¶
type Selection ¶
type Selection struct { FilterCriteria FilterCriteria `json:"filter_criteria"` SelectionOptions []SelectionOption `json:"selection_options"` SelectedDeviceId *string `json:"selected_device_id"` SelectedServiceId *string `json:"selected_service_id"` SelectedDeviceGroupId *string `json:"selected_device_group_id"` SelectedImportId *string `json:"selected_import_id"` SelectedGenericEventSource *GenericEventSource `json:"selected_generic_event_source"` SelectedPath *deviceselectionmodel.PathOption `json:"selected_path"` }
type SelectionOption ¶
type SelectionOption struct { Device *Device `json:"device"` Services []Service `json:"services"` DeviceGroup *DeviceGroup `json:"device_group"` Import *importmodel.Import `json:"import"` ImportType *importmodel.ImportType `json:"importType"` PathOptions map[string][]deviceselectionmodel.PathOption `json:"path_options,omitempty"` }
type ValidationKind ¶
type ValidationKind = bool
const ( ValidatePublish ValidationKind = true ValidateRequest ValidationKind = false )
Click to show internal directories.
Click to hide internal directories.