componentbuilder

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2026 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Builder

type Builder struct {
	// contains filtered or unexported fields
}

func New

func New(
	dryRunnable opctx.DryRunnable,
	fs opctx.FS,
	eventListener opctx.EventListener,
	sourcePreparer sources.SourcePreparer,
	buildEnv buildenv.RPMAwareBuildEnv,
	workDirFactory *workdir.Factory,
) *Builder

func (*Builder) BuildBinaryPackage

func (b *Builder) BuildBinaryPackage(
	ctx context.Context,
	component components.Component, sourcePackagePath string, localRepoPaths []string,
	outputDir string, noCheck bool,
) (packagePaths []string, err error)

func (*Builder) BuildSourcePackage

func (b *Builder) BuildSourcePackage(
	ctx context.Context, component components.Component, localRepoPaths []string, outputDir string,
) (packagePath string, err error)

type ComponentBuilder

type ComponentBuilder interface {
	// BuildBinaryPackage builds a binary package for the given component from the provided source package
	// and returns the paths to the built binary packages.
	BuildBinaryPackage(
		ctx context.Context,
		component components.Component, sourcePackagePath string, localRepoPaths []string,
		outputDir string, noCheck bool,
	) (packagePaths []string, err error)

	// BuildSourcePackage builds a source package for the given component and returns the path to the
	// built source package.
	BuildSourcePackage(ctx context.Context, component components.Component, localRepoPaths []string, outputDir string,
	) (packagePath string, err error)
}

ComponentBuilder defines the interface for building components.

Directories

Path Synopsis
Package componentbuilder is a generated GoMock package.
Package componentbuilder is a generated GoMock package.

Jump to

Keyboard shortcuts

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