attachCondition attaches a condition to the component.
(cond Condition)
| 47 | |
| 48 | // attachCondition attaches a condition to the component. |
| 49 | func (c *Component) attachCondition(cond Condition) { |
| 50 | if cond != nil { |
| 51 | c.conditions = append(c.conditions, cond) |
| 52 | } |
| 53 | } |
| 54 | |
| 55 | // Definition returns the component's definition metadata. |
| 56 | func (c *Component) Definition() *Definition { |