Documentation ¶
Index ¶
- type DeleteImageInput
- type GetImageInput
- func (i *GetImageInput) GetAllImage(con aws.EstablishConnectionInput) ([]ImageResponse, error)
- func (i *GetImageInput) GetImage(con aws.EstablishConnectionInput) ([]ImageResponse, error)
- func (i *GetImageInput) IsImageAvailable(con aws.EstablishConnectionInput) (bool, error)
- func (i *GetImageInput) SearchImage(con aws.EstablishConnectionInput) (ImageResponse, error)
- type ImageCreateInput
- type ImageResponse
- type SnapshotDetails
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DeleteImageInput ¶
type DeleteImageInput struct {
ImageIds []string
}
DeleteImageInput holds the required value terminate image and implements DeleteImage for the same.
func (*DeleteImageInput) DeleteImage ¶
func (img *DeleteImageInput) DeleteImage(con aws.EstablishConnectionInput) (ImageResponse, error)
DeleteImage actually terminates the specified captured images. Make sure right image-id is passed through DeleteImageInput, because once image is deleted there is no way of bringing it back.
type GetImageInput ¶
type GetImageInput struct { Kind string `json:"Kind"` ImageIds []string `json:"ImageIds"` GetRaw bool `json:"GetRaw"` }
GetImageInput can hold all the required details for fecthing the details of image
func (*GetImageInput) GetAllImage ¶
func (i *GetImageInput) GetAllImage(con aws.EstablishConnectionInput) ([]ImageResponse, error)
GetAllImage will get the details of all images present under this account in the entered region.
func (*GetImageInput) GetImage ¶
func (i *GetImageInput) GetImage(con aws.EstablishConnectionInput) ([]ImageResponse, error)
GetImage will fetch the details of the images, who's Id is passed to it.
func (*GetImageInput) IsImageAvailable ¶
func (i *GetImageInput) IsImageAvailable(con aws.EstablishConnectionInput) (bool, error)
IsImageAvailable will check if the entered image exists in account for that particular region or not.
func (*GetImageInput) SearchImage ¶
func (i *GetImageInput) SearchImage(con aws.EstablishConnectionInput) (ImageResponse, error)
SearchImage is tailored to find the Id's of the images, of whom's name is matched with the keyword entered.
type ImageCreateInput ¶
ImageCreateInput implements CreateImage for creation of image
func (*ImageCreateInput) CreateImage ¶
func (img *ImageCreateInput) CreateImage(con aws.EstablishConnectionInput) (ImageResponse, error)
CreateImage will capture the image of the server/vm based on the input received from ImageCreateInput.
type ImageResponse ¶
type ImageResponse struct { Name string `json:"Name,omitempty"` ImageId string `json:"ImageId,omitempty"` ImageIds []string `json:"ImageIds,omitempty"` State string `json:"State,omitempty"` IsPublic bool `json:"IsPublic,omitempty"` CreationDate string `json:"CreationDate,omitempty"` Description string `json:"Description,omitempty"` DefaultResponse string `json:"DefaultResponse,omitempty"` DeleteResponse string `json:"ImageResponse,omitempty"` SnapShot SnapshotDetails `json:"SnapShot,omitempty"` CreateImageRaw *ec2.CreateImageOutput `json:"CreateImageRaw,omitempty"` GetImagesRaw *ec2.DescribeImagesOutput `json:"GetImagesRaw,omitempty"` GetImageRaw *ec2.Image `json:"GetImageRaw,omitempty"` }
ImageResponse contains filtered/unfiltered response received from aws.
type SnapshotDetails ¶
type SnapshotDetails struct { SnapshotId string `json:"SnapshotId,omitempty"` VolumeType string `json:"VolumeType,omitempty"` VolumeSize int64 `json:"VolumeSize,omitempty"` }
SnapshotDetails holds the details of snapshot captured such as type disk, size of it and etc.