(ctx context.Context)
| 102 | } |
| 103 | |
| 104 | func (r *Root) createConfig(ctx context.Context) error { |
| 105 | poolPath := r.path.JoinPath(PoolsTag) |
| 106 | var err error |
| 107 | r.pools, err = pools.CreateStore(ctx, r.engine, r.logger, poolPath) |
| 108 | if err != nil { |
| 109 | return err |
| 110 | } |
| 111 | return r.writeMagic(ctx) |
| 112 | } |
| 113 | |
| 114 | func (r *Root) loadConfig(ctx context.Context) error { |
| 115 | if err := r.readMagic(ctx); err != nil { |
no test coverage detected