Load will populate the struct with existing in-store lifecycle information
()
| 62 | |
| 63 | // Load will populate the struct with existing in-store lifecycle information |
| 64 | func (lf *Store) Load() (err error) { |
| 65 | defer func() { |
| 66 | if err != nil { |
| 67 | err = errors.Join(ErrLifecycleStore, err) |
| 68 | } |
| 69 | }() |
| 70 | |
| 71 | return lf.safeStore.WithLock(lf.rawLoad) |
| 72 | } |
| 73 | |
| 74 | // Transform should be used to perform random mutations |
| 75 | func (lf *Store) Transform(fun func(lf *Store) error) (err error) { |