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.
Index ¶
- Constants
- type Stone
- type StonesCatalog
- type StonesPack
- type StonesSearchOpts
- type WagonDocument
- type WagonIdentity
- type WagonRepository
- func (w *WagonRepository) ClearCatalog()
- func (w *WagonRepository) GetLastUpdate() string
- func (w *WagonRepository) GetRevision() int
- func (w *WagonRepository) IncrementRevision()
- func (w *WagonRepository) ReadWagonIdentify(wdir string) error
- func (w *WagonRepository) SearchStones(opts *StonesSearchOpts) (*[]*Stone, error)
- func (w *WagonRepository) SetLastUpdate(u string)
- type WagonStones
Constants ¶
View Source
const ( REPOSITORY_METAFILE = "repository.meta.yaml" REPOSITORY_SPECFILE = "repository.yaml" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Stone ¶
type Stone struct { Name string `json:"name" yaml:"name"` Category string `json:"category" yaml:"category"` Version string `json:"version" yaml:"version"` License string `json:"license,omitempty" yaml:"license,omitempty"` Repository string `json:"repository" yaml:"repository"` Hidden bool `json:"hidden,omitempty" yaml:"hidden,omitempty"` Files []string `json:"files,omitempty" yaml:"files,omitempty"` Annotations map[string]interface{} `json:"annotations,omitempty" yaml:"annotations,omitempty"` Labels map[string]string `json:"labels,omitempty" yaml:"labels,omitempty"` }
type StonesCatalog ¶
type StonesCatalog struct {
Index compiler.ArtifactIndex `json:"index" yaml:"index"`
}
type StonesPack ¶
type StonesPack struct {
Stones []*Stone `json:"stones" yaml:"stones"`
}
type StonesSearchOpts ¶
type WagonDocument ¶
type WagonDocument struct { Filename string `json:"filename" yaml:"filename"` CompressionType compression.Implementation `json:"compressiontype,omitempty" yaml:"compressiontype,omitempty"` Checksums artifact.Checksums `json:"checksums,omitempty" yaml:"checksums,omitempty"` }
type WagonIdentity ¶
type WagonIdentity struct { *config.LuetRepository `yaml:",inline" json:",inline"` IdentityFile string `yaml:-" json:"-"` RepositoryFiles map[string]*WagonDocument `yaml:"repo_files,omitempty" json:"repo_files,omitempty"` }
func NewWagonIdentify ¶
func NewWagonIdentify(l *config.LuetRepository) *WagonIdentity
func (*WagonIdentity) Load ¶
func (w *WagonIdentity) Load(f string) error
type WagonRepository ¶
type WagonRepository struct { Identity *WagonIdentity Stones *WagonStones }
func NewWagonRepository ¶
func NewWagonRepository(l *config.LuetRepository) *WagonRepository
func (*WagonRepository) ClearCatalog ¶
func (w *WagonRepository) ClearCatalog()
func (*WagonRepository) GetLastUpdate ¶
func (w *WagonRepository) GetLastUpdate() string
func (*WagonRepository) GetRevision ¶
func (w *WagonRepository) GetRevision() int
func (*WagonRepository) IncrementRevision ¶
func (w *WagonRepository) IncrementRevision()
func (*WagonRepository) ReadWagonIdentify ¶
func (w *WagonRepository) ReadWagonIdentify(wdir string) error
func (*WagonRepository) SearchStones ¶
func (w *WagonRepository) SearchStones(opts *StonesSearchOpts) (*[]*Stone, error)
func (*WagonRepository) SetLastUpdate ¶
func (w *WagonRepository) SetLastUpdate(u string)
type WagonStones ¶
type WagonStones struct {
Catalog *StonesCatalog
}
func NewWagonStones ¶
func NewWagonStones() *WagonStones
func (*WagonStones) LoadCatalog ¶
func (s *WagonStones) LoadCatalog(identity *WagonIdentity) (*StonesCatalog, error)
func (*WagonStones) Search ¶
func (s *WagonStones) Search(opts *StonesSearchOpts, repoName string) (*[]*Stone, error)
Click to show internal directories.
Click to hide internal directories.