Versions in this module Expand all Collapse all v1 v1.3.2 Oct 29, 2018 Changes in this version + const BuilderId + const BuilderIdImport + type AwsAccessConfig struct + AccessKey string + Profile string + SecretKey string + Token string + func (c *AwsAccessConfig) EcrGetLogin(ecrUrl string) (string, string, error) + type Builder struct + func (b *Builder) Cancel() + func (b *Builder) Prepare(raws ...interface{}) ([]string, error) + func (b *Builder) Run(ui packer.Ui, hook packer.Hook, cache packer.Cache) (packer.Artifact, error) + type Communicator struct + Config *Config + ContainerDir string + ContainerID string + ContainerUser string + HostDir string + Version *version.Version + func (c *Communicator) Download(src string, dst io.Writer) error + func (c *Communicator) DownloadDir(src string, dst string, exclude []string) error + func (c *Communicator) Start(remote *packer.RemoteCmd) error + func (c *Communicator) Upload(dst string, src io.Reader, fi *os.FileInfo) error + func (c *Communicator) UploadDir(dst string, src string, exclude []string) error + type Config struct + Author string + Changes []string + Comm communicator.Config + Commit bool + ContainerDir string + Discard bool + EcrLogin bool + ExecUser string + ExportPath string + FixUploadOwner bool + Image string + Login bool + LoginPassword string + LoginServer string + LoginUsername string + Message string + Privileged bool + Pty bool + Pull bool + RunCommand []string + Volumes map[string]string + func NewConfig(raws ...interface{}) (*Config, []string, error) + type ContainerConfig struct + Image string + Privileged bool + RunCommand []string + Volumes map[string]string + type DockerDriver struct + Ctx *interpolate.Context + Ui packer.Ui + func (d *DockerDriver) Commit(id string, author string, changes []string, message string) (string, error) + func (d *DockerDriver) DeleteImage(id string) error + func (d *DockerDriver) Export(id string, dst io.Writer) error + func (d *DockerDriver) IPAddress(id string) (string, error) + func (d *DockerDriver) Import(path string, repo string) (string, error) + func (d *DockerDriver) Login(repo, user, pass string) error + func (d *DockerDriver) Logout(repo string) error + func (d *DockerDriver) Pull(image string) error + func (d *DockerDriver) Push(name string) error + func (d *DockerDriver) SaveImage(id string, dst io.Writer) error + func (d *DockerDriver) StartContainer(config *ContainerConfig) (string, error) + func (d *DockerDriver) StopContainer(id string) error + func (d *DockerDriver) TagImage(id string, repo string, force bool) error + func (d *DockerDriver) Verify() error + func (d *DockerDriver) Version() (*version.Version, error) + type Driver interface + Commit func(id string, author string, changes []string, message string) (string, error) + DeleteImage func(id string) error + Export func(id string, dst io.Writer) error + IPAddress func(id string) (string, error) + Import func(path, repo string) (string, error) + Login func(repo, username, password string) error + Logout func(repo string) error + Pull func(image string) error + Push func(name string) error + SaveImage func(id string, dst io.Writer) error + StartContainer func(*ContainerConfig) (string, error) + StopContainer func(id string) error + TagImage func(id string, repo string, force bool) error + Verify func() error + Version func() (*version.Version, error) + type ExportArtifact struct + func (*ExportArtifact) BuilderId() string + func (*ExportArtifact) Id() string + func (a *ExportArtifact) Destroy() error + func (a *ExportArtifact) Files() []string + func (a *ExportArtifact) State(name string) interface{} + func (a *ExportArtifact) String() string + type ImportArtifact struct + BuilderIdValue string + Driver Driver + IdValue string + func (*ImportArtifact) Files() []string + func (*ImportArtifact) State(name string) interface{} + func (a *ImportArtifact) BuilderId() string + func (a *ImportArtifact) Destroy() error + func (a *ImportArtifact) Id() string + func (a *ImportArtifact) String() string + type MockDriver struct + CommitCalled bool + CommitContainerId string + CommitErr error + CommitImageId string + DeleteImageCalled bool + DeleteImageErr error + DeleteImageId string + ExportCalled bool + ExportError error + ExportID string + ExportReader io.Reader + IPAddressCalled bool + IPAddressErr error + IPAddressID string + IPAddressResult string + ImportCalled bool + ImportErr error + ImportId string + ImportPath string + ImportRepo string + LoginCalled bool + LoginErr error + LoginPassword string + LoginRepo string + LoginUsername string + LogoutCalled bool + LogoutErr error + LogoutRepo string + PullCalled bool + PullError error + PullImage string + PushCalled bool + PushErr error + PushName string + SaveImageCalled bool + SaveImageError error + SaveImageId string + SaveImageReader io.Reader + StartCalled bool + StartConfig *ContainerConfig + StartError error + StartID string + StopCalled bool + StopError error + StopID string + TagImageCalled bool + TagImageErr error + TagImageForce bool + TagImageImageId string + TagImageRepo string + VerifyCalled bool + VerifyError error + VersionCalled bool + VersionVersion string + func (d *MockDriver) Commit(id string, author string, changes []string, message string) (string, error) + func (d *MockDriver) DeleteImage(id string) error + func (d *MockDriver) Export(id string, dst io.Writer) error + func (d *MockDriver) IPAddress(id string) (string, error) + func (d *MockDriver) Import(path, repo string) (string, error) + func (d *MockDriver) Login(r, u, p string) error + func (d *MockDriver) Logout(r string) error + func (d *MockDriver) Pull(image string) error + func (d *MockDriver) Push(name string) error + func (d *MockDriver) SaveImage(id string, dst io.Writer) error + func (d *MockDriver) StartContainer(config *ContainerConfig) (string, error) + func (d *MockDriver) StopContainer(id string) error + func (d *MockDriver) TagImage(id string, repo string, force bool) error + func (d *MockDriver) Verify() error + func (d *MockDriver) Version() (*version.Version, error) + type StepCommit struct + func (s *StepCommit) Cleanup(state multistep.StateBag) + func (s *StepCommit) Run(_ context.Context, state multistep.StateBag) multistep.StepAction + type StepConnectDocker struct + func (s *StepConnectDocker) Cleanup(state multistep.StateBag) + func (s *StepConnectDocker) Run(_ context.Context, state multistep.StateBag) multistep.StepAction + type StepExport struct + func (s *StepExport) Cleanup(state multistep.StateBag) + func (s *StepExport) Run(_ context.Context, state multistep.StateBag) multistep.StepAction + type StepPull struct + func (s *StepPull) Cleanup(state multistep.StateBag) + func (s *StepPull) Run(_ context.Context, state multistep.StateBag) multistep.StepAction + type StepRun struct + func (s *StepRun) Cleanup(state multistep.StateBag) + func (s *StepRun) Run(_ context.Context, state multistep.StateBag) multistep.StepAction + type StepTempDir struct + func (s *StepTempDir) Cleanup(state multistep.StateBag) + func (s *StepTempDir) Run(_ context.Context, state multistep.StateBag) multistep.StepAction