(ctx context.Context, app string)
| 8 | ) |
| 9 | |
| 10 | func ResetCache(ctx context.Context, app string) error { |
| 11 | c, err := config.ScalingoClient(ctx) |
| 12 | if err != nil { |
| 13 | return errors.Wrapf(ctx, err, "fail to get Scalingo client") |
| 14 | } |
| 15 | |
| 16 | err = c.DeploymentCacheReset(ctx, app) |
| 17 | if err != nil { |
| 18 | return errors.Wrapf(ctx, err, "reset deployment cache for app %s", app) |
| 19 | } |
| 20 | |
| 21 | return nil |
| 22 | } |
no test coverage detected