summaryrefslogtreecommitdiff
path: root/registry-scanner/pkg/cache/cache.go
blob: 1ceef666be66b005259c15f4e36870d3f84502e7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
package cache

import (
	"github.com/argoproj-labs/argocd-image-updater/registry-scanner/pkg/tag"
)

type ImageTagCache interface {
	HasTag(imageName string, imageTag string) bool
	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
}