Documentation ¶
Overview ¶
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-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 ¶
- func LoadConfigProtectConFile(filename string, data []byte) (*ConfigProtectConfFile, error)
- func LoadConfigProtectConfs(c *LuetConfig) error
- type ArtifactsManager
- func (m *ArtifactsManager) CheckFileConflicts(toInstall *[]*artifact.PackageArtifact, toRemove *[]*artifact.PackageArtifact, ...) error
- func (a *ArtifactsManager) CleanLocalPackagesCache() error
- func (m *ArtifactsManager) Close()
- func (m *ArtifactsManager) DownloadPackage(p *artifact.PackageArtifact, r *repos.WagonRepository, msg string) error
- func (m *ArtifactsManager) ExecuteFinalizer(a *artifact.PackageArtifact, r *repos.WagonRepository, postInstall bool, ...) error
- func (m *ArtifactsManager) ExistsPackageFile(file string) (bool, *pkg.DefaultPackage, error)
- func (m *ArtifactsManager) Install(opts *InstallOpts, targetRootfs string, packs ...*pkg.DefaultPackage) error
- func (m *ArtifactsManager) InstallPackage(p *artifact.PackageArtifact, r *repos.WagonRepository, targetRootfs string) error
- func (a *ArtifactsManager) PurgeLocalReposCache() error
- func (m *ArtifactsManager) RegisterPackage(p *artifact.PackageArtifact, r *repos.WagonRepository, force bool) error
- func (m *ArtifactsManager) ReinstallPackage(s *repos.Stone, p *artifact.PackageArtifact, r *repos.WagonRepository, ...) error
- func (m *ArtifactsManager) RemovePackage(s *repos.Stone, targetRootfs string, ...) error
- func (m *ArtifactsManager) ResolveRuntime(task *ResolveRdependsTask) error
- func (m *ArtifactsManager) Setup()
- func (m *ArtifactsManager) ShowReposRevision() error
- func (m *ArtifactsManager) Uninstall(opts *UninstallOpts, targetRootfs string, packs ...*pkg.DefaultPackage) error
- func (m *ArtifactsManager) Upgrade(opts *InstallOpts, targetRootfs string) error
- type Client
- type InstallOpts
- type ResolveRdependsTask
- type Stack
- type UninstallOpts
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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) CleanLocalPackagesCache ¶
func (a *ArtifactsManager) CleanLocalPackagesCache() error
func (*ArtifactsManager) Close ¶
func (m *ArtifactsManager) Close()
func (*ArtifactsManager) DownloadPackage ¶
func (m *ArtifactsManager) DownloadPackage(p *artifact.PackageArtifact, r *repos.WagonRepository, msg string) error
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) PurgeLocalReposCache ¶
func (a *ArtifactsManager) PurgeLocalReposCache() 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 (*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 InstallOpts ¶
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
}