Documentation ¶
Index ¶
- Constants
- func Build(pkg *PackageDefinition, outputFile, buildDir, fakeRootDir, tempDir string, ...) error
- func Install(archivePath, targetDir string, verbose, disableIndex bool) error
- func SerializePackageDefinition(pkg *PackageDefinition) (string, error)
- func SetEnvVars(buildDir string, fakeRootDir string) error
- func ShowConfig() error
- func ShowFiles(packageName string) error
- func ShowInstalled() error
- func ShowPackage(packageName string) error
- func ShowTriggers(packageName string) error
- func Uninstall(packageName string, verbose bool) error
- func ValidateInstalledDefinition(pkg *PackageDefinition) error
- type PackageDefinition
- type PackageMetadata
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 SerializePackageDefinition ¶
func SerializePackageDefinition(pkg *PackageDefinition) (string, error)
func SetEnvVars ¶
SetEnvVars sets environment variables.
func ShowConfig ¶
func ShowConfig() error
func ShowInstalled ¶
func ShowInstalled() error
func ShowPackage ¶
func ShowTriggers ¶
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 ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.