types

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2023 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BuildOpts

type BuildOpts struct {
	Script      string
	Manager     manager.Manager
	Clean       bool
	Interactive bool
}

type BuildVars

type BuildVars struct {
	Name          string   `sh:"name,required"`
	Version       string   `sh:"version,required"`
	Release       int      `sh:"release,required"`
	Epoch         uint     `sh:"epoch"`
	Description   string   `sh:"desc"`
	Homepage      string   `sh:"homepage"`
	Maintainer    string   `sh:"maintainer"`
	Architectures []string `sh:"architectures"`
	Licenses      []string `sh:"license"`
	Provides      []string `sh:"provides"`
	Conflicts     []string `sh:"conflicts"`
	Depends       []string `sh:"deps"`
	BuildDepends  []string `sh:"build_deps"`
	OptDepends    []string `sh:"opt_deps"`
	Replaces      []string `sh:"replaces"`
	Sources       []string `sh:"sources"`
	Checksums     []string `sh:"checksums"`
	Backup        []string `sh:"backup"`
	Scripts       Scripts  `sh:"scripts"`
}

BuildVars represents the script variables required to build a package

type Config

type Config struct {
	RootCmd          string   `toml:"rootCmd"`
	PagerStyle       string   `toml:"pagerStyle"`
	IgnorePkgUpdates []string `toml:"ignorePkgUpdates"`
	Repos            []Repo   `toml:"repo"`
	Unsafe           Unsafe   `toml:"unsafe"`
}

Config represents the LURE configuration file

type Directories

type Directories struct {
	BaseDir   string
	SrcDir    string
	PkgDir    string
	ScriptDir string
}

type Repo

type Repo struct {
	Name string `toml:"name"`
	URL  string `toml:"url"`
}

Repo represents a LURE repo within a configuration file

type RepoConfig

type RepoConfig struct {
	Repo struct {
		MinVersion string `toml:"minVersion"`
	}
}

RepoConfig represents a LURE repo's lure-repo.toml file.

type Scripts

type Scripts struct {
	PreInstall  string `sh:"preinstall"`
	PostInstall string `sh:"postinstall"`
	PreRemove   string `sh:"preremove"`
	PostRemove  string `sh:"postremove"`
	PreUpgrade  string `sh:"preupgrade"`
	PostUpgrade string `sh:"postupgrade"`
	PreTrans    string `sh:"pretrans"`
	PostTrans   string `sh:"posttrans"`
}

type Unsafe

type Unsafe struct {
	AllowRunAsRoot bool `toml:"allowRunAsRoot"`
}

Jump to

Keyboard shortcuts

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