installer

package
v0.31.1-geaaru Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2023 License: GPL-3.0 Imports: 26 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-2023 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-2023 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,
	toRemove *[]*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)

NOTE: These methods will be replaced soon

func (*ArtifactsManager) Install

func (m *ArtifactsManager) Install(opts *InstallOpts, targetRootfs string,
	packs ...*pkg.DefaultPackage) error

func (*ArtifactsManager) InstallPackage

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

func (*ArtifactsManager) RegisterPackage

func (m *ArtifactsManager) RegisterPackage(p *artifact.PackageArtifact, r *repos.WagonRepository, force bool) error

func (*ArtifactsManager) ReinstallPackage

func (m *ArtifactsManager) ReinstallPackage(
	s *repos.Stone,
	p *artifact.PackageArtifact,
	r *repos.WagonRepository,
	targetRootfs string,
	preserveSystemEssentialData bool,
	force 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) ShowReposRevision

func (m *ArtifactsManager) ShowReposRevision() error

func (*ArtifactsManager) Uninstall

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

func (*ArtifactsManager) Upgrade

func (m *ArtifactsManager) Upgrade(opts *InstallOpts, targetRootfs string) error

type Client

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

type InstallOpts

type InstallOpts struct {
	Force                       bool
	IgnoreConflicts             bool
	NoDeps                      bool
	PreserveSystemEssentialData bool
	Ask                         bool
	SkipFinalizers              bool
	Pretend                     bool
	DownloadOnly                bool
	CheckSystemFiles            bool
	IgnoreMasks                 bool
}

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