diff options
| author | jannfis <jann@mistrust.net> | 2020-08-27 20:53:33 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-08-27 20:53:33 +0200 |
| commit | 32ecfbba4725aa79e245082225e80f236fce5dc6 (patch) | |
| tree | aa2fa6bf7798188b94f4e28234e8386802b9f0f2 /pkg/cache/cache.go | |
| parent | fac74674c7dd12c96f8444c14af273d4006789a5 (diff) | |
feat: Warm-up image cache on startup (#77)
* enhancement: Warm up cache before starting update cycle
* fix typos
* More typos
Diffstat (limited to 'pkg/cache/cache.go')
| -rw-r--r-- | pkg/cache/cache.go | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/pkg/cache/cache.go b/pkg/cache/cache.go index f207cb3..f3f3577 100644 --- a/pkg/cache/cache.go +++ b/pkg/cache/cache.go @@ -9,4 +9,12 @@ type ImageTagCache interface { GetTag(imageName string, imageTag string) (*tag.ImageTag, error) SetTag(imageName string, imgTag *tag.ImageTag) ClearCache() + NumEntries() int +} + +// KnownImage represents a known image and the applications using it, without +// any version/tag information. +type KnownImage struct { + ImageName string + Applications []string } |
