provisionSQLiteInstance provisions a SQLite instance (a directory).
(rootDir, name string)
| 358 | |
| 359 | // provisionSQLiteInstance provisions a SQLite instance (a directory). |
| 360 | func (*controller) provisionSQLiteInstance(rootDir, name string) (string, error) { |
| 361 | p := path.Join(rootDir, name) |
| 362 | if err := os.MkdirAll(p, os.ModePerm); err != nil { |
| 363 | return "", errors.Wrapf(err, "failed to make directory %q", p) |
| 364 | } |
| 365 | |
| 366 | return p, nil |
| 367 | } |
| 368 | |
| 369 | // signupAndLogin will signup and login as user demo@example.com. |
| 370 | // addMemberToWorkspaceIAM adds a member as workspace role to the current workspace. |