(ctx context.Context, path string)
| 221 | } |
| 222 | |
| 223 | func LoadStartupConfigFromPath(ctx context.Context, path string) (*StartupConfig, error) { |
| 224 | rc, err := readFromPath(ctx, path, false) |
| 225 | if err != nil { |
| 226 | return nil, err |
| 227 | } |
| 228 | |
| 229 | defer func() { _ = rc.Close() }() |
| 230 | |
| 231 | var sc StartupConfig |
| 232 | err = DecodeAndSanitiseStartupConfig(ctx, rc, &sc, true) |
| 233 | return &sc, err |
| 234 | } |
| 235 | |
| 236 | // NewEmptyStartupConfig initialises an empty StartupConfig with all *struct fields empty |
| 237 | func NewEmptyStartupConfig() StartupConfig { |
no test coverage detected