setDefaults initializes the required nested attributes.
()
| 64 | |
| 65 | // setDefaults initializes the required nested attributes. |
| 66 | func (t *Tracker) setDefaults() { |
| 67 | if t.TrustedTasks == nil { |
| 68 | t.TrustedTasks = map[string][]taskRecord{} |
| 69 | } |
| 70 | } |
| 71 | |
| 72 | // addTrustedTaskRecord includes the given Tekton bundle Task record in the tracker. |
| 73 | func (t *Tracker) addTrustedTaskRecord(prefix string, record taskRecord) { |