Documentation
¶
Index ¶
- type AwsCommand
- type AwsConfig
- type AwsImages
- func (a *AwsImages) CopyImages(opts *CopyOptions) error
- func (a *AwsImages) CreateTags(tags string, dryRun bool, images ...string) error
- func (a *AwsImages) DeleteImages(opts *DeleteOptions) error
- func (a *AwsImages) DeleteTags(tags string, dryRun bool, images ...string) error
- func (a *AwsImages) Images(input *ec2.DescribeImagesInput) (Images, error)
- type CopyOptions
- type DeleteOptions
- type Images
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AwsCommand ¶
type AwsCommand struct {
*AwsImages
}
AwsCommand implements the images various interfaces, such as Fetcher, Deleter, Modifier, etc..
func NewCommand ¶
func NewCommand(args []string) (*AwsCommand, []string, error)
NewCommand returns a new instance of AwsCommand
func (*AwsCommand) Copy ¶
func (a *AwsCommand) Copy(args []string) error
func (*AwsCommand) Delete ¶
func (a *AwsCommand) Delete(args []string) error
func (*AwsCommand) Help ¶
func (a *AwsCommand) Help(command string) string
Help prints the help message for the given command
func (*AwsCommand) List ¶
func (a *AwsCommand) List(args []string) error
List implements the command.Lister interface
func (*AwsCommand) Modify ¶
func (a *AwsCommand) Modify(args []string) error
Modify manages the tags of the given images. It can create, override or delete tags associated with the given AMI ids.
type AwsImages ¶
type AwsImages struct {
// contains filtered or unexported fields
}
AwsImages is responsible of managing AWS images (AMI's)
func (*AwsImages) CopyImages ¶
func (a *AwsImages) CopyImages(opts *CopyOptions) error
Copy transfers the images to other regions
func (*AwsImages) CreateTags ¶
CreateTags adds or overwrites all tags for the specified images. Tags is in the form of "key1=val1,key2=val2,key3,key4=". One or more tags. The value parameter is required, but if you don't want the tag to have a value, specify the parameter with no value (i.e: "key3" or "key4=" both works)
func (*AwsImages) DeleteImages ¶
func (a *AwsImages) DeleteImages(opts *DeleteOptions) error
Delete deletes the given images.
func (*AwsImages) DeleteTags ¶
DeleteTags deletes the given tags for the given images. Tags is in the form of "key1=val1,key2=val2,key3,key4=" One or more tags to delete. If you omit the value parameter(i.e "key3"), we delete the tag regardless of its value. If you specify this parameter with an empty string (i.e: "key4=" as the value, we delete the key only if its value is an empty string.
type CopyOptions ¶
type CopyOptions struct { // Image to be copied to other regions ImageID string // SourceRegions defines a list of regions which the image // is being copied. i.e: ["us-east-1", "eu-west-1"] SourceRegions []string // Descroption for the newly created AMI (optional) Desc string // DryRun doesn't run the command, but shows the action DryRun bool // contains filtered or unexported fields }