imagesget

package
v0.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 18, 2019 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GetImagesInput

type GetImagesInput struct {
	ImageIds []string
	Cloud    cmn.Cloud
}

GetImagesInput fetches the information about the images selected and is achieved by implementing the methoda for the same.

func New

func New() *GetImagesInput

New returns the new instance of GetImagesInput with empty values.

func (*GetImagesInput) GetAllImage

func (img *GetImagesInput) GetAllImage() (GetImagesResponse, error)

GetAllImage will fetch the details of all the images in the specified acoount ot region.

func (*GetImagesInput) GetImage

func (img *GetImagesInput) GetImage() (GetImagesResponse, error)

GetImage will collect all the required information of the images specified to it and send back the response.

type GetImagesResponse

type GetImagesResponse struct {
	// Contains filtered/unfiltered response of AWS.
	AwsResponse []image.ImageResponse `json:"AwsResponse,omitempty"`

	// Contains filtered/unfiltered response of Azure.
	AzureResponse string `json:"AzureResponse,omitempty"`

	// Default response if no inputs or matching the values required.
	DefaultResponse string `json:"DefaultResponse,omitempty"`
}

GetImagesResponse contains the details of the images collected by GetImage. This also can contain the response from various cloud, but will deliver what was passed to it.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL