Documentation
¶
Index ¶
- type Builder
- func (b *Builder) BuildBinaryPackage(ctx context.Context, component components.Component, sourcePackagePath string, ...) (packagePaths []string, err error)
- func (b *Builder) BuildSourcePackage(ctx context.Context, component components.Component, localRepoPaths []string, ...) (packagePath string, err error)
- type ComponentBuilder
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 ¶
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. |
Click to show internal directories.
Click to hide internal directories.