install

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2022 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Deps = []string{
	"cmd", "internal", "pkg", "util", "third-party/minijail",
}

Functions

func CIFuzzExecutablePath

func CIFuzzExecutablePath(binDir string) string

func ExtractBundle

func ExtractBundle(targetDir string, bundle *embed.FS) error

ExtractBundle extracts all installation files from bundle into targetDir and registers the CMake package

func FindProjectDir

func FindProjectDir() (string, error)

func PrintPathInstructions

func PrintPathInstructions(binDir string)

Types

type InstallationBundler

type InstallationBundler struct {
	Options
	// contains filtered or unexported fields
}

func NewInstallationBundler

func NewInstallationBundler(opts Options) (*InstallationBundler, error)

func (*InstallationBundler) BuildCIFuzz

func (i *InstallationBundler) BuildCIFuzz() error

func (*InstallationBundler) BuildCIFuzzAndDeps

func (i *InstallationBundler) BuildCIFuzzAndDeps() error

func (*InstallationBundler) BuildMinijail

func (i *InstallationBundler) BuildMinijail() error

func (*InstallationBundler) BuildProcessWrapper

func (i *InstallationBundler) BuildProcessWrapper() error

func (*InstallationBundler) Cleanup

func (i *InstallationBundler) Cleanup()

func (*InstallationBundler) CopyCMakeIntegration

func (i *InstallationBundler) CopyCMakeIntegration() error

CopyCMakeIntegration copies the CMake integration to shareDir. Directories are created as needed.

func (*InstallationBundler) CopyVSCodeTasks added in v0.1.5

func (i *InstallationBundler) CopyVSCodeTasks() error

func (*InstallationBundler) Lock

func (i *InstallationBundler) Lock() error

Lock acquires a file lock to make sure that only one instance of the installer is executed at the same time. Note that this function does not provide thread-safety for using the same installer instance multiple times.

func (*InstallationBundler) Unlock

func (i *InstallationBundler) Unlock() error

Unlock releases the file lock to allow other installer instances to run.

type Options

type Options struct {
	Version   string
	TargetDir string
	GOOS      string
	GOARCH    string
}

Jump to

Keyboard shortcuts

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