state

package
v1.7.4 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2024 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Binary added in v1.7.0

type Binary struct {
	DxvkVersion string
	Version     string
	Packages    []string
}

BinaryState is used track a Binary's deployment and wineprefix.

func (*Binary) Add added in v1.7.0

func (bs *Binary) Add(pm *bootstrapper.PackageManifest)

Add formats the given package manifest into a Binary form.

type State

type State struct {
	Player Binary
	Studio Binary
}

State holds various details about Vinegar's current state.

func Load

func Load() (State, error)

Load returns the state file's contents in State form.

If the state file does not exist or is empty, an empty state is returned.

func (*State) CleanPackages added in v1.6.0

func (s *State) CleanPackages() error

CleanPackages removes all cached package downloads in dirs.Downloads that aren't held in the state's Binary packages.

func (*State) CleanVersions added in v1.6.0

func (s *State) CleanVersions() error

CleanPackages removes all Binary versions that aren't held in the state's Binary packages.

func (*State) Packages added in v1.6.0

func (s *State) Packages() (pkgs []string)

Packages returns all the available Binary packages from the state.

func (*State) Save added in v1.6.0

func (s *State) Save() error

Save saves the current state to the state file.

func (*State) Versions added in v1.6.0

func (s *State) Versions() (vers []string)

Packages returns all the available Binary versions from the state.

Jump to

Keyboard shortcuts

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