preparedcache

package
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Record

func Record(configFile string, providerName string, imageReference string) error

Types

type ImageReferences

type ImageReferences struct {
	Current    map[string]struct{}
	Historical map[string]struct{}
}

func AllImageReferences

func AllImageReferences() (ImageReferences, error)

type ImageState

type ImageState struct {
	FirstSelectedAt time.Time `json:"first_selected_at"`
	LastSelectedAt  time.Time `json:"last_selected_at"`
}

type Project

type Project struct {
	Providers  map[string]ProviderState `json:"providers"`
	ConfigPath string                   `json:"config_path"`
	Version    int                      `json:"version"`
}

func Load

func Load(configFile string) (Project, error)

type ProviderState

type ProviderState struct {
	Images       map[string]ImageState `json:"images"`
	CurrentImage string                `json:"current_image"`
}

Jump to

Keyboard shortcuts

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