blob: 49490550e1c8875784c47ce74c6b0d67d3ee425c [file] [log] [blame]
// 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}
}