Versions in this module Expand all Collapse all v0 v0.1.0 Mar 18, 2026 Changes in this version + type BindMount struct + PathInBuildEnv string + PathInHost string + type BuildEnv interface + CreateCmd func(ctx context.Context, args []string, options RunOptions) (cmd opctx.Cmd, err error) + Destroy func(ctx opctx.Ctx) error + GetInfo func() BuildEnvInfo + type BuildEnvInfo struct + CreationTime time.Time + Description string + Dir string + Name string + Type EnvType + UserCreated bool + func (i *BuildEnvInfo) Serialize() (data []byte, err error) + type CreateOptions struct + ConfigOpts map[string]string + Description string + Dir string + Name string + UserCreated bool + type EnvType string + const EnvTypeMock + func (f *EnvType) Set(value string) error + func (f *EnvType) String() string + func (f *EnvType) Type() string + type Factory interface + CreateEnv func(options CreateOptions) (buildEnv BuildEnv, err error) + type MockRoot struct + func OpenMockRoot(ctx opctx.Ctx, info BuildEnvInfo) (mockRoot *MockRoot, err error) + func (r *MockRoot) BuildRPM(ctx context.Context, srpmPath, outputDirPath string, options RPMBuildOptions) error + func (r *MockRoot) BuildSRPM(ctx context.Context, specPath, sourceDirPath, outputDirPath string, ...) error + func (r *MockRoot) CreateCmd(ctx context.Context, args []string, options RunOptions) (cmd opctx.Cmd, err error) + func (r *MockRoot) Destroy(ctx opctx.Ctx) (err error) + func (r *MockRoot) GetInfo() BuildEnvInfo + func (r *MockRoot) GetRunner() *mock.Runner + func (r *MockRoot) TryGetFailureDetails(fs opctx.FS, outputDirPath string) (details *RPMBuildLogDetails) + type MockRootFactory struct + func NewMockRootFactory(ctx opctx.Ctx, mockConfigPath string) (*MockRootFactory, error) + func (f *MockRootFactory) CreateEnv(options CreateOptions) (BuildEnv, error) + func (f *MockRootFactory) CreateMockRoot(options CreateOptions) (*MockRoot, error) + func (f *MockRootFactory) CreateRPMAwareEnv(options CreateOptions) (RPMAwareBuildEnv, error) + type RPMAwareBuildEnv interface + BuildRPM func(ctx context.Context, srpmPath, outputDirPath string, options RPMBuildOptions) error + BuildSRPM func(ctx context.Context, specPath, sourceDirPath, outputDirPath string, ...) error + TryGetFailureDetails func(fs opctx.FS, outputDirPath string) (details *RPMBuildLogDetails) + type RPMAwareFactory interface + CreateRPMAwareEnv func(options CreateOptions) (buildEnv RPMAwareBuildEnv, err error) + type RPMBuildLogDetails = mock.BuildLogDetails + type RPMBuildOptions = mock.RPMBuildOptions + type RunOptions struct + BindMounts []BindMount + EnableNetworking bool + Interactive bool + type SRPMBuildOptions = mock.SRPMBuildOptions