Bootstrap synchronizes configuration and auth records between PostgreSQL and the local workspace.
(ctx context.Context, exampleConfigPath string)
| 145 | |
| 146 | // Bootstrap synchronizes configuration and auth records between PostgreSQL and the local workspace. |
| 147 | func (s *PostgresStore) Bootstrap(ctx context.Context, exampleConfigPath string) error { |
| 148 | if err := s.EnsureSchema(ctx); err != nil { |
| 149 | return err |
| 150 | } |
| 151 | if err := s.syncConfigFromDatabase(ctx, exampleConfigPath); err != nil { |
| 152 | return err |
| 153 | } |
| 154 | if err := s.syncAuthFromDatabase(ctx); err != nil { |
| 155 | return err |
| 156 | } |
| 157 | return nil |
| 158 | } |
| 159 | |
| 160 | // ConfigPath returns the managed configuration file path inside the spool directory. |
| 161 | func (s *PostgresStore) ConfigPath() string { |
no test coverage detected