Documentation
¶
Overview ¶
Package state records client-side provr state under ~/.provr/state, such as the projects that have had previews created from this machine.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
Store reads and writes provr client state below a base directory (normally ~/.provr/state).
func (*Store) Projects ¶
Projects returns the recorded projects: absolute provr.yaml path to project name. A missing file yields an empty map.
func (*Store) UpsertProject ¶
UpsertProject records that the provr.yaml at configPath belongs to project. configPath must be absolute. The file is replaced atomically.