Documentation ¶
Overview ¶
Package env provides the wine env object.
Index ¶
- func Slugify(name string) (string, error)
- type Info
- type InstallOpts
- type RunOpts
- type SysOpts
- type WineEnv
- func (e *WineEnv) AsToml(noUnchanged bool) (string, error)
- func (e *WineEnv) CfgExists(name string) bool
- func (e *WineEnv) CfgPath(name string) string
- func (e *WineEnv) ExeCtx(cacheDir string, skipInstall, skipRun bool) ([]*exe.ExeCtx, error)
- func (e *WineEnv) ExeString(exec string, execArgs []string) (string, error)
- func (e *WineEnv) ExpectedExists() bool
- func (e *WineEnv) InstallCtx() (*exe.ExeCtx, error)
- func (e *WineEnv) InstallString() string
- func (e *WineEnv) IsInstalled() bool
- func (e *WineEnv) PostRunCtx() (*exe.ExeCtx, error)
- func (e *WineEnv) PreRunCtx() (*exe.ExeCtx, error)
- func (e *WineEnv) PrefixExists() bool
- func (e *WineEnv) RenderString(s string) (string, error)
- func (e *WineEnv) RunCtx(cacheDir string) (*exe.ExeCtx, error)
- func (e *WineEnv) Save(name string, noUnchanged bool) error
- func (e *WineEnv) SetDefaults(c *cfg.WemConfig) error
- func (e *WineEnv) ShouldInstall() bool
- func (e *WineEnv) Slug() (string, error)
- func (e *WineEnv) ValidDllVersion(cacheDir, kind, url, version string) (bool, bool)
- func (e *WineEnv) Validate(installPhase bool) error
- type WineOpts
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type InstallOpts ¶
type RunOpts ¶
type RunOpts struct { QuietRun bool RunArgs []string RunExe string RunPrefix string RunSuffix string RunPre string RunPost string RunWorkDir string Sandbox bool SandboxBlacklist []string SandboxWhitelist []string SandboxCpu int SandboxDns string SandboxIpcNamespace bool SandboxMachineId bool SandboxNetNone bool SandboxNoDbus bool SandboxNoPrinters bool SandboxNoU2f bool SandboxPrivateCache bool SandboxPrivateCwd bool SandboxPrivateTmp bool }
type WineEnv ¶
type WineEnv struct { *Info *InstallOpts *RunOpts *WineOpts *SysOpts }
func (*WineEnv) AsToml ¶
AsToml gives a toml representation of the env. This represents the configuration file contents.
func (*WineEnv) ExpectedExists ¶
func (*WineEnv) InstallString ¶
func (*WineEnv) IsInstalled ¶
func (*WineEnv) PrefixExists ¶
func (*WineEnv) RenderString ¶
RenderString is for when you need to one-off render a string.
func (*WineEnv) ShouldInstall ¶
func (*WineEnv) ValidDllVersion ¶
Click to show internal directories.
Click to hide internal directories.