autogen

package
v0.13.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 20, 2025 License: GPL-3.0 Imports: 23 Imported by: 0

Documentation

Overview

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-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

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
	// 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) 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) (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) 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, def *specs.AutogenAtom,
	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
	ShowGeneratedValues 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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL