installer

package
v0.29.2-geaaru Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2022 License: GPL-3.0 Imports: 22 Imported by: 1

Documentation

Overview

Copyright © 2022 Macaroni OS Linux See AUTHORS and LICENSE for the license details and contributors.

Copyright © 2022 Macaroni OS Linux See AUTHORS and LICENSE for the license details and contributors.

Copyright © 2022 Macaroni OS Linux See AUTHORS and LICENSE for the license details and contributors.

Copyright © 2022 Macaroni OS Linux See AUTHORS and LICENSE for the license details and contributors.

Copyright © 2022 Macaroni OS Linux See AUTHORS and LICENSE for the license details and contributors.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadConfigProtectConFile

func LoadConfigProtectConFile(filename string, data []byte) (*ConfigProtectConfFile, error)

func LoadConfigProtectConfs

func LoadConfigProtectConfs(c *LuetConfig) error

Types

type ArtifactsManager

type ArtifactsManager struct {
	Config   *cfg.LuetConfig
	Database pkg.PackageDatabase

	sync.Mutex
	// contains filtered or unexported fields
}

func NewArtifactsManager

func NewArtifactsManager(config *cfg.LuetConfig) *ArtifactsManager

func (*ArtifactsManager) CheckFileConflicts

func (m *ArtifactsManager) CheckFileConflicts(
	toInstall *[]*artifact.PackageArtifact,
	checkSystem bool,
	safeCheck bool,
	targetRootfs string,
) error

func (*ArtifactsManager) Close

func (m *ArtifactsManager) Close()

func (*ArtifactsManager) DownloadPackage

func (*ArtifactsManager) ExecuteFinalizer

func (m *ArtifactsManager) ExecuteFinalizer(
	a *artifact.PackageArtifact,
	r *repos.WagonRepository,
	postInstall bool,
	targetRootfs string) error

func (*ArtifactsManager) ExistsPackageFile

func (m *ArtifactsManager) ExistsPackageFile(file string) (bool, *pkg.DefaultPackage, error)

func (*ArtifactsManager) InstallPackage

func (m *ArtifactsManager) InstallPackage(p *artifact.PackageArtifact, r *repos.WagonRepository, targetRootfs string) error

func (*ArtifactsManager) RegisterPackage

func (*ArtifactsManager) ReinstallPackage

func (m *ArtifactsManager) ReinstallPackage(
	s *repos.Stone,
	p *artifact.PackageArtifact,
	r *repos.WagonRepository,
	targetRootfs string,
	preserveSystemEssentialData bool) error

func (*ArtifactsManager) RemovePackage

func (m *ArtifactsManager) RemovePackage(s *repos.Stone,
	targetRootfs string,
	preserveSystemEssentialData,
	skipFinalizer bool,
	force bool) error

func (*ArtifactsManager) ResolveRuntime

func (m *ArtifactsManager) ResolveRuntime(task *ResolveRdependsTask) error

func (*ArtifactsManager) Setup

func (m *ArtifactsManager) Setup()

func (*ArtifactsManager) Uninstall

func (m *ArtifactsManager) Uninstall(opts *UninstallOpts, targetRootfs string, packs ...*pkg.DefaultPackage) error

type Client

type Client interface {
	DownloadArtifact(*artifact.PackageArtifact) error
	DownloadFile(string) (string, error)
}

type ResolveRdependsTask

type ResolveRdependsTask struct {
	Package        *pkg.DefaultPackage
	System         *pkg.Packages
	SystemRdepsMap map[string][]*pkg.DefaultPackage

	Matches []*pkg.DefaultPackage
	Mutex   sync.Mutex
	// contains filtered or unexported fields
}

func NewResolveRdependsTask

func NewResolveRdependsTask() *ResolveRdependsTask

func (*ResolveRdependsTask) AddMatch

func (r *ResolveRdependsTask) AddMatch(p *pkg.DefaultPackage)

func (*ResolveRdependsTask) AddRdep2Map

func (r *ResolveRdependsTask) AddRdep2Map(p *pkg.DefaultPackage, d *pkg.DefaultPackage)

func (*ResolveRdependsTask) IsResolved

func (r *ResolveRdependsTask) IsResolved(p *pkg.DefaultPackage) bool

func (*ResolveRdependsTask) SetResolved

func (r *ResolveRdependsTask) SetResolved(p *pkg.DefaultPackage)

type Stack

type Stack struct {
	Packages []string
}

func NewStack

func NewStack() *Stack

func (*Stack) AddPackage

func (s *Stack) AddPackage(pkg string)

func (*Stack) HasPackage

func (s *Stack) HasPackage(pkg string) bool

type UninstallOpts

type UninstallOpts struct {
	Force                       bool
	NoDeps                      bool
	PreserveSystemEssentialData bool
	Ask                         bool
	SkipFinalizers              bool
}

Jump to

Keyboard shortcuts

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