Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EnsureEditorWithModules ¶
func EnsureEditorWithModules( platform string, unityInstaller UnityInstaller, packageInstaller packageinstaller.PackageInstaller, editorRelease *release.EditorRelease, moduleIDs []string, force bool, skipEditor bool, ) error
EnsureEditorWithModules installs (if missing) an editor version and list of modules.
func HasEditorAndModules ¶
func HasEditorAndModules(installer UnityInstaller, editorVersion string, moduleIDs []string) (bool, error)
HasEditorAndModules returns true if the given editor version and all given module IDs are installed.
Types ¶
type UnityInstaller ¶
type UnityInstaller interface { io.Closer InstallEditor(platform string, installer packageinstaller.PackageInstaller, spec *release.EditorRelease) error InstallModule(installer packageinstaller.PackageInstaller, editorVersion string, spec *release.ModuleRelease) error CheckEditorVersion(editorVersion string) (bool, []release.ModuleRelease, error) }
UnityInstaller represents a Unity Installer which can install editors and editor modules.
func NewSimpleInstaller ¶
func NewSimpleInstaller(logger logr.Logger, editorDir, tempDir string, client *http.Client) (UnityInstaller, error)
NewSimpleInstaller creates a Unity Installer which downloads packages to a temporary directory every install.
Click to show internal directories.
Click to hide internal directories.