Versions in this module Expand all Collapse all v1 v1.6.2 May 4, 2024 Changes in this version + func StartSccache(dir string) type Package + CanCCache bool type YmlPackage + CCache bool v1.6.1 Mar 4, 2024 v1.6.0 Feb 28, 2024 Changes in this version + const CacheDirectory + const ObsoleteCcacheDirectory + const ObsoleteLegacyCcacheDirectory + const ObsoleteLegacySccacheDirectory + const ObsoleteSccacheDirectory + var Bazel = Cache + var Caches = []Cache + var Ccache = Cache + var GoBuild = Cache + var Sccache = Cache + type Cache struct + CacheDir string + Name string type Package + func (p *Package) BindCaches(o *Overlay) error type PackageUpdate + Commit plumbing.Hash v1.5.6 Jan 11, 2024 v1.5.5 Dec 19, 2023 Changes in this version type Config + EnableHistory bool v1.5.4 Sep 20, 2023 Changes in this version + const BindRepoDir + const BuildUser + const BuildUserGID + const BuildUserGecos + const BuildUserHome + const BuildUserID + const BuildUserShell + const CcacheDirectory + const FallbackUserEmail + const FallbackUserName + const ImageBaseURI + const ImageCompressedSuffix + const ImageRootsDir + const ImageSuffix + const ImagesDir + const LegacyCcacheDirectory + const LegacySccacheDirectory + const MaxChangelogEntries + const PackageCacheDirectory + const SccacheDirectory + const TransitManifestSuffix + const UpdateDateFormat + var ChrootEnvironment []string + var ConfigPaths = []string + var ConfigSuffix = ".conf" + var CveRegex *regexp.Regexp + var DisableABIReport bool + var DisableColors bool + var ErrCannotContinue = errors.New("Index cannot continue") + var ErrDeadLockFile = errors.New("Dead lockfile") + var ErrIllegalUpload = errors.New("The manifest file is NOT an eopkg") + var ErrInterrupted = errors.New("The operation was cancelled by the user") + var ErrInvalidImage = errors.New("Invalid image") + var ErrInvalidProfile = errors.New("Invalid profile") + var ErrManagerInitialised = errors.New("The manager has already been initialised") + var ErrNoPackage = errors.New("You must first set a package to build it") + var ErrNotImplemented = errors.New("Function not yet implemented") + var ErrOwnedLockFile = errors.New("File is locked") + var ErrProfileNotInstalled = errors.New("Profile is not installed") + var IndexBindTarget = "/hostRepo/Index" + var IndexPackage = Package + var ProfileSuffix = ".profile" + var ValidImages = []string + func AddBuildUser(rootfs string) error + func CatGitBlob(repo *git.Repository, entry *git.TreeEntry) ([]byte, error) + func ChrootExec(notif PidNotifier, dir, command string) error + func ChrootExecStdin(notif PidNotifier, dir, command string) error + func ConfigureNamespace() error + func CopyAll(source, destdir string) error + func DropNetworking() error + func EmitImageError(image string) + func EmitProfileError(p string) + func EnsureEopkgLayout(root string) error + func FileSha256sum(path string) (string, error) + func GetAllProfiles() (map[string]*Profile, error) + func GetFileContents(repo *git.Repository, tag, path string) ([]byte, error) + func IsValidImage(profile string) bool + func MurderDeathKill(root string) error + func ParseGroups(grps string) (map[string]*Group, error) + func ParseUsers(passwd string) (map[string]*User, error) + func PathExists(path string) bool + func SaneEnvironment(username, home string) []string + func TouchFile(path string) error + func ValidMemSize(s string) bool + type BackingImage struct + ImagePath string + ImagePathXZ string + ImageURI string + LockPath string + Name string + RootDir string + func NewBackingImage(name string) *BackingImage + func (b *BackingImage) IsFetched() bool + func (b *BackingImage) IsInstalled() bool + func (b *BackingImage) Update(notif PidNotifier, pkgManager *EopkgManager) error + type Config struct + DefaultProfile string + EnableTmpfs bool + OverlayRootDir string + TmpfsSize string + func NewConfig() (*Config, error) + type EopkgManager struct + func NewEopkgManager(notif PidNotifier, root string) *EopkgManager + func (e *EopkgManager) AddRepo(id, source string) error + func (e *EopkgManager) Cleanup() + func (e *EopkgManager) CopyAssets() error + func (e *EopkgManager) GetRepos() ([]*EopkgRepo, error) + func (e *EopkgManager) Init() error + func (e *EopkgManager) InstallComponent(comp string) error + func (e *EopkgManager) RemoveRepo(id string) error + func (e *EopkgManager) StartDBUS() error + func (e *EopkgManager) StopDBUS() error + func (e *EopkgManager) Upgrade() error + type EopkgRepo struct + ID string + URI string + type Group struct + ID int + Members []string + Name string + type LockFile struct + func NewLockFile(path string) (*LockFile, error) + func (l *LockFile) Clean() error + func (l *LockFile) GetOwnerPID() int + func (l *LockFile) GetOwnerProcess() string + func (l *LockFile) Lock() error + func (l *LockFile) Unlock() error + type Manager struct + Config *Config + func NewManager() (*Manager, error) + func (m *Manager) Build() error + func (m *Manager) Chroot() error + func (m *Manager) Cleanup() + func (m *Manager) GetProfile() *Profile + func (m *Manager) Index(dir string) error + func (m *Manager) IsCancelled() bool + func (m *Manager) SetActivePID(pid int) + func (m *Manager) SetCancelled() + func (m *Manager) SetManifestTarget(target string) + func (m *Manager) SetPackage(pkg *Package) error + func (m *Manager) SetProfile(profile string) error + func (m *Manager) SetTmpfs(enable bool, size string) + func (m *Manager) SigIntCleanup() + func (m *Manager) Update() error + type MmapFile struct + Data []byte + func MapFile(path string) (*MmapFile, error) + func (m *MmapFile) Close() error + type Overlay struct + Back *BackingImage + BaseDir string + EnableTmpfs bool + ExtraMounts []string + ImgDir string + LockPath string + MountPoint string + Package *Package + TmpfsSize string + UpperDir string + WorkDir string + func NewOverlay(config *Config, profile *Profile, back *BackingImage, pkg *Package) *Overlay + func (o *Overlay) CleanExisting() error + func (o *Overlay) ConfigureNetworking() error + func (o *Overlay) EnsureDirs() error + func (o *Overlay) Mount() error + func (o *Overlay) MountVFS() error + func (o *Overlay) Unmount() error + type Package struct + CanNetwork bool + Name string + Path string + Release int + Sources []source.Source + Type PackageType + Version string + func NewPackage(path string) (*Package, error) + func NewXMLPackage(path string) (*Package, error) + func NewYmlPackage(path string) (*Package, error) + func NewYmlPackageFromBytes(by []byte) (*Package, error) + func (p *Package) ActivateRoot(overlay *Overlay) error + func (p *Package) BindCcache(o *Overlay) error + func (p *Package) BindSccache(o *Overlay) error + func (p *Package) BindSources(o *Overlay) error + func (p *Package) Build(notif PidNotifier, history *PackageHistory, profile *Profile, ...) error + func (p *Package) BuildXML(notif PidNotifier, pman *EopkgManager, overlay *Overlay) error + func (p *Package) BuildYpkg(notif PidNotifier, usr *UserInfo, pman *EopkgManager, overlay *Overlay, ...) error + func (p *Package) Chroot(notif PidNotifier, pman *EopkgManager, overlay *Overlay) error + func (p *Package) CollectAssets(overlay *Overlay, usr *UserInfo, manifestTarget string) error + func (p *Package) ConfigureRepos(notif PidNotifier, o *Overlay, pkgManager *EopkgManager, profile *Profile) error + func (p *Package) CopyAssets(h *PackageHistory, o *Overlay) error + func (p *Package) CreateDirs(o *Overlay) error + func (p *Package) DeactivateRoot(overlay *Overlay) + func (p *Package) FetchSources(o *Overlay) error + func (p *Package) GenerateABIReport(notif PidNotifier, overlay *Overlay) error + func (p *Package) GetCcacheDir(o *Overlay) string + func (p *Package) GetCcacheDirInternal() string + func (p *Package) GetSccacheDir(o *Overlay) string + func (p *Package) GetSccacheDirInternal() string + func (p *Package) GetSourceDir(o *Overlay) string + func (p *Package) GetSourceDirInternal() string + func (p *Package) GetWorkDir(o *Overlay) string + func (p *Package) GetWorkDirInternal() string + func (p *Package) Index(notif PidNotifier, dir string, overlay *Overlay) error + func (p *Package) PrepYpkg(notif PidNotifier, usr *UserInfo, pman *EopkgManager, overlay *Overlay, ...) error + type PackageHistory struct + Updates []*PackageUpdate + func NewPackageHistory(repo *git.Repository, pkgfile string) (*PackageHistory, error) + func (p *PackageHistory) GetLastVersionTimestamp() int64 + func (p *PackageHistory) WriteXML(path string) error + type PackageType string + const PackageTypeIndex + const PackageTypeXML + const PackageTypeYpkg + type PackageUpdate struct + Author string + AuthorEmail string + Body string + IsSecurity bool + ObjectID string + Package *Package + Tag string + Time time.Time + func NewPackageUpdate(tag string, commit *git.Commit, objectID string) *PackageUpdate + type Passwd struct + Groups map[string]*Group + Users map[string]*User + func NewPasswd(path string) (*Passwd, error) + type PidNotifier interface + SetActivePID func(int) + type Profile struct + AddRepos []string + Image string + Name string + RemoveRepos []string + Repos map[string]*Repo + func NewProfile(name string) (*Profile, error) + func NewProfileFromPath(path string) (*Profile, error) + type Repo struct + AutoIndex bool + Local bool + Name string + URI string + type SortUpdatesByRelease []*PackageUpdate + func (a SortUpdatesByRelease) Len() int + func (a SortUpdatesByRelease) Less(i, j int) bool + func (a SortUpdatesByRelease) Swap(i, j int) + type TransitManifest struct + File []TransitManifestFile + Manifest TransitManifestHeader + func NewTransitManifest(target string) *TransitManifest + func (t *TransitManifest) AddFile(path string) error + func (t *TransitManifest) Write(path string) error + type TransitManifestFile struct + Path string + Sha256 string + type TransitManifestHeader struct + Target string + Version string + type User struct + GID int + Gecos string + Home string + Name string + Shell string + UID int + type UserInfo struct + Email string + GID int + HomeDir string + Name string + UID int + Username string + func GetUserInfo() *UserInfo + func (u *UserInfo) SetFromCurrent() + func (u *UserInfo) SetFromGit() bool + func (u *UserInfo) SetFromPackager() bool + func (u *UserInfo) SetFromSudo() bool + func (u *UserInfo) WritePackager(path string) error + type XMLArchive struct + SHA1Sum string + Type string + URI string + type XMLPackage struct + History []XMLUpdate + Name string + Source XMLSource + type XMLSource struct + Archive []XMLArchive + Homepage string + Name string + type XMLUpdate struct + Comment string + Date string + Email string + Name string + Release int + Version string + type YPKG struct + History []*YPKGUpdate + type YPKGUpdate struct + Comment struct{ ... } + Date string + Email string + Name struct{ ... } + Release int + Type string + Version string + type YmlPackage struct + Name string + Networking bool + Release int + Source []map[string]string + Version string