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 ¶
- func LoadConfigProtectConFile(filename string, data []byte) (*ConfigProtectConfFile, error)
- func LoadConfigProtectConfs(c *LuetConfig) error
- type ArtifactsManager
- func (m *ArtifactsManager) CheckFileConflicts(toInstall *[]*artifact.PackageArtifact, checkSystem bool, safeCheck bool, ...) error
- func (m *ArtifactsManager) Close()
- func (m *ArtifactsManager) DownloadPackage(p *artifact.PackageArtifact, r *repos.WagonRepository) 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) InstallPackage(p *artifact.PackageArtifact, r *repos.WagonRepository, targetRootfs string) error
- func (m *ArtifactsManager) RegisterPackage(p *artifact.PackageArtifact, r *repos.WagonRepository) 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) Uninstall(opts *UninstallOpts, targetRootfs string, packs ...*pkg.DefaultPackage) error
- type Client
- 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, checkSystem bool, safeCheck bool, targetRootfs string, ) error
func (*ArtifactsManager) Close ¶
func (m *ArtifactsManager) Close()
func (*ArtifactsManager) DownloadPackage ¶
func (m *ArtifactsManager) DownloadPackage(p *artifact.PackageArtifact, r *repos.WagonRepository) 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) 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) error
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 (*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 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 (*Stack) AddPackage ¶
func (*Stack) HasPackage ¶
Click to show internal directories.
Click to hide internal directories.