package release import "context" // AppMutationRunner is implemented only by the enabled console store. The // ordinary bucket implementations do not implement it, so existing callers // retain their original path when host claims are disabled. type AppMutationRunner interface { RunAppMutation(context.Context, string, string, string, func(context.Context) error) error } func WithAppMutation(ctx context.Context, s Store, account, app, action string, f func(context.Context) error) error { if runner, ok := s.(AppMutationRunner); ok { return runner.RunAppMutation(ctx, account, app, action, f) } return f(ctx) }