| // Copyright 2015 The Vanadium Authors. All rights reserved. |
| // Use of this source code is governed by a BSD-style |
| // license that can be found in the LICENSE file. |
| |
| // Package tidyable defines an interface for services that can be |
| // requested to clean up transient resource use (such as logs or caches.) |
| package tidyable |
| |
| import ( |
| "v.io/v23/security/access" |
| ) |
| |
| // Tidyable specifies that a service can be tidied. |
| type Tidyable interface { |
| // Request the implementing service to perform regularly scheduled cleanup |
| // actions such as shrinking caches or rolling logs immediately. |
| TidyNow() error {access.Admin} |
| } |