mirror of
https://github.com/project-zot/zot.git
synced 2026-06-16 20:38:08 +08:00
fix(sessions): periodically cleanup expired sessions (#1939)
Signed-off-by: Petu Eusebiu <peusebiu@cisco.com>
This commit is contained in:
@@ -52,6 +52,10 @@ type ImageStore struct {
|
||||
commit bool
|
||||
}
|
||||
|
||||
func (is *ImageStore) Name() string {
|
||||
return is.storeDriver.Name()
|
||||
}
|
||||
|
||||
func (is *ImageStore) RootDir() string {
|
||||
return is.rootDir
|
||||
}
|
||||
|
||||
@@ -19,6 +19,7 @@ type StoreController interface {
|
||||
}
|
||||
|
||||
type ImageStore interface { //nolint:interfacebloat
|
||||
Name() string
|
||||
DirExists(d string) bool
|
||||
RootDir() string
|
||||
RLock(*time.Time)
|
||||
|
||||
Reference in New Issue
Block a user