Documentation
¶
Overview ¶
Copyright © 2024-2025 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-2025 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-2025 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.
Index ¶
- type AutogenBot
- func (a *AutogenBot) AddReposcanAtom(atom *specs.RepoScanAtom)
- func (a *AutogenBot) ConsumeExtension(mkit *specs.MergeKit, aspec *specs.AutogenSpec, atom, def *specs.AutogenAtom, ...) error
- func (a *AutogenBot) ConsumeExtensions(mkit *specs.MergeKit, aspec *specs.AutogenSpec, atom, def *specs.AutogenAtom, ...) error
- func (a *AutogenBot) GeneratePackageOnStaging(mkit *specs.MergeKit, aspec *specs.AutogenSpec, atom, def *specs.AutogenAtom, ...) (*specs.RepoScanAtom, error)
- func (a *AutogenBot) GetDownloadDir() string
- func (a *AutogenBot) GetGenerator(generatorType string, opts map[string]string, aspec *specs.AutogenSpec) (generators.Generator, error)
- func (a *AutogenBot) GetSourcesDir() string
- func (a *AutogenBot) GetTargetDir() string
- func (a *AutogenBot) GetTemplateEngine(t *specs.AutogenTemplateEngine) (tmpleng.TemplateEngine, error)
- func (a *AutogenBot) Notify(atom *specs.AutogenAtom, msg string) error
- func (a *AutogenBot) ProcessDefinition(mkit *specs.MergeKit, aspec *specs.AutogenSpec, def *specs.AutogenDefinition, ...) error
- func (a *AutogenBot) ProcessDefinitions(mkit *specs.MergeKit, aspec *specs.AutogenSpec, opts *AutogenBotOpts) error
- func (a *AutogenBot) ProcessPackage(mkit *specs.MergeKit, aspec *specs.AutogenSpec, atom *specs.AutogenAtom, ...) error
- func (a *AutogenBot) Run(specfile, kitFile string, opts *AutogenBotOpts) error
- func (a *AutogenBot) SetDownloadDir(d string)
- func (a *AutogenBot) SetWorkDir(d string)
- func (a *AutogenBot) SetupFetcher(backend string, opts map[string]string) error
- func (a *AutogenBot) SetupGithubClient(ctx context.Context) error
- func (a *AutogenBot) UpdateTargetKit(mkit *specs.MergeKit, candidates []*specs.RepoScanAtom, opts *AutogenBotOpts) error
- type AutogenBotOpts
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AutogenBot ¶
type AutogenBot struct {
Config *specs.MarkDevkitConfig
Logger *log.MarkDevkitLogger
WorkDir string
DownloadDir string
GithubClient *github.Client
RestGuard *guard.RestGuard
// Merge section
MergeBot *kit.MergeBot
MergeOpts *kit.MergeBotOpts
Fetcher kit.Fetcher
ElabAtoms []*specs.RepoScanAtom
Notifiers []notifier.Notifier
// contains filtered or unexported fields
}
func NewAutogenBot ¶
func NewAutogenBot(c *specs.MarkDevkitConfig) *AutogenBot
func (*AutogenBot) AddReposcanAtom ¶
func (a *AutogenBot) AddReposcanAtom(atom *specs.RepoScanAtom)
func (*AutogenBot) ConsumeExtension ¶ added in v0.20.0
func (a *AutogenBot) ConsumeExtension(mkit *specs.MergeKit, aspec *specs.AutogenSpec, atom, def *specs.AutogenAtom, mapref *map[string]interface{}, extensionDef *specs.AutogenExtension) error
func (*AutogenBot) ConsumeExtensions ¶ added in v0.20.0
func (a *AutogenBot) ConsumeExtensions(mkit *specs.MergeKit, aspec *specs.AutogenSpec, atom, def *specs.AutogenAtom, autogenDef *specs.AutogenDefinition, mapref *map[string]interface{}) error
func (*AutogenBot) GeneratePackageOnStaging ¶
func (a *AutogenBot) GeneratePackageOnStaging(mkit *specs.MergeKit, aspec *specs.AutogenSpec, atom, def *specs.AutogenAtom, mapref *map[string]interface{}, tmplEngine tmpleng.TemplateEngine) (*specs.RepoScanAtom, error)
func (*AutogenBot) GetDownloadDir ¶
func (a *AutogenBot) GetDownloadDir() string
func (*AutogenBot) GetGenerator ¶
func (a *AutogenBot) GetGenerator(generatorType string, opts map[string]string, aspec *specs.AutogenSpec) (generators.Generator, error)
func (*AutogenBot) GetSourcesDir ¶
func (a *AutogenBot) GetSourcesDir() string
func (*AutogenBot) GetTargetDir ¶
func (a *AutogenBot) GetTargetDir() string
func (*AutogenBot) GetTemplateEngine ¶
func (a *AutogenBot) GetTemplateEngine(t *specs.AutogenTemplateEngine) (tmpleng.TemplateEngine, error)
func (*AutogenBot) Notify ¶ added in v0.28.0
func (a *AutogenBot) Notify(atom *specs.AutogenAtom, msg string) error
func (*AutogenBot) ProcessDefinition ¶
func (a *AutogenBot) ProcessDefinition(mkit *specs.MergeKit, aspec *specs.AutogenSpec, def *specs.AutogenDefinition, opts *AutogenBotOpts, nameDef string) error
func (*AutogenBot) ProcessDefinitions ¶
func (a *AutogenBot) ProcessDefinitions(mkit *specs.MergeKit, aspec *specs.AutogenSpec, opts *AutogenBotOpts) error
func (*AutogenBot) ProcessPackage ¶
func (a *AutogenBot) ProcessPackage(mkit *specs.MergeKit, aspec *specs.AutogenSpec, atom *specs.AutogenAtom, aDef *specs.AutogenDefinition, generator generators.Generator, tmplEngine tmpleng.TemplateEngine, opts *AutogenBotOpts) error
func (*AutogenBot) Run ¶
func (a *AutogenBot) Run(specfile, kitFile string, opts *AutogenBotOpts) error
func (*AutogenBot) SetDownloadDir ¶
func (a *AutogenBot) SetDownloadDir(d string)
func (*AutogenBot) SetWorkDir ¶
func (a *AutogenBot) SetWorkDir(d string)
func (*AutogenBot) SetupFetcher ¶
func (a *AutogenBot) SetupFetcher(backend string, opts map[string]string) error
func (*AutogenBot) SetupGithubClient ¶
func (a *AutogenBot) SetupGithubClient(ctx context.Context) error
func (*AutogenBot) UpdateTargetKit ¶
func (a *AutogenBot) UpdateTargetKit(mkit *specs.MergeKit, candidates []*specs.RepoScanAtom, opts *AutogenBotOpts) error
type AutogenBotOpts ¶
type AutogenBotOpts struct {
PullSources bool
Push bool
PullRequest bool
Verbose bool
CleanWorkingDir bool
GenReposcan bool
SyncFiles bool
MergeAutogen bool
MergeForced bool
ShowGeneratedValues bool
StopOnError bool
Atoms []string
GitDeepFetch int
Concurrency int
SignatureName string
SignatureEmail string
// Pull Request data
GithubUser string
}
func NewAutogenBotOpts ¶
func NewAutogenBotOpts() *AutogenBotOpts
func (*AutogenBotOpts) AtomInFilter ¶ added in v0.13.1
func (o *AutogenBotOpts) AtomInFilter(atom string) bool
func (*AutogenBotOpts) HasAtoms ¶ added in v0.13.1
func (o *AutogenBotOpts) HasAtoms() bool