kit

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2024 License: GPL-3.0 Imports: 24 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Copyright © 2021-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.

Copyright © 2024 Macaroni OS Linux See AUTHORS and LICENSE for the license details and contributors.

Index

Constants

View Source
const (
	README = `` /* 176-byte string literal not displayed */

)

Variables

This section is empty.

Functions

func AddFilesAndCommit

func AddFilesAndCommit(worktree *git.Worktree, files []string,
	commitMessage, signatureName, signatureEmail string) (plumbing.Hash, error)

func BranchExists

func BranchExists(remoteUrl, branchName string) (bool, error)

func Clone

func Clone(k *specs.ReposcanKit, targetdir string, o *CloneOptions) error

func CloneAndCreateBranch

func CloneAndCreateBranch(k *specs.ReposcanKit,
	targetdir string, o *CloneOptions) error

func CloneKits

func CloneKits(k *specs.ReposcanAnalysis, targetdir string, o *CloneOptions) error

func Push

func Push(repoDir string, opts *PushOptions) error

Types

type CloneOptions

type CloneOptions struct {
	GitCloneOptions *git.CloneOptions
	Verbose         bool
	Summary         bool
	Results         []*specs.ReposcanKit

	// Commit data
	BoostrapCommitComment string
	SignatureName         string
	SignatureEmail        string
}

func (*CloneOptions) GetInitialCiComment

func (co *CloneOptions) GetInitialCiComment() string

func (*CloneOptions) GetSignatureEmail

func (co *CloneOptions) GetSignatureEmail() string

func (*CloneOptions) GetSignatureName

func (co *CloneOptions) GetSignatureName() string

type ManifestFile

type ManifestFile struct {
	Md5   string               `json:"manifest_md5,omitempty" yaml:"manifest_md5,omitempty"`
	Files []specs.RepoScanFile `json:"files,omitempty" yaml:"files,omitempty"`
}

func NewManifestFile

func NewManifestFile(files []specs.RepoScanFile) *ManifestFile

func ParseManifest

func ParseManifest(f string) (*ManifestFile, error)

func (*ManifestFile) AddFiles

func (m *ManifestFile) AddFiles(files []specs.RepoScanFile)

func (*ManifestFile) GetFiles

func (m *ManifestFile) GetFiles(srcUri string) ([]specs.RepoScanFile, error)

func (*ManifestFile) Write

func (m *ManifestFile) Write(f string) error

type MergeBot

type MergeBot struct {
	Config *specs.MarkDevkitConfig
	Logger *log.MarkDevkitLogger

	Resolver       *RepoScanResolver
	TargetResolver *RepoScanResolver

	IsANewBranch bool
	WorkDir      string
	// contains filtered or unexported fields
}

func NewMergeBot

func NewMergeBot(c *specs.MarkDevkitConfig) *MergeBot

func (*MergeBot) BumpAtoms

func (m *MergeBot) BumpAtoms(mkit *specs.MergeKit, opts *MergeBotOpts) error

func (*MergeBot) GenerateKitCacheFile

func (m *MergeBot) GenerateKitCacheFile(sourceDir, kitName, kitBranch, targetFile string,
	eclassDirs []string, concurrency int) error

func (*MergeBot) GenerateReposcanFiles

func (m *MergeBot) GenerateReposcanFiles(mkit *specs.MergeKit, opts *MergeBotOpts) error

func (*MergeBot) GetReposcanDir

func (m *MergeBot) GetReposcanDir() string

func (*MergeBot) GetResolver

func (m *MergeBot) GetResolver() *RepoScanResolver

func (*MergeBot) GetSourcesDir

func (m *MergeBot) GetSourcesDir() string

func (*MergeBot) GetTargetDir

func (m *MergeBot) GetTargetDir() string

func (*MergeBot) MergeAtoms

func (m *MergeBot) MergeAtoms(candidates []*specs.RepoScanAtom,
	mkit *specs.MergeKit, opts *MergeBotOpts) error

func (*MergeBot) MergeEclasses

func (m *MergeBot) MergeEclasses(mkit *specs.MergeKit, opts *MergeBotOpts) error

func (*MergeBot) MergeFixups

func (m *MergeBot) MergeFixups(mkit *specs.MergeKit, opts *MergeBotOpts) error

func (*MergeBot) Run

func (m *MergeBot) Run(specfile string, opts *MergeBotOpts) error

func (*MergeBot) SearchAtoms

func (m *MergeBot) SearchAtoms(mkit *specs.MergeKit, opts *MergeBotOpts) ([]*specs.RepoScanAtom, error)

func (*MergeBot) SetWorkDir

func (m *MergeBot) SetWorkDir(d string)

type MergeBotOpts

type MergeBotOpts struct {
	GenReposcan     bool
	DryRun          bool
	PullSources     bool
	Push            bool
	PullRequest     bool
	Verbose         bool
	CleanWorkingDir bool

	GitDeepFetch int
	Concurrency  int

	SignatureName  string
	SignatureEmail string
}

func NewMergeBotOpts

func NewMergeBotOpts() *MergeBotOpts

type PortageResolverOpts

type PortageResolverOpts struct {
	EnableUseFlags   []string
	DisabledUseFlags []string
	Conditions       []string
}

func NewPortageResolverOpts

func NewPortageResolverOpts() *PortageResolverOpts

func (*PortageResolverOpts) IsAdmitUseFlag

func (o *PortageResolverOpts) IsAdmitUseFlag(u string) bool

type PushOptions

type PushOptions struct {
	Token      string
	RemoteName string
}

func NewPushOptions

func NewPushOptions() *PushOptions

type ReleaseBot

type ReleaseBot struct {
	Config *specs.MarkDevkitConfig
	Logger *log.MarkDevkitLogger

	IsANewBranch bool
	WorkDir      string
	MetaRepoPath string
	// contains filtered or unexported fields
}

func NewReleaseBot

func NewReleaseBot(c *specs.MarkDevkitConfig) *ReleaseBot

func (*ReleaseBot) GetRepoPath

func (r *ReleaseBot) GetRepoPath(kit string) string

func (*ReleaseBot) GetSourcesDir

func (r *ReleaseBot) GetSourcesDir() string

func (*ReleaseBot) GetTargetDir

func (r *ReleaseBot) GetTargetDir() string

func (*ReleaseBot) Run

func (r *ReleaseBot) Run(specfile string, opts *ReleaseOpts) error

func (*ReleaseBot) SetWorkDir

func (r *ReleaseBot) SetWorkDir(d string)

type ReleaseOpts

type ReleaseOpts struct {
	DryRun  bool
	Push    bool
	Verbose bool

	GitDeepFetch int

	SignatureName  string
	SignatureEmail string
}

func NewReleaseOpts

func NewReleaseOpts() *ReleaseOpts

type RepoScanResolver

type RepoScanResolver struct {
	Config *specs.MarkDevkitConfig
	Logger *log.MarkDevkitLogger

	JsonSources        []string
	Sources            []specs.RepoScanSpec
	Constraints        []string
	MapConstraints     map[string]([]gentoo.GentooPackage)
	Map                map[string]([]specs.RepoScanAtom)
	IgnoreMissingDeps  bool
	ContinueWithError  bool
	DepsWithSlot       bool
	AllowEmptyKeywords bool
	DisabledUseFlags   []string
	DisabledKeywords   []string
}

func NewRepoScanResolver

func NewRepoScanResolver(c *specs.MarkDevkitConfig) *RepoScanResolver

func (*RepoScanResolver) AddPackageAtom

func (r *RepoScanResolver) AddPackageAtom(pkg string, atom *specs.RepoScanAtom)

func (*RepoScanResolver) BuildMap

func (r *RepoScanResolver) BuildMap() error

func (*RepoScanResolver) GetAllowEmptyKeywords

func (r *RepoScanResolver) GetAllowEmptyKeywords() bool

func (*RepoScanResolver) GetContinueWithError

func (r *RepoScanResolver) GetContinueWithError() bool

func (*RepoScanResolver) GetDepsWithSlot

func (r *RepoScanResolver) GetDepsWithSlot() bool

func (*RepoScanResolver) GetDisabledKeywords

func (r *RepoScanResolver) GetDisabledKeywords() []string

func (*RepoScanResolver) GetDisabledUseFlags

func (r *RepoScanResolver) GetDisabledUseFlags() []string

func (*RepoScanResolver) GetLastPackage

func (r *RepoScanResolver) GetLastPackage(pkg string, opts *PortageResolverOpts) (*specs.RepoScanAtom, error)

func (*RepoScanResolver) GetMap

func (r *RepoScanResolver) GetMap() map[string]([]specs.RepoScanAtom)

func (*RepoScanResolver) GetPackageVersions

func (r *RepoScanResolver) GetPackageVersions(pkg string) ([]specs.RepoScanAtom, bool)

func (*RepoScanResolver) IsDisableUseFlag

func (r *RepoScanResolver) IsDisableUseFlag(u string) bool

func (*RepoScanResolver) IsIgnoreMissingDeps

func (r *RepoScanResolver) IsIgnoreMissingDeps() bool

func (*RepoScanResolver) IsPresentPackage

func (r *RepoScanResolver) IsPresentPackage(pkg string) bool

func (*RepoScanResolver) KeywordsIsAdmit

func (r *RepoScanResolver) KeywordsIsAdmit(atom *specs.RepoScanAtom, p *gentoo.GentooPackage) (bool, error)

func (*RepoScanResolver) LoadJson

func (r *RepoScanResolver) LoadJson(path string) error

func (*RepoScanResolver) LoadJsonFiles

func (r *RepoScanResolver) LoadJsonFiles(verbose bool) error

func (*RepoScanResolver) LoadRawJson

func (r *RepoScanResolver) LoadRawJson(raw, file string) error

func (*RepoScanResolver) PackageIsAdmit

func (r *RepoScanResolver) PackageIsAdmit(target, atom *gentoo.GentooPackage,
	opts *PortageResolverOpts) (bool, error)

func (*RepoScanResolver) SetAllowEmptyKeywords

func (r *RepoScanResolver) SetAllowEmptyKeywords(v bool)

func (*RepoScanResolver) SetContinueWithError

func (r *RepoScanResolver) SetContinueWithError(v bool)

func (*RepoScanResolver) SetDepsWithSlot

func (r *RepoScanResolver) SetDepsWithSlot(v bool)

func (*RepoScanResolver) SetDisabledKeywords

func (r *RepoScanResolver) SetDisabledKeywords(k []string)

func (*RepoScanResolver) SetDisabledUseFlags

func (r *RepoScanResolver) SetDisabledUseFlags(u []string)

func (*RepoScanResolver) SetIgnoreMissingDeps

func (r *RepoScanResolver) SetIgnoreMissingDeps(v bool)

Jump to

Keyboard shortcuts

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