workdir

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: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MkComponentBuildEnvironment

func MkComponentBuildEnvironment(
	env *azldev.Env,
	factory *Factory,
	component *projectconfig.ComponentConfig,
	label string,
	configOpts map[string]string,
) (buildEnv buildenv.RPMAwareBuildEnv, err error)

MkComponentBuildEnvironment creates a new working build environment for the specified component.

Types

type Factory

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

func NewFactory

func NewFactory(fs opctx.FS, baseDir string, timestampTime time.Time) (*Factory, error)

func (*Factory) Create

func (f *Factory) Create(
	componentName string, label string,
) (dirPath string, err error)

Creates a temporary work directory appropriate for the indicated component. The provided label is used to create a unique directory name under the component's work directory. If a work directory with that label has already been used, then a unique one will be generated with a random suffix.

Jump to

Keyboard shortcuts

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