MCPcopy Create free account
hub / github.com/Scalingo/cli / ResetCache

Function ResetCache

deployments/cache.go:10–22  ·  view source on GitHub ↗
(ctx context.Context, app string)

Source from the content-addressed store, hash-verified

8)
9
10func 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}

Callers 1

deployments.goFile · 0.92

Calls 1

ScalingoClientFunction · 0.92

Tested by

no test coverage detected