gum

package
v0.0.0-...-8a03e35 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2022 License: BSD-3-Clause Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultBuildDir    = "/tmp/gumshield/build"
	DefaultFakeRootDir = "/tmp/gumshield/fake_root"
	DefaultTempDir     = "/tmp/gumshield/temp"
	DefaultIndexDir    = "/var/lib/gumshield"
	RootDir            = "/"

	DefinitionFileName   = "manifest"
	FilesArchiveFileName = "files.tar"

	DefinitionFileExtension = ".elplan"
	ArchiveFileExtension    = ".tar"

	BuildDirEnvVarName    = "GUMSHIELD_BUILD_DIR"
	FakeRootDirEnvVarName = "GUMSHIELD_FAKE_ROOT_DIR"
)

Variables

This section is empty.

Functions

func Build

func Build(pkg *PackageDefinition, outputFile, buildDir, fakeRootDir, tempDir string, verbose bool, sourcesDir *string) error

func Install

func Install(archivePath, targetDir string, verbose, disableIndex bool) error

func SerializePackageDefinition

func SerializePackageDefinition(pkg *PackageDefinition) (string, error)

func SetEnvVars

func SetEnvVars(buildDir string, fakeRootDir string) error

SetEnvVars sets environment variables.

func ShowConfig

func ShowConfig() error

func ShowFiles

func ShowFiles(packageName string) error

func ShowInstalled

func ShowInstalled() error

func ShowPackage

func ShowPackage(packageName string) error

func ShowTriggers

func ShowTriggers(packageName string) error

func Uninstall

func Uninstall(packageName string, verbose bool) error

func ValidateInstalledDefinition

func ValidateInstalledDefinition(pkg *PackageDefinition) error

Types

type PackageDefinition

type PackageDefinition struct {
	Name               string
	Version            string
	Description        string
	BuildLogic         string
	BeforeInstallLogic string
	AfterInstallLogic  string
	UninstallLogic     string
	Sources            []string
	Files              []string
}

func NewPackageDefinition

func NewPackageDefinition(name, version string, sources []string, description, buildLogic, beforeInstallLogic, afterInstallLogic, uninstallLogic string, files []string) *PackageDefinition

func ParsePackageDefinition

func ParsePackageDefinition(content string) (*PackageDefinition, error)

func ReadDefinitionFromFile

func ReadDefinitionFromFile(path string) (*PackageDefinition, error)

type PackageMetadata

type PackageMetadata struct {
	Name    string
	Version string
	Sources []string
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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