Documentation
¶
Index ¶
- Constants
- func NewShellCommand(command string) *exec.Cmd
- type Artifact
- type Builder
- type Cleaner
- type CommandWrapper
- type Communicator
- func (c *Communicator) Download(src string, w io.Writer) error
- func (c *Communicator) DownloadDir(src string, dst string, exclude []string) error
- func (c *Communicator) Start(rc *packer.RemoteCmd) error
- func (c *Communicator) Upload(dst string, r io.Reader, fi *os.FileInfo) error
- func (c *Communicator) UploadDir(dst string, src string, exclude []string) error
- type Config
- type StepChrootProvision
- type StepCompressImage
- type StepCopyFiles
- type StepEarlyCleanup
- type StepMountExtra
- type StepPrepareImage
- type StepPrepareOutputDir
Constants ¶
View Source
const BuilderId = "insanemal.rhel-chroot"
Variables ¶
This section is empty.
Functions ¶
func NewShellCommand ¶
Types ¶
type Builder ¶
type Builder struct {
// contains filtered or unexported fields
}
Builder represents a builder plugin for Packer.
type CommandWrapper ¶
func NewCommandWrapper ¶
func NewCommandWrapper(config Config) CommandWrapper
type Communicator ¶
type Communicator struct { Chroot string CmdWrapper CommandWrapper }
Communicator is a special communicator that works by executing commands locally but within a chroot.
func (*Communicator) DownloadDir ¶
func (c *Communicator) DownloadDir(src string, dst string, exclude []string) error
type Config ¶
type Config struct { common.PackerConfig `mapstructure:",squash"` OutputDir string `mapstructure:"output_directory"` WorkDir string `mapstructure:"tmp_directory"` ImageName string `mapstructure:"image_name"` MountPath string `mapstructure:"mount_path"` ExportFolder string `mapstructure:"export_folder"` MountOptions []string `mapstructure:"mount_options"` BaseRPMS []string `mapstructure:"base_rpms"` ChrootMounts [][]string `mapstructure:"chroot_mounts"` CopyFiles []string `mapstructure:"copy_files"` ExportFiles [][]string `mapstructure:"export_files"` CommandWrapper string `mapstructure:"command_wrapper"` InitChroot bool `mapstructure:"init_chroot"` MakeSquash bool `mapstructure:"make_squash"` ExportBuild bool `mapstructure:"export_build"` NewImage bool `mapstructure:"new_image"` DontRsync bool `mapstructure:"dont_rsync"` BaseIamge string `mapstructure:"base_image"` // contains filtered or unexported fields }
Config represents a configuration of builder.
type StepChrootProvision ¶
type StepChrootProvision struct{}
func (*StepChrootProvision) Cleanup ¶
func (s *StepChrootProvision) Cleanup(state multistep.StateBag)
func (*StepChrootProvision) Run ¶
func (s *StepChrootProvision) Run(_ context.Context, state multistep.StateBag) multistep.StepAction
type StepCompressImage ¶
type StepCompressImage struct{}
func (*StepCompressImage) Cleanup ¶
func (s *StepCompressImage) Cleanup(state multistep.StateBag)
func (*StepCompressImage) Run ¶
func (s *StepCompressImage) Run(_ context.Context, state multistep.StateBag) multistep.StepAction
type StepCopyFiles ¶
type StepCopyFiles struct {
// contains filtered or unexported fields
}
func (*StepCopyFiles) Cleanup ¶
func (s *StepCopyFiles) Cleanup(state multistep.StateBag)
func (*StepCopyFiles) CleanupFunc ¶
func (s *StepCopyFiles) CleanupFunc(state multistep.StateBag) error
func (*StepCopyFiles) Run ¶
func (s *StepCopyFiles) Run(_ context.Context, state multistep.StateBag) multistep.StepAction
type StepEarlyCleanup ¶
type StepEarlyCleanup struct{}
func (*StepEarlyCleanup) Cleanup ¶
func (s *StepEarlyCleanup) Cleanup(state multistep.StateBag)
func (*StepEarlyCleanup) Run ¶
func (s *StepEarlyCleanup) Run(_ context.Context, state multistep.StateBag) multistep.StepAction
type StepMountExtra ¶
type StepMountExtra struct {
// contains filtered or unexported fields
}
func (*StepMountExtra) Cleanup ¶
func (s *StepMountExtra) Cleanup(state multistep.StateBag)
func (*StepMountExtra) CleanupFunc ¶
func (s *StepMountExtra) CleanupFunc(state multistep.StateBag) error
func (*StepMountExtra) Run ¶
func (s *StepMountExtra) Run(_ context.Context, state multistep.StateBag) multistep.StepAction
type StepPrepareImage ¶
type StepPrepareImage struct {
// contains filtered or unexported fields
}
func (*StepPrepareImage) Cleanup ¶
func (s *StepPrepareImage) Cleanup(state multistep.StateBag)
func (*StepPrepareImage) Run ¶
func (s *StepPrepareImage) Run(_ context.Context, state multistep.StateBag) multistep.StepAction
type StepPrepareOutputDir ¶
type StepPrepareOutputDir struct {
// contains filtered or unexported fields
}
func (*StepPrepareOutputDir) Cleanup ¶
func (s *StepPrepareOutputDir) Cleanup(state multistep.StateBag)
func (*StepPrepareOutputDir) Run ¶
func (s *StepPrepareOutputDir) Run(_ context.Context, state multistep.StateBag) multistep.StepAction
Click to show internal directories.
Click to hide internal directories.