cache

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cache

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

func New

func New() (*Cache, error)

func (*Cache) Clear

func (c *Cache) Clear() error

func (*Cache) ClearVendor

func (c *Cache) ClearVendor(vendorName string) error

func (*Cache) GetVersions

func (c *Cache) GetVersions(vendorName string) ([]provider.Release, bool)

func (*Cache) SetVersions

func (c *Cache) SetVersions(vendorName string, versions []provider.Release) error

type CacheData

type CacheData struct {
	Vendors map[string]VendorCache `json:"vendors"`
}

type VendorCache

type VendorCache struct {
	Versions  []provider.Release `json:"versions"`
	UpdatedAt time.Time          `json:"updated_at"`
}

Jump to

Keyboard shortcuts

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