Documentation
¶
Index ¶
- func BuildRPMS(env *azldev.Env, options *BuildRPMOptions) (results interface{}, err error)
- func Download(env *azldev.Env, options *DownloadOptions) error
- func NewBuildRPMCmd() *cobra.Command
- func NewMCPCmd() *cobra.Command
- func NewMockCmd() *cobra.Command
- func NewShellCmd() *cobra.Command
- func NewWgetCmd() *cobra.Command
- func OnAppInit(app *azldev.App)
- func RunShell(env *azldev.Env, options *ShellOptions, extraArgs []string) error
- type BuildRPMOptions
- type DownloadOptions
- type MockCmdOptions
- type ShellOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildRPMS ¶
func BuildRPMS(env *azldev.Env, options *BuildRPMOptions) (results interface{}, err error)
Builds RPMs from sources, using options.
func Download ¶
func Download(env *azldev.Env, options *DownloadOptions) error
Performs the file download requested by options.
func NewBuildRPMCmd ¶
Constructs a cobra.Command for the "mock build-rpms" subcommand.
func NewMockCmd ¶
Constructs a cobra.Command for the "mock" subcommand hierarchy.
func NewShellCmd ¶
Constructs a cobra.Command for the 'mock shell' command.
func NewWgetCmd ¶
Constructs a cobra.Command for the 'wget' command.
func OnAppInit ¶
Called once when the app is initialized; registers any commands or callbacks with the app.
func RunShell ¶
func RunShell(env *azldev.Env, options *ShellOptions, extraArgs []string) error
Executes an interactive shell within a mock root. Uses the provided ShellOptions to configure the shell.
Types ¶
type BuildRPMOptions ¶
type BuildRPMOptions struct {
// Common mock options.
MockCmdOptions
// Path to the SRPM to build.
SRPMPath string
// Path to the output directory for final RPM files.
OutputDirPath string
// Whether to skip the %check section of the RPM spec.
NoCheck bool
}
Options controlling how to build an RPM from a source RPM.
type DownloadOptions ¶
type DownloadOptions struct {
// contains filtered or unexported fields
}
Options controlling how a file is downloaded from an internet source.
type MockCmdOptions ¶
type MockCmdOptions struct {
// Path to the .cfg file to use with mock.
MockConfigPath string
}
Options controlling how to run mock commands.
type ShellOptions ¶
type ShellOptions struct {
// Common mock options.
MockCmdOptions
// Whether or not to enable external network access from within the mock root the shell is executed in.
EnableNetwork bool
// Packages to add to the mock root before starting the shell.
PackagesToAdd []string
}
Options controlling how to run a shell command in a mock environment.