state

package
v0.0.0-...-c68aebb Latest Latest
Warning

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

Go to latest
Published: May 22, 2026 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Write

func Write(path string, s State) error

Types

type Meta

type Meta struct {
	SchemaVersion int       `toml:"schema_version"`
	CapturedAt    time.Time `toml:"captured_at"`
	Hostname      string    `toml:"hostname"`
	OS            string    `toml:"os"`
}

type SourceState

type SourceState struct {
	Packages []string `toml:"packages"`
}

type State

type State struct {
	Meta    Meta                   `toml:"meta"`
	Sources map[string]SourceState `toml:"sources"`
}

func New

func New() State

func Read

func Read(path string) (State, error)

Jump to

Keyboard shortcuts

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