Documentation ¶
Overview ¶
Copyright © 2019-2023 Macaroni OS Linux See AUTHORS and LICENSE for the license details and contributors.
Copyright © 2019-2023 Macaroni OS Linux See AUTHORS and LICENSE for the license details and contributors.
Copyright © 2019-2023 Macaroni OS Linux See AUTHORS and LICENSE for the license details and contributors.
Index ¶
- Constants
- func ReadCollectionFile(cFile string) (*pkg.Collection, error)
- func ReadDefinitionFile(defFile string) (*pkg.DefaultPackage, error)
- func WriteDefinitionFile(p pkg.Package, definitionFilePath string) error
- type GenOpts
- type TreeIdx
- func (t *TreeIdx) AddPackage(name string, p *TreeIdxPkg)
- func (t *TreeIdx) DetectMode() *TreeIdx
- func (t *TreeIdx) Generate(treeDir string, opts *GenOpts) error
- func (t *TreeIdx) GetPackageVersion(name, version string) (*TreeIdxPkg, bool)
- func (t *TreeIdx) GetPackageVersions(name string) ([]*TreeIdxPkg, bool)
- func (t *TreeIdx) Merge(tI *TreeIdx)
- func (t *TreeIdx) Read(treeDir string) error
- func (t *TreeIdx) ToJSON() ([]byte, error)
- func (t *TreeIdx) ToYAML() ([]byte, error)
- func (t *TreeIdx) Write() error
- type TreeIdxPkg
Constants ¶
View Source
const (
IDX_FILE = ".anise-idx.json"
)
Variables ¶
This section is empty.
Functions ¶
func ReadCollectionFile ¶
func ReadCollectionFile(cFile string) (*pkg.Collection, error)
func ReadDefinitionFile ¶
func ReadDefinitionFile(defFile string) (*pkg.DefaultPackage, error)
Types ¶
type TreeIdx ¶
type TreeIdx struct { Map map[string][]*TreeIdxPkg `json:"packages,omitempty" yaml:"packages,omitempty"` BaseDir string `json:"basedir,omitempty" yaml:"basedir,omitempty"` Compress bool `json:"-" yaml:"-"` TreePath string `json:"-" yaml:"-"` }
func NewTreeIdx ¶
func (*TreeIdx) AddPackage ¶
func (t *TreeIdx) AddPackage(name string, p *TreeIdxPkg)
func (*TreeIdx) DetectMode ¶
func (*TreeIdx) GetPackageVersion ¶
func (t *TreeIdx) GetPackageVersion(name, version string) (*TreeIdxPkg, bool)
func (*TreeIdx) GetPackageVersions ¶
func (t *TreeIdx) GetPackageVersions(name string) ([]*TreeIdxPkg, bool)
type TreeIdxPkg ¶
Click to show internal directories.
Click to hide internal directories.