Documentation ¶
Overview ¶
Copyright © 2021-2023 Macaroni OS Linux See AUTHORS and LICENSE for the license details and contributors.
Copyright © 2021-2023 Macaroni OS Linux See AUTHORS and LICENSE for the license details and contributors.
Copyright © 2021-2023 Macaroni OS Linux See AUTHORS and LICENSE for the license details and contributors.
Index ¶
- Constants
- type EbuildDependencies
- type GentooDependency
- type RepoScanAtom
- func (r *RepoScanAtom) GetBuildtimeDeps() ([]gentoo.GentooPackage, error)
- func (r *RepoScanAtom) GetCategory() string
- func (r *RepoScanAtom) GetMetadataValue(k string) string
- func (r *RepoScanAtom) GetPackageName() string
- func (r *RepoScanAtom) GetRuntimeDeps() ([]gentoo.GentooPackage, error)
- func (r *RepoScanAtom) HasMetadataKey(k string) bool
- func (r *RepoScanAtom) ToGentooPackage() (*gentoo.GentooPackage, error)
- type RepoScanFile
- type RepoScanResolver
- func (r *RepoScanResolver) BuildMap() error
- func (r *RepoScanResolver) GetContinueWithError() bool
- func (r *RepoScanResolver) GetDepsWithSlot() bool
- func (r *RepoScanResolver) GetDisabledKeywords() []string
- func (r *RepoScanResolver) GetDisabledUseFlags() []string
- func (r *RepoScanResolver) GetLastPackage(pkg string) (*RepoScanAtom, error)
- func (r *RepoScanResolver) GetMap() map[string]([]RepoScanAtom)
- func (r *RepoScanResolver) IsDisableUseFlag(u string) bool
- func (r *RepoScanResolver) IsIgnoreMissingDeps() bool
- func (r *RepoScanResolver) IsPresentPackage(pkg string) bool
- func (r *RepoScanResolver) KeywordsIsAdmit(atom *RepoScanAtom, p *gentoo.GentooPackage) (bool, error)
- func (r *RepoScanResolver) LoadJson(path string) error
- func (r *RepoScanResolver) LoadJsonFiles(verbose bool) error
- func (r *RepoScanResolver) LoadRawJson(raw, file string) error
- func (r *RepoScanResolver) PackageIsAdmit(target, atom *gentoo.GentooPackage) (bool, error)
- func (r *RepoScanResolver) Resolve(pkg string, opts specs.PortageResolverOpts) (*specs.PortageSolution, error)
- func (r *RepoScanResolver) SetContinueWithError(v bool)
- func (r *RepoScanResolver) SetDepsWithSlot(v bool)
- func (r *RepoScanResolver) SetDisabledKeywords(k []string)
- func (r *RepoScanResolver) SetDisabledUseFlags(u []string)
- func (r *RepoScanResolver) SetIgnoreMissingDeps(v bool)
- type RepoScanSpec
Constants ¶
View Source
const (
CacheDataVersion = "1.0.6"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EbuildDependencies ¶
type EbuildDependencies struct {
Dependencies []*GentooDependency
}
func ParseDependencies ¶
func ParseDependencies(rdepend string) (*EbuildDependencies, error)
func ParseDependenciesMultiline ¶
func ParseDependenciesMultiline(rdepend string) (*EbuildDependencies, error)
func (*EbuildDependencies) GetDependencies ¶
func (r *EbuildDependencies) GetDependencies() []*GentooDependency
func (*EbuildDependencies) GetUseFlags ¶
func (r *EbuildDependencies) GetUseFlags() []string
type GentooDependency ¶
type GentooDependency struct { Use string UseCondition _gentoo.PackageCond SubDeps []*GentooDependency Dep *_gentoo.GentooPackage DepInOr bool }
func NewGentooDependency ¶
func NewGentooDependency(pkg, use string) (*GentooDependency, error)
func NewGentooDependencyWithSubdeps ¶
func NewGentooDependencyWithSubdeps(pkg, use string, subdeps []*GentooDependency) (*GentooDependency, error)
func (*GentooDependency) AddSubDependency ¶
func (d *GentooDependency) AddSubDependency(pkg, use string) (*GentooDependency, error)
func (*GentooDependency) GetDepsList ¶
func (d *GentooDependency) GetDepsList() []*GentooDependency
func (*GentooDependency) GetUseFlags ¶
func (d *GentooDependency) GetUseFlags() []string
func (*GentooDependency) String ¶
func (d *GentooDependency) String() string
type RepoScanAtom ¶
type RepoScanAtom struct { Atom string `json:"atom,omitempty" yaml:"atom,omitempty"` Category string `json:"category,omitempty" yaml:"category,omitempty"` Package string `json:"package,omitempty" yaml:"package,omitempty"` Revision string `json:"revision,omitempty" yaml:"revision,omitempty"` CatPkg string `json:"catpkg,omitempty" yaml:"catpkg,omitempty"` Eclasses [][]string `json:"eclasses,omitempty" yaml:"eclasses,omitempty"` Kit string `json:"kit" yaml:"kit"` Branch string `json:"branch" yaml:"branch"` // Relations contains the list of the keys defined on // relations_by_kind. The values could be RDEPEND, DEPEND, BDEPEND Relations []string `json:"relations,omitempty" yaml:"relations,omitempty"` RelationsByKind map[string][]string `json:"relations_by_kind,omitempty" yaml:"relations_by_kind,omitempty"` // Metadata contains ebuild variables. // Ex: SLOT, SRC_URI, HOMEPAGE, etc. Metadata map[string]string `json:"metadata,omitempty" yaml:"metadata,omitempty"` MetadataOut string `json:"metadata_out,omitempty" yaml:"metadata_out,omitempty"` ManifestMd5 string `json:"manifest_md5,omitempty" yaml:"manifest_md5,omitempty"` Md5 string `json:"md5,omitempty" yaml:"md5,omitempty"` // Fields present on failure Status string `json:"status,omitempty" yaml:"status,omitempty"` Output string `json:"output,omitempty" yaml:"output,omitempty"` Files []RepoScanFile `json:"files,omitempty" yaml:"files,omitempty"` }
func (*RepoScanAtom) GetBuildtimeDeps ¶
func (r *RepoScanAtom) GetBuildtimeDeps() ([]gentoo.GentooPackage, error)
func (*RepoScanAtom) GetCategory ¶
func (r *RepoScanAtom) GetCategory() string
func (*RepoScanAtom) GetMetadataValue ¶
func (r *RepoScanAtom) GetMetadataValue(k string) string
func (*RepoScanAtom) GetPackageName ¶
func (r *RepoScanAtom) GetPackageName() string
func (*RepoScanAtom) GetRuntimeDeps ¶
func (r *RepoScanAtom) GetRuntimeDeps() ([]gentoo.GentooPackage, error)
func (*RepoScanAtom) HasMetadataKey ¶
func (r *RepoScanAtom) HasMetadataKey(k string) bool
func (*RepoScanAtom) ToGentooPackage ¶
func (r *RepoScanAtom) ToGentooPackage() (*gentoo.GentooPackage, error)
type RepoScanFile ¶
type RepoScanResolver ¶
type RepoScanResolver struct { JsonSources []string Sources []RepoScanSpec Constraints []string MapConstraints map[string]([]gentoo.GentooPackage) Map map[string]([]RepoScanAtom) IgnoreMissingDeps bool ContinueWithError bool DepsWithSlot bool DisabledUseFlags []string DisabledKeywords []string }
func NewRepoScanResolver ¶
func NewRepoScanResolver() *RepoScanResolver
func (*RepoScanResolver) BuildMap ¶
func (r *RepoScanResolver) BuildMap() error
func (*RepoScanResolver) GetContinueWithError ¶
func (r *RepoScanResolver) GetContinueWithError() bool
func (*RepoScanResolver) GetDepsWithSlot ¶
func (r *RepoScanResolver) GetDepsWithSlot() bool
func (*RepoScanResolver) GetDisabledKeywords ¶
func (r *RepoScanResolver) GetDisabledKeywords() []string
func (*RepoScanResolver) GetDisabledUseFlags ¶
func (r *RepoScanResolver) GetDisabledUseFlags() []string
func (*RepoScanResolver) GetLastPackage ¶
func (r *RepoScanResolver) GetLastPackage(pkg string) (*RepoScanAtom, error)
func (*RepoScanResolver) GetMap ¶
func (r *RepoScanResolver) GetMap() map[string]([]RepoScanAtom)
func (*RepoScanResolver) IsDisableUseFlag ¶
func (r *RepoScanResolver) IsDisableUseFlag(u string) bool
func (*RepoScanResolver) IsIgnoreMissingDeps ¶
func (r *RepoScanResolver) IsIgnoreMissingDeps() bool
func (*RepoScanResolver) IsPresentPackage ¶
func (r *RepoScanResolver) IsPresentPackage(pkg string) bool
func (*RepoScanResolver) KeywordsIsAdmit ¶
func (r *RepoScanResolver) KeywordsIsAdmit(atom *RepoScanAtom, p *gentoo.GentooPackage) (bool, error)
func (*RepoScanResolver) LoadJson ¶
func (r *RepoScanResolver) LoadJson(path string) error
func (*RepoScanResolver) LoadJsonFiles ¶
func (r *RepoScanResolver) LoadJsonFiles(verbose bool) error
func (*RepoScanResolver) LoadRawJson ¶
func (r *RepoScanResolver) LoadRawJson(raw, file string) error
func (*RepoScanResolver) PackageIsAdmit ¶
func (r *RepoScanResolver) PackageIsAdmit(target, atom *gentoo.GentooPackage) (bool, error)
func (*RepoScanResolver) Resolve ¶
func (r *RepoScanResolver) Resolve(pkg string, opts specs.PortageResolverOpts) (*specs.PortageSolution, error)
func (*RepoScanResolver) SetContinueWithError ¶
func (r *RepoScanResolver) SetContinueWithError(v bool)
func (*RepoScanResolver) SetDepsWithSlot ¶
func (r *RepoScanResolver) SetDepsWithSlot(v bool)
func (*RepoScanResolver) SetDisabledKeywords ¶
func (r *RepoScanResolver) SetDisabledKeywords(k []string)
func (*RepoScanResolver) SetDisabledUseFlags ¶
func (r *RepoScanResolver) SetDisabledUseFlags(u []string)
func (*RepoScanResolver) SetIgnoreMissingDeps ¶
func (r *RepoScanResolver) SetIgnoreMissingDeps(v bool)
type RepoScanSpec ¶
type RepoScanSpec struct { CacheDataVersion string `json:"cache_data_version" yaml:"cache_data_version"` Atoms map[string]RepoScanAtom `json:"atoms" yaml:"atoms"` MetadataErrors map[string]RepoScanAtom `json:"metadata_errors,omitempty" yaml:"metadata_errors,omitempty"` File string `json:"-"` }
func (*RepoScanSpec) Yaml ¶
func (r *RepoScanSpec) Yaml() (string, error)
Click to show internal directories.
Click to hide internal directories.