Documentation
¶
Index ¶
- Constants
- func ShellCommand(command string) *exec.Cmd
- type Artifact
- type Builder
- type CommandWrapper
- type Config
- type LxcAttachCommunicator
- func (c *LxcAttachCommunicator) CheckInit() (string, error)
- func (c *LxcAttachCommunicator) Download(src string, w io.Writer) error
- func (c *LxcAttachCommunicator) DownloadDir(src string, dst string, exclude []string) error
- func (c *LxcAttachCommunicator) Execute(commandString string) (*exec.Cmd, error)
- func (c *LxcAttachCommunicator) Start(cmd *packer.RemoteCmd) error
- func (c *LxcAttachCommunicator) Upload(dst string, r io.Reader, fi *os.FileInfo) error
- func (c *LxcAttachCommunicator) UploadDir(dst string, src string, exclude []string) error
- type StepProvision
- type StepWaitInit
Constants ¶
View Source
const BuilderId = "ustream.lxc"
The unique ID for this builder
Variables ¶
This section is empty.
Functions ¶
func ShellCommand ¶
ShellCommand takes a command string and returns an *exec.Cmd to execute it within the context of a shell (/bin/sh).
Types ¶
type CommandWrapper ¶
CommandWrapper is a type that given a command, will possibly modify that command in-flight. This might return an error.
type Config ¶
type Config struct {
common.PackerConfig `mapstructure:",squash"`
ConfigFile string `mapstructure:"config_file"`
OutputDir string `mapstructure:"output_directory"`
ContainerName string `mapstructure:"container_name"`
CommandWrapper string `mapstructure:"command_wrapper"`
RawInitTimeout string `mapstructure:"init_timeout"`
CreateOptions []string `mapstructure:"create_options"`
StartOptions []string `mapstructure:"start_options"`
AttachOptions []string `mapstructure:"attach_options"`
Name string `mapstructure:"template_name"`
Parameters []string `mapstructure:"template_parameters"`
EnvVars []string `mapstructure:"template_environment_vars"`
TargetRunlevel int `mapstructure:"target_runlevel"`
InitTimeout time.Duration
// contains filtered or unexported fields
}
type LxcAttachCommunicator ¶
type LxcAttachCommunicator struct {
RootFs string
ContainerName string
AttachOptions []string
CmdWrapper CommandWrapper
}
func (*LxcAttachCommunicator) CheckInit ¶
func (c *LxcAttachCommunicator) CheckInit() (string, error)
func (*LxcAttachCommunicator) Download ¶
func (c *LxcAttachCommunicator) Download(src string, w io.Writer) error
func (*LxcAttachCommunicator) DownloadDir ¶
func (c *LxcAttachCommunicator) DownloadDir(src string, dst string, exclude []string) error
func (*LxcAttachCommunicator) Execute ¶
func (c *LxcAttachCommunicator) Execute(commandString string) (*exec.Cmd, error)
func (*LxcAttachCommunicator) Start ¶
func (c *LxcAttachCommunicator) Start(cmd *packer.RemoteCmd) error
type StepProvision ¶
type StepProvision struct{}
StepProvision provisions the instance within a chroot.
func (*StepProvision) Cleanup ¶
func (s *StepProvision) Cleanup(state multistep.StateBag)
func (*StepProvision) Run ¶
func (s *StepProvision) Run(_ context.Context, state multistep.StateBag) multistep.StepAction
type StepWaitInit ¶
func (*StepWaitInit) Cleanup ¶
func (s *StepWaitInit) Cleanup(multistep.StateBag)
func (*StepWaitInit) Run ¶
func (s *StepWaitInit) Run(_ context.Context, state multistep.StateBag) multistep.StepAction
Click to show internal directories.
Click to hide internal directories.