Documentation
¶
Overview ¶
Copyright © 2024 Macaroni OS Linux See AUTHORS and LICENSE for the license details and contributors.
Copyright © 2024 Macaroni OS Linux See AUTHORS and LICENSE for the license details and contributors.
Copyright © 2024 Macaroni OS Linux See AUTHORS and LICENSE for the license details and contributors.
Copyright © 2024-2025 Macaroni OS Linux See AUTHORS and LICENSE for the license details and contributors.
Copyright © 2024 Macaroni OS Linux See AUTHORS and LICENSE for the license details and contributors.
Copyright © 2024 Macaroni OS Linux See AUTHORS and LICENSE for the license details and contributors.
Copyright © 2024 Macaroni OS Linux See AUTHORS and LICENSE for the license details and contributors.
Copyright © 2024 Macaroni OS Linux See AUTHORS and LICENSE for the license details and contributors.
Copyright © 2024 Macaroni OS Linux See AUTHORS and LICENSE for the license details and contributors.
Copyright © 2024 Macaroni OS Linux See AUTHORS and LICENSE for the license details and contributors.
Copyright © 2024 Macaroni OS Linux See AUTHORS and LICENSE for the license details and contributors.
Copyright © 2024 Macaroni OS Linux See AUTHORS and LICENSE for the license details and contributors.
Copyright © 2024 Macaroni OS Linux See AUTHORS and LICENSE for the license details and contributors.
Copyright © 2024 Macaroni OS Linux See AUTHORS and LICENSE for the license details and contributors.
Copyright © 2024 Macaroni OS Linux See AUTHORS and LICENSE for the license details and contributors.
Index ¶
- Constants
- func GenDefault(viper *v.Viper)
- func SanitizeCategory(cat string, slot string) string
- type AutogenArtefact
- type AutogenAsset
- type AutogenAtom
- type AutogenDefinition
- type AutogenDirlistingProps
- type AutogenGithubProps
- type AutogenSpec
- type AutogenTemplateEngine
- type AutogenTransform
- type Bind
- type DistfilesSpec
- type EnvVar
- type Hook
- type HookFile
- type HookType
- type Job
- type JobOutput
- type JobRendered
- func (j *JobRendered) GetBindsMap() map[string]string
- func (j *JobRendered) GetOptionsEnvsMap() map[string]string
- func (j *JobRendered) GetPostChrootHooks() *[]*Hook
- func (j *JobRendered) GetPostOutputHooks() *[]*Hook
- func (j *JobRendered) GetPreChrootHooks() *[]*Hook
- func (j *JobRendered) GetPreSourcesHooks() *[]*Hook
- func (j *JobRendered) Json() ([]byte, error)
- func (j *JobRendered) Yaml() ([]byte, error)
- type JobSource
- type KitRelease
- type KitReleaseSpec
- type KitReleaseTarget
- type MarkDevkitAuthentication
- type MarkDevkitConfig
- type MarkDevkitGeneral
- type MarkDevkitLogging
- type MarkDevkitRemoteAuth
- type MergeKit
- func (m *MergeKit) GetEclassesInclude() *map[string][]string
- func (m *MergeKit) GetFixupsInclude() *[]*MergeKitFixupInclude
- func (m *MergeKit) GetMetadata() *MergeKitMetadata
- func (m *MergeKit) GetSourceKit(name string) *ReposcanKit
- func (m *MergeKit) GetTargetKit() (*ReposcanKit, error)
- func (m *MergeKit) LoadFile(file string) error
- func (m *MergeKit) LoadYaml(data []byte, file string) error
- type MergeKitAtom
- type MergeKitEclasses
- type MergeKitFixupInclude
- type MergeKitFixups
- type MergeKitMetadata
- type MergeKitTarget
- type MergeKitThirdPartyMirror
- type MetaKitInfo
- type MetaKitSetting
- type MetaKitSha1
- type MetaKitShaValue
- type MetaReleaseInfo
- type MetroSpec
- type MirrorLayout
- type MirrorLayoutMode
- type RepoScanAtom
- func (r *RepoScanAtom) AddRelations(pkgname string)
- func (r *RepoScanAtom) AddRelationsByKind(kind, pkgname string)
- 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) HasFile(name string) bool
- func (r *RepoScanAtom) HasMetadataKey(k string) bool
- func (r *RepoScanAtom) Json() (string, error)
- func (r *RepoScanAtom) ToGentooPackage() (*gentoo.GentooPackage, error)
- func (r *RepoScanAtom) Yaml() (string, error)
- type RepoScanFile
- type RepoScanSpec
- type ReposcanAnalysis
- type ReposcanKit
Constants ¶
const ( MARKDEVKIT_CONFIGNAME = "mark-devkit" MARKDEVKIT_ENV_PREFIX = "MARKDEVKIT" MARKDEVKIT_VERSION = `0.12.0` )
const ( HookOuterPreSourcer = "outer-pre-sourcer" HookInnerChroot = "inner-chroot" HookOuterChroot = "outer-chroot" HookOuterPostChroot = "outer-post-chroot" HookOuterPreChroot = "outer-pre-chroot" HookOuterPostOutput = "outer-post-output" )
const ( GeneratorBuiltinGitub = "builtin-github" GeneratorBuiltinDirListing = "builtin-dirlisting" GeneratorBuiltinNoop = "builtin-noop" TmplEngineHelm = "helm" TmplEnginePongo2 = "pongo2" TmplEngineJ2cli = "j2cli" )
const (
CacheDataVersion = "1.0.6"
)
Variables ¶
This section is empty.
Functions ¶
func GenDefault ¶
func SanitizeCategory ¶ added in v0.5.0
Types ¶
type AutogenArtefact ¶ added in v0.12.0
type AutogenAsset ¶ added in v0.12.0
type AutogenAsset struct { Use string `json:"use,omitempty" yaml:"use,omitempty"` Name string `json:"name,omitempty" yaml:"name,omitempty"` Matcher string `json:"matcher,omitempty" yaml:"matcher,omitempty"` Prefix string `json:"prefix,omitempty" yaml:"prefix,omitempty"` Url string `json:"url,omitempty" yaml:"url,omitempty"` }
type AutogenAtom ¶ added in v0.12.0
type AutogenAtom struct { Name string `json:"-" yaml:"-"` Tarball string `json:"tarball,omitempty" yaml:"tarball,omitempty"` Github *AutogenGithubProps `json:"github,omitempty" yaml:"github,omitempty"` Dir *AutogenDirlistingProps `json:"dir,omitempty" yaml:"dir,omitempty"` Vars map[string]interface{} `json:"vars,omitempty" yaml:"vars,omitempty"` Category string `json:"category,omitempty" yaml:"category,omitempty"` Template string `json:"template,omitempty" yaml:"template,omitempty"` Extensions []string `json:"extentions,omitempty" yaml:"extentions,omitempty"` Assets []*AutogenAsset `json:"assets,omitempty" yaml:"assets,omitempty"` Transforms []*AutogenTransform `json:"transform,omitempty" yaml:"transform,omitempty"` Selector []string `json:"selector,omitempty" yaml:"selector,omitempty"` PythonCompat string `json:"python_compat,omitempty" yaml:"python_compat,omitempty"` }
func NewAutogenAtom ¶ added in v0.12.0
func NewAutogenAtom(name string) *AutogenAtom
func (*AutogenAtom) Clone ¶ added in v0.12.0
func (a *AutogenAtom) Clone() *AutogenAtom
func (*AutogenAtom) GetCategory ¶ added in v0.12.0
func (a *AutogenAtom) GetCategory(def *AutogenAtom) string
func (*AutogenAtom) GetTemplate ¶ added in v0.12.0
func (a *AutogenAtom) GetTemplate(def *AutogenAtom) string
func (*AutogenAtom) HasAssets ¶ added in v0.12.0
func (a *AutogenAtom) HasAssets() bool
func (*AutogenAtom) HasSelector ¶ added in v0.12.0
func (a *AutogenAtom) HasSelector() bool
func (*AutogenAtom) HasTransforms ¶ added in v0.12.0
func (a *AutogenAtom) HasTransforms() bool
type AutogenDefinition ¶ added in v0.12.0
type AutogenDefinition struct { TemplateEngine *AutogenTemplateEngine `json:"template,omitempty" yaml:"template,omitempty"` Generator string `json:"generator,omitempty" yaml:"generator,omitempty"` Defaults *AutogenAtom `json:"defaults,omitempty" yaml:"defaults,omitempty"` Packages []map[string]*AutogenAtom `json:"packages,omitempty" yaml:"packages,omitempty"` }
type AutogenDirlistingProps ¶ added in v0.12.0
type AutogenGithubProps ¶ added in v0.12.0
type AutogenGithubProps struct { User string `json:"user,omitempty" yaml:"user,omitempty"` Repo string `json:"repo,omitempty" yaml:"repo,omitempty"` Query string `json:"query,omitempty" yaml:"query,omitempty"` PerPage *int `json:"per_page,omitempty" yaml:"per_page,omitempty"` Page *int `json:"page,omitempty" yaml:"page,omitempty"` NumPages *int `json:"num_pages,omitempty" yaml:"num_pages,omitempty"` }
type AutogenSpec ¶ added in v0.12.0
type AutogenSpec struct { File string `json:"-" yaml:"-"` Version string `json:"version,omitempty" yaml:"version,omitempty"` Definitions map[string]*AutogenDefinition `json:"-,inline" yaml:"-,inline"` }
func NewAutogenSpec ¶ added in v0.12.0
func NewAutogenSpec() *AutogenSpec
func (*AutogenSpec) HasGithubGenerators ¶ added in v0.12.0
func (a *AutogenSpec) HasGithubGenerators() bool
func (*AutogenSpec) LoadFile ¶ added in v0.12.0
func (a *AutogenSpec) LoadFile(file string) error
func (*AutogenSpec) LoadYaml ¶ added in v0.12.0
func (a *AutogenSpec) LoadYaml(data []byte, file string) error
func (*AutogenSpec) Prepare ¶ added in v0.12.0
func (a *AutogenSpec) Prepare()
type AutogenTemplateEngine ¶ added in v0.12.0
type AutogenTransform ¶ added in v0.12.0
type DistfilesSpec ¶ added in v0.7.0
type DistfilesSpec struct { *MergeKit `json:"-,inline" yaml:"-,inline"` FallbackMirrors []*MergeKitThirdPartyMirror `json:"fallback_mirrors,omitempty" yaml:"fallback_mirrors,omitempty"` }
func NewDistfilesSpec ¶ added in v0.7.0
func NewDistfilesSpec() *DistfilesSpec
func (*DistfilesSpec) LoadFile ¶ added in v0.7.0
func (d *DistfilesSpec) LoadFile(file string) error
type Hook ¶
type Hook struct { File string `yaml:"-" json:"-"` Name string `yaml:"name,omitempty" json:"name,omitempty"` Description string `yaml:"description,omitempty" json:"description,omitempty"` Type HookType `yaml:"type,omitempty" json:"type,omitempty"` Commands []string `yaml:"commands,omitempty" json:"commands,omitempty"` Entrypoint []string `yaml:"entrypoint,omitempty" json:"entrypoint,omitempty"` Binds []Bind `yaml:"chroot_binds,omitempty" json:"chroot_binds,omitempty"` }
func (*Hook) GetCommands ¶
func (*Hook) GetDescription ¶
func (*Hook) GetEntrypoint ¶
type HookFile ¶
type HookFile struct { File string `yaml:"-" json:"-"` Hooks []Hook `yaml:"hooks,omitempty" json:"hooks,omitempty"` }
func NewHookFileFromFile ¶
type Job ¶
type Job struct { Name string `yaml:"name" json:"name"` Source JobSource `yaml:"source,omitempty" json:"source,omitempty"` Output JobOutput `yaml:"output,omitempty" json:"omitempty,omitempty"` Options map[string]interface{} `yaml:"options,omitempty" json:"options,omitempty"` Envs []*EnvVar `yaml:"environments,omitempty" json:"environments,omitempty"` ChrootBinds []Bind `yaml:"chroot_binds,omitempty" json:"chroot_binds,omitempty"` WorkspaceDir string `yaml:"workspacedir,omitempty" json:"workspacedir,omitempty"` HooksBasedir string `yaml:"hooks_basedir,omitempty" json:"hooks_basedir,omitempty"` Hooks []string `yaml:"hooks_files,omitempty" json:"hooks_files,omitempty"` }
type JobOutput ¶
type JobOutput struct { Type string `yaml:"type,omitempty" json:"type,omitempty"` Name string `yaml:"name,omitempty" json:"name,omitempty"` Dir string `yaml:"dir,omitempty" json:"dir,omitempty"` TarformersSpec *tarf_specs.SpecFile `yaml:"tarformers_specs,omitempty" json:"tarformers_specs,omitempty"` }
type JobRendered ¶
type JobRendered struct { *Job HookFile []*HookFile `yaml:"hooks,omitempty" json:"hooks,omitempty"` }
func (*JobRendered) GetBindsMap ¶
func (j *JobRendered) GetBindsMap() map[string]string
func (*JobRendered) GetOptionsEnvsMap ¶
func (j *JobRendered) GetOptionsEnvsMap() map[string]string
func (*JobRendered) GetPostChrootHooks ¶
func (j *JobRendered) GetPostChrootHooks() *[]*Hook
func (*JobRendered) GetPostOutputHooks ¶ added in v0.4.0
func (j *JobRendered) GetPostOutputHooks() *[]*Hook
func (*JobRendered) GetPreChrootHooks ¶
func (j *JobRendered) GetPreChrootHooks() *[]*Hook
func (*JobRendered) GetPreSourcesHooks ¶ added in v0.3.0
func (j *JobRendered) GetPreSourcesHooks() *[]*Hook
func (*JobRendered) Json ¶
func (j *JobRendered) Json() ([]byte, error)
func (*JobRendered) Yaml ¶
func (j *JobRendered) Yaml() ([]byte, error)
type JobSource ¶
type JobSource struct { Type string `yaml:"type,omitempty" json:"type,omitempty"` Uri string `yaml:"uri,omitempty" json:"uri,omitempty"` Path string `yaml:"path,omitempty" json:"path,omitempty"` Target string `yaml:"target,omitempty" json:"target,omitempty"` // Anisie specific options AniseConfigPath string `yaml:"anise_config,omitempty" json:"anise_config,omitempty"` AniseRepositories []string `yaml:"anise_repos,omitempty" json:"anise_repos,omitempty"` AnisePackages []string `yaml:"anise_packages,omitempty" json:"anise_packages,omitempty"` }
type KitRelease ¶ added in v0.5.0
type KitRelease struct { Sources []*ReposcanKit `yaml:"sources,omitempty" json:"sources,omitempty"` Target KitReleaseTarget `yaml:"target,omitempty" json:"target,omitempty"` MainKit string `yaml:"main_kit,omitempty" json:"main_kit,omitempty"` }
func (*KitRelease) GetMainKit ¶ added in v0.5.0
func (r *KitRelease) GetMainKit() string
func (*KitRelease) GetTargetKit ¶ added in v0.5.0
func (r *KitRelease) GetTargetKit() (*ReposcanKit, error)
type KitReleaseSpec ¶ added in v0.5.0
type KitReleaseSpec struct { Release *KitRelease `yaml:"release,omitempty" json:"release,omitempty"` File string `yaml:"-" json:"-"` }
func NewKitReleaseSpec ¶ added in v0.5.0
func NewKitReleaseSpec() *KitReleaseSpec
func (*KitReleaseSpec) GetSourceKit ¶ added in v0.5.0
func (r *KitReleaseSpec) GetSourceKit(name string) *ReposcanKit
func (*KitReleaseSpec) LoadFile ¶ added in v0.5.0
func (r *KitReleaseSpec) LoadFile(file string) error
type KitReleaseTarget ¶ added in v0.5.0
type MarkDevkitAuthentication ¶ added in v0.12.0
type MarkDevkitAuthentication struct {
Remotes map[string]*MarkDevkitRemoteAuth `mapstructure:"-,inline" json:"-,inline" yaml:"-,inline"`
}
func (*MarkDevkitAuthentication) GetRemote ¶ added in v0.12.0
func (a *MarkDevkitAuthentication) GetRemote(r string) (*MarkDevkitRemoteAuth, bool)
type MarkDevkitConfig ¶
type MarkDevkitConfig struct { Viper *v.Viper `yaml:"-" json:"-"` General MarkDevkitGeneral `mapstructure:"general" json:"general,omitempty" yaml:"general,omitempty"` Logging MarkDevkitLogging `mapstructure:"logging" json:"logging,omitempty" yaml:"logging,omitempty"` Authentication MarkDevkitAuthentication `mapstructure:"authentication" json:"authentication,omitempty" yaml:"authentication,omitempty"` }
func NewMarkDevkitConfig ¶
func NewMarkDevkitConfig(viper *v.Viper) *MarkDevkitConfig
func (*MarkDevkitConfig) GetAuthentication ¶ added in v0.12.0
func (c *MarkDevkitConfig) GetAuthentication() *MarkDevkitAuthentication
func (*MarkDevkitConfig) GetGeneral ¶
func (c *MarkDevkitConfig) GetGeneral() *MarkDevkitGeneral
func (*MarkDevkitConfig) GetLogging ¶
func (c *MarkDevkitConfig) GetLogging() *MarkDevkitLogging
func (*MarkDevkitConfig) Unmarshal ¶
func (c *MarkDevkitConfig) Unmarshal() error
func (*MarkDevkitConfig) Yaml ¶
func (c *MarkDevkitConfig) Yaml() ([]byte, error)
type MarkDevkitGeneral ¶
type MarkDevkitGeneral struct {
Debug bool `mapstructure:"debug,omitempty" json:"debug,omitempty" yaml:"debug,omitempty"`
}
func (*MarkDevkitGeneral) HasDebug ¶
func (g *MarkDevkitGeneral) HasDebug() bool
type MarkDevkitLogging ¶
type MarkDevkitLogging struct { // Path of the logfile Path string `mapstructure:"path,omitempty" json:"path,omitempty" yaml:"path,omitempty"` // Enable/Disable logging to file EnableLogFile bool `mapstructure:"enable_logfile,omitempty" json:"enable_logfile,omitempty" yaml:"enable_logfile,omitempty"` // Enable JSON format logging in file JsonFormat bool `mapstructure:"json_format,omitempty" json:"json_format,omitempty" yaml:"json_format,omitempty"` // Log level Level string `mapstructure:"level,omitempty" json:"level,omitempty" yaml:"level,omitempty"` // Enable emoji EnableEmoji bool `mapstructure:"enable_emoji,omitempty" json:"enable_emoji,omitempty" yaml:"enable_emoji,omitempty"` // Enable/Disable color in logging Color bool `mapstructure:"color,omitempty" json:"color,omitempty" yaml:"color,omitempty"` }
type MarkDevkitRemoteAuth ¶ added in v0.12.0
type MarkDevkitRemoteAuth struct { Username string `mapstructure:"username,omitempty" json:"username,omitempty" yaml:"username,omitempty"` Password string `mapstructure:"password,omitempty" json:"password,omitempty" yaml:"password,omitempty"` Token string `mapstructure:"token,omitempty" json:"token,omitempty" yaml:"token,omitempty"` ApiVersion string `mapstructure:"api_version,omitempty" json:"api_version,omitempty" yaml:"api_version,omitempty"` Url string `mapstructure:"url,omitempty" json:"url,omitempty" yaml:"url,omitempty"` }
type MergeKit ¶ added in v0.5.0
type MergeKit struct { Sources []*ReposcanKit `yaml:"sources,omitempty" json:"sources,omitempty"` Target MergeKitTarget `yaml:"target,omitempty" json:"target,omitempty"` File string `yaml:"-" json:"-"` }
func NewMergeKit ¶ added in v0.5.0
func NewMergeKit() *MergeKit
func (*MergeKit) GetEclassesInclude ¶ added in v0.5.0
func (*MergeKit) GetFixupsInclude ¶ added in v0.5.0
func (m *MergeKit) GetFixupsInclude() *[]*MergeKitFixupInclude
func (*MergeKit) GetMetadata ¶ added in v0.5.0
func (m *MergeKit) GetMetadata() *MergeKitMetadata
func (*MergeKit) GetSourceKit ¶ added in v0.5.0
func (m *MergeKit) GetSourceKit(name string) *ReposcanKit
func (*MergeKit) GetTargetKit ¶ added in v0.5.0
func (m *MergeKit) GetTargetKit() (*ReposcanKit, error)
type MergeKitAtom ¶ added in v0.5.0
type MergeKitAtom struct { Package string `yaml:"pkg,omitempty" json:"pkg,omitempty"` MaxVersions *int `yaml:"max_versions,omitempty" json:"max_versions,omitempty"` Conditions []string `yaml:"conditions,omitempty" json:"conditions,omitempty"` Versions []string `yaml:"versions,omitempty" json:"versions,omitempty"` }
type MergeKitEclasses ¶ added in v0.5.0
type MergeKitFixupInclude ¶ added in v0.5.0
type MergeKitFixupInclude struct { Dir string `yaml:"dir,omitempty" json:"dir,omitempty"` To string `yaml:"to,omitempty" json:"to,omitempty"` File string `yaml:"file,omitempty" json:"file,omitempty"` Name string `yaml:"name,omitempty" json:"name,omitempty"` }
func (*MergeKitFixupInclude) GetName ¶ added in v0.6.0
func (f *MergeKitFixupInclude) GetName() string
func (*MergeKitFixupInclude) GetType ¶ added in v0.6.0
func (f *MergeKitFixupInclude) GetType() string
type MergeKitFixups ¶ added in v0.5.0
type MergeKitFixups struct {
Include []*MergeKitFixupInclude `yaml:"include,omitempty" json:"include,omitempty"`
}
type MergeKitMetadata ¶ added in v0.5.0
type MergeKitMetadata struct { LayoutMasters string `yaml:"layout_masters,omitempty" json:"layout_masters,omitempty"` Aliases []string `yaml:"aliases,omitempty" json:"aliases,omitempty"` ManifestHashes []string `yaml:"manifest_hashes,omitempty" json:"manifest_hashes,omitempty"` ManifestRequiredHashes []string `yaml:"manifest_required_hashes,omitempty" json:"manifest_required_hashes,omitempty"` }
func (*MergeKitMetadata) GetLayoutMasters ¶ added in v0.5.0
func (m *MergeKitMetadata) GetLayoutMasters() string
func (*MergeKitMetadata) HasAliases ¶ added in v0.5.0
func (m *MergeKitMetadata) HasAliases() bool
func (*MergeKitMetadata) HasManifestHashes ¶ added in v0.8.0
func (m *MergeKitMetadata) HasManifestHashes() bool
func (*MergeKitMetadata) HashManifestReqHashes ¶ added in v0.8.0
func (m *MergeKitMetadata) HashManifestReqHashes() bool
type MergeKitTarget ¶ added in v0.5.0
type MergeKitTarget struct { Name string `yaml:"name" json:"name"` Url string `yaml:"url,omitempty" json:"url,omitempty"` Branch string `yaml:"branch" json:"branch"` Eclasses *MergeKitEclasses `yaml:"eclasses,omitempty" json:"eclasses,omitempty"` Metadata *MergeKitMetadata `yaml:"metadata,omitempty" json:"metadata,omitempty"` ThirdpartyMirrors []*MergeKitThirdPartyMirror `yaml:"thirdpartymirrors,omitempty" json:"thirdpartymirrors,omitempty"` Fixups *MergeKitFixups `yaml:"fixups,omitempty" json:"fixups,omitempty"` AtomDefaults *MergeKitAtom `yaml:"atoms_defaults,omitempty" json:"atoms_defaults,omitempty"` Atoms []*MergeKitAtom `yaml:"atoms,omitempty" json:"atoms,omitempty"` }
func (*MergeKitTarget) GetThirdpartyMirrorsUris ¶ added in v0.7.0
func (m *MergeKitTarget) GetThirdpartyMirrorsUris(alias string) []string
type MergeKitThirdPartyMirror ¶ added in v0.5.0
type MergeKitThirdPartyMirror struct { Alias string `yaml:"alias,omitempty" json:"alias,omitempty"` Uri []string `yaml:"uri,omitempty" json:"uri,omitempty"` Layout *MirrorLayout `yaml:"layout,omitempty" json:"layout,omitempty"` }
type MetaKitInfo ¶ added in v0.5.0
type MetaKitInfo struct { KitOrder []string `yaml:"kit_order,omitempty" json:"kit_order,omitempty"` KitSettings map[string]MetaKitSetting `yaml:"kit_settings,omitempty" json:"kit_settings,omitempty"` ReleaseDefs map[string][]string `yaml:"release_defs,omitempty" json:"release_defs,omitempty"` ReleaseInfo *MetaReleaseInfo `yaml:"release_info,omitempty" json:"release_info,omitempty"` }
kit-info.json structure
func (*MetaKitInfo) Json ¶ added in v0.5.0
func (i *MetaKitInfo) Json() ([]byte, error)
type MetaKitSetting ¶ added in v0.5.0
type MetaKitSha1 ¶ added in v0.5.0
type MetaKitSha1 struct {
Kits map[string]map[string]interface{} `yaml:"-,inline" json:"-,inline"`
}
kit-sha1.json structure
func (*MetaKitSha1) Json ¶ added in v0.5.0
func (i *MetaKitSha1) Json() ([]byte, error)
type MetaKitShaValue ¶ added in v0.5.0
type MetaKitShaValue struct { Sha1 string `yaml:"sha1,omitempty" json:"sha1,omitempty"` Depth *int `yaml:"depth,omitempty" json:"depth,omitempty"` }
Instead of directly define the sha1 of a branch is possible define the depth and the sha1 together. This struct is used as value of the MetaKitSha1 map interface.
type MetaReleaseInfo ¶ added in v0.5.0
type MetaReleaseInfo struct { Required []map[string]string `yaml:"required,omitempty" json:"required,omitempty"` Version int `yaml:"version,omitempty" json:"version,omitempty"` }
Used by kit-info.json and version.json
func (*MetaReleaseInfo) Json ¶ added in v0.5.0
func (r *MetaReleaseInfo) Json() ([]byte, error)
type MetroSpec ¶
type MetroSpec struct { Version string `yaml:"version,omitempty" json:"version,omitempty"` Jobs []Job `yaml:"jobs,omitempty" json:"jobs,omitempty"` File string `yaml:"-" json:"-"` }
func NewMetroSpec ¶
func NewMetroSpec() *MetroSpec
type MirrorLayout ¶ added in v0.7.0
type MirrorLayout struct {
Modes []*MirrorLayoutMode `json:"modes" yaml:"modes"`
}
type MirrorLayoutMode ¶ added in v0.7.0
type MirrorLayoutMode struct { Type string `json:"type" yaml:"type"` Hash string `json:"hash,omitempty" yaml:"hash,omitempty"` HashMode string `json:"hash_mode,omitempty" yaml:"hash_mode,omitempty"` }
func (*MirrorLayoutMode) GetAtomPath ¶ added in v0.7.0
func (l *MirrorLayoutMode) GetAtomPath(fileName, fileSha512, fileBlake2b string) (ans string)
type RepoScanAtom ¶ added in v0.5.0
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,omitempty" yaml:"kit,omitempty"` Branch string `json:"branch,omitempty" yaml:"branch,omitempty"` // 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) AddRelations ¶ added in v0.5.0
func (r *RepoScanAtom) AddRelations(pkgname string)
func (*RepoScanAtom) AddRelationsByKind ¶ added in v0.5.0
func (r *RepoScanAtom) AddRelationsByKind(kind, pkgname string)
func (*RepoScanAtom) GetBuildtimeDeps ¶ added in v0.5.0
func (r *RepoScanAtom) GetBuildtimeDeps() ([]gentoo.GentooPackage, error)
func (*RepoScanAtom) GetCategory ¶ added in v0.5.0
func (r *RepoScanAtom) GetCategory() string
func (*RepoScanAtom) GetMetadataValue ¶ added in v0.5.0
func (r *RepoScanAtom) GetMetadataValue(k string) string
func (*RepoScanAtom) GetPackageName ¶ added in v0.5.0
func (r *RepoScanAtom) GetPackageName() string
func (*RepoScanAtom) GetRuntimeDeps ¶ added in v0.5.0
func (r *RepoScanAtom) GetRuntimeDeps() ([]gentoo.GentooPackage, error)
func (*RepoScanAtom) HasFile ¶ added in v0.9.0
func (r *RepoScanAtom) HasFile(name string) bool
func (*RepoScanAtom) HasMetadataKey ¶ added in v0.5.0
func (r *RepoScanAtom) HasMetadataKey(k string) bool
func (*RepoScanAtom) Json ¶ added in v0.5.0
func (r *RepoScanAtom) Json() (string, error)
func (*RepoScanAtom) ToGentooPackage ¶ added in v0.5.0
func (r *RepoScanAtom) ToGentooPackage() (*gentoo.GentooPackage, error)
func (*RepoScanAtom) Yaml ¶ added in v0.5.0
func (r *RepoScanAtom) Yaml() (string, error)
type RepoScanFile ¶ added in v0.5.0
type RepoScanSpec ¶ added in v0.5.0
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) Json ¶ added in v0.5.0
func (r *RepoScanSpec) Json() (string, error)
func (*RepoScanSpec) WriteJsonFile ¶ added in v0.5.0
func (r *RepoScanSpec) WriteJsonFile(f string) error
func (*RepoScanSpec) Yaml ¶ added in v0.5.0
func (r *RepoScanSpec) Yaml() (string, error)
type ReposcanAnalysis ¶ added in v0.5.0
type ReposcanAnalysis struct {
Kits []*ReposcanKit `yaml:"sources,omitempty" json:"sources,omitempty"`
}
func NewReposcanAnalysis ¶ added in v0.5.0
func NewReposcanAnalysis(file string) (*ReposcanAnalysis, error)
func (*ReposcanAnalysis) GetKitsEclassDirs ¶ added in v0.8.1
func (ra *ReposcanAnalysis) GetKitsEclassDirs(cloneDir string) ([]string, error)
func (*ReposcanAnalysis) Json ¶ added in v0.5.0
func (ra *ReposcanAnalysis) Json() ([]byte, error)
func (*ReposcanAnalysis) WriteYamlFile ¶ added in v0.5.0
func (ra *ReposcanAnalysis) WriteYamlFile(file string) error
func (*ReposcanAnalysis) Yaml ¶ added in v0.5.0
func (ra *ReposcanAnalysis) Yaml() ([]byte, error)
type ReposcanKit ¶ added in v0.5.0
type ReposcanKit struct { Name string `yaml:"name,omitempty" json:"name,omitempty"` Url string `yaml:"url,omitempty" json:"url,omitempty"` Branch string `yaml:"branch,omitempty" json:"branch,omitempty"` CommitSha1 string `yaml:"commit_sha1,omitempty" json:"commit_sha1,omitempty"` Depth *int `yaml:"depth,omitempty" json:"depth,omitempty"` Priority *int `yaml:"priority,omitempty" json:"priority,omitempty"` }
func NewReposcanKit ¶ added in v0.5.0
func NewReposcanKit(name, url, branch, commit string) *ReposcanKit
func (*ReposcanKit) GetPriority ¶ added in v0.5.0
func (r *ReposcanKit) GetPriority() int