Documentation
¶
Index ¶
- func LocateSingleAMI(id string, ec2Conn *ec2.EC2) (*ec2.Image, error)
- type AmiCopy
- type AmiCopyImpl
- func (ac *AmiCopyImpl) Copy(ui *packer.Ui) (err error)
- func (ac *AmiCopyImpl) Input() *ec2.CopyImageInput
- func (ac *AmiCopyImpl) Output() *ec2.CopyImageOutput
- func (ac *AmiCopyImpl) SetInput(input *ec2.CopyImageInput)
- func (ac *AmiCopyImpl) SetTargetAccountID(id string)
- func (ac *AmiCopyImpl) Tag(ui *packer.Ui) (err error)
- func (ac *AmiCopyImpl) TargetAccountID() string
- type AmiManifest
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AmiCopy ¶
type AmiCopy interface {
Copy(ui *packer.Ui) error
Input() *ec2.CopyImageInput
Output() *ec2.CopyImageOutput
Tag(ui *packer.Ui) error
TargetAccountID() string
}
AmiCopy defines the interface to copy images
type AmiCopyImpl ¶
type AmiCopyImpl struct {
EC2 *ec2.EC2
SourceImage *ec2.Image
EnsureAvailable bool
KeepArtifact bool
TagsOnly bool
Tags map[string]string
// contains filtered or unexported fields
}
AmiCopyImpl holds data and methods related to copying an image.
func (*AmiCopyImpl) Copy ¶
func (ac *AmiCopyImpl) Copy(ui *packer.Ui) (err error)
Copy will perform an EC2 copy based on the `Input` field. It will also call Tag to copy the source tags, if any.
func (*AmiCopyImpl) Input ¶
func (ac *AmiCopyImpl) Input() *ec2.CopyImageInput
func (*AmiCopyImpl) Output ¶
func (ac *AmiCopyImpl) Output() *ec2.CopyImageOutput
func (*AmiCopyImpl) SetInput ¶
func (ac *AmiCopyImpl) SetInput(input *ec2.CopyImageInput)
func (*AmiCopyImpl) SetTargetAccountID ¶
func (ac *AmiCopyImpl) SetTargetAccountID(id string)
func (*AmiCopyImpl) Tag ¶
func (ac *AmiCopyImpl) Tag(ui *packer.Ui) (err error)
Tag will copy tags from the source image to the target (if any).
func (*AmiCopyImpl) TargetAccountID ¶
func (ac *AmiCopyImpl) TargetAccountID() string
type AmiManifest ¶
type AmiManifest struct {
AccountID string `json:"account_id"`
Region string `json:"region"`
ImageID string `json:"image_id"`
}
AmiManifest holds the data about the resulting copied image
Click to show internal directories.
Click to hide internal directories.