lru

package
v0.1.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 16, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ImageBucket  = []byte("images")
	AccessBucket = []byte("access")
)

Functions

This section is empty.

Types

type Cache

type Cache struct {
	Db *bolt.DB
}

func (*Cache) AddOrUpdate

func (cache *Cache) AddOrUpdate(image *Image)

func (*Cache) GetLruList

func (cache *Cache) GetLruList() []Image

func (*Cache) Init

func (cache *Cache) Init() error

func (*Cache) Remove

func (cache *Cache) Remove(image *Image)

type Image

type Image struct {
	Repo       string
	Tag        string
	AccessTime time.Time
}

func (*Image) CanonicalName

func (image *Image) CanonicalName(registryAddress string) string

func (*Image) Name

func (image *Image) Name() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL