data

package
v0.1.85 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2025 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Backups       pathways.AbsDir = "backups"
	Metadata      pathways.AbsDir = "metadata"
	Downloads     pathways.AbsDir = "downloads"
	Wine          pathways.AbsDir = "wine"
	GitHubSources pathways.AbsDir = "github-sources"
	InstalledApps pathways.AbsDir = "installed-apps"
	Prefixes      pathways.AbsDir = "prefixes"
)
View Source
const (
	Redux             pathways.RelDir = "_redux"
	TheoMetadata      pathways.RelDir = "theo"
	InstalledMetadata pathways.RelDir = "installed"
	MacOsExtracts     pathways.RelDir = "_macos_extracts"
	GitHubReleases    pathways.RelDir = "github-releases"
	Releases          pathways.RelDir = "releases"
	Binaries          pathways.RelDir = "binaries"
	PrefixArchive     pathways.RelDir = "prefix-archive"
)
View Source
const (
	SetupProperties = "setup"

	VangoghProtocolProperty = "vangogh-protocol"
	VangoghAddressProperty  = "vangogh-address"
	VangoghPortProperty     = "vangogh-port"
	VangoghUsernameProperty = "vangogh-username"
	VangoghPasswordProperty = "vangogh-password"

	BundleNameProperty = "bundle-name"
	TitleProperty      = "title"
	SlugProperty       = "slug"

	PrefixEnvProperty = "prefix-env"

	GitHubReleasesUpdatedProperty = "github-releases-updated"
)
View Source
const (
	VangoghHealthPath       = "/api/health"
	VangoghHealthAuthPath   = "/api/health-auth"
	VangoghTheoMetadataPath = "/api/metadata"
	VangoghFilesPath        = "/files"
	VangoghImagePath        = "/image"
)
View Source
const GogLnkGlob = "GOG Games/*/*.lnk"
View Source
const RelPrefixDriveCDir = "drive_c"

Variables

Functions

func AllProperties added in v0.1.19

func AllProperties() []string

func CurrentOS added in v0.1.42

func GetAbsBinariesDir added in v0.1.24

func GetAbsBinariesDir(ghs *GitHubSource, release *github_integration.GitHubRelease) (string, error)

func GetAbsPrefixDir added in v0.1.29

func GetAbsPrefixDir(id, langCode string) (string, error)

func GetAbsReleaseAssetPath added in v0.1.24

func GetAbsReleaseAssetPath(ghs *GitHubSource, release *github_integration.GitHubRelease, asset *github_integration.GitHubAsset) (string, error)

func GetAbsReleasesDir added in v0.1.24

func GetAbsReleasesDir(ghs *GitHubSource, release *github_integration.GitHubRelease) (string, error)

func GetPrefixName added in v0.1.69

func GetPrefixName(id, langCode string) string

func GetWineBinary added in v0.1.27

func GetWineBinary(wineRepo string) (string, error)

func InitGitHubSources added in v0.1.28

func InitGitHubSources() error

func InitRootDir

func InitRootDir() (string, error)

func InitWinePrefix added in v0.1.27

func InitWinePrefix(wcx *WineContext) error

func OsLangCodeDir added in v0.1.31

func OsLangCodeDir(os vangogh_integration.OperatingSystem, langCode string) string

func SelectAsset added in v0.1.27

func TheoExecutable added in v0.1.55

func TheoExecutable() (string, error)

func UpdateWinePrefix added in v0.1.27

func UpdateWinePrefix(wcx *WineContext) error

func UserDataHomeDir added in v0.1.42

func UserDataHomeDir() (string, error)

func VangoghUrl added in v0.1.1

func VangoghUrl(rdx kevlar.ReadableRedux, path string, params map[string]string) (*url.URL, error)

Types

type GitHubSource added in v0.1.24

type GitHubSource struct {
	OS           vangogh_integration.OperatingSystem
	Owner        string
	Repo         string
	Description  string
	AssetInclude []string
	AssetExclude []string
	Default      bool
}

func GetDxVkSource added in v0.1.29

func GetDxVkSource(dxVkRepo string) (*GitHubSource, error)

func GetDxVkSourceLatestRelease added in v0.1.62

func GetDxVkSourceLatestRelease(dxVkRepo string) (*GitHubSource, *github_integration.GitHubRelease, error)

func LoadDxVkSources added in v0.1.29

func LoadDxVkSources() ([]*GitHubSource, error)

func LoadGitHubSources added in v0.1.28

func LoadGitHubSources() ([]*GitHubSource, error)

func (*GitHubSource) CurrentOsMatches added in v0.1.62

func (ghs *GitHubSource) CurrentOsMatches(owner, repo string) bool

func (*GitHubSource) String added in v0.1.24

func (ghs *GitHubSource) String() string

type WineContext added in v0.1.27

type WineContext struct {
	BinPath    string
	PrefixPath string
}

type WineGitHubSource added in v0.1.27

type WineGitHubSource struct {
	*GitHubSource
	BinaryPath string
}

func GetWineSource added in v0.1.27

func GetWineSource(wineRepo string) (*WineGitHubSource, error)

func GetWineSourceLatestRelease added in v0.1.62

func GetWineSourceLatestRelease(wineRepo string) (*WineGitHubSource, *github_integration.GitHubRelease, error)

func LoadWineSources added in v0.1.28

func LoadWineSources() ([]*WineGitHubSource, error)

Jump to

Keyboard shortcuts

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