cache

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2020 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ImageTagCache

type ImageTagCache interface {
	HasTag(imageName string, imageTag string) bool
	GetTag(imageName string, imageTag string) (*tag.ImageTag, error)
	SetTag(imageName string, imgTag *tag.ImageTag)
}

func NewMemCache

func NewMemCache() ImageTagCache

NewMemCache returns a new instance of MemCache

type MemCache

type MemCache struct {
	// contains filtered or unexported fields
}

func (*MemCache) GetTag

func (mc *MemCache) GetTag(imageName string, tagName string) (*tag.ImageTag, error)

func (*MemCache) HasTag

func (mc *MemCache) HasTag(imageName string, tagName string) bool

HasTag returns true if cache has entry for given tag, false if not

func (*MemCache) SetTag

func (mc *MemCache) SetTag(imageName string, imgTag *tag.ImageTag)

Jump to

Keyboard shortcuts

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