-
Notifications
You must be signed in to change notification settings - Fork 20
/
event-filter.go
36 lines (29 loc) · 942 Bytes
/
event-filter.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
package tosca_v2_0
import (
"github.com/tliron/puccini/tosca"
)
//
// EventFilter
//
// [TOSCA-v2.0] @ ?
// [TOSCA-Simple-Profile-YAML-v1.3] @ 3.6.21
// [TOSCA-Simple-Profile-YAML-v1.2] @ 3.6.17
// [TOSCA-Simple-Profile-YAML-v1.1] @ 3.5.15
//
type EventFilter struct {
*Entity `name:"event filter" json:"-" yaml:"-"`
NodeTemplateNameOrTypeName *string `read:"node"`
RequirementName *string `read:"requirement"`
CapabilityName *string `read:"capability"`
NodeTemplate *NodeTemplate `lookup:"node,NodeTemplateNameOrTypeName" json:"-" yaml:"-"`
NodeType *NodeType `lookup:"node,NodeTemplateNameOrTypeName" json:"-" yaml:"-"`
}
func NewEventFilter(context *tosca.Context) *EventFilter {
return &EventFilter{Entity: NewEntity(context)}
}
// tosca.Reader signature
func ReadEventFilter(context *tosca.Context) tosca.EntityPtr {
self := NewEventFilter(context)
context.ReadFields(self)
return self
}