imagedelete

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 DeleteImageInput

type DeleteImageInput struct {
	ImageIds []string `json:"imageids"`
	Cloud    cmn.Cloud
}

DeleteImageInput takes the required parameters for deleting images. These parameters vary based on cloud choosed.

func (*DeleteImageInput) DeleteImage

func (img *DeleteImageInput) DeleteImage() (DeleteImageResponse, error)

DeleteImage deletes the images based on the inputu passed via DeleteImageInput struct.

type DeleteImageResponse

type DeleteImageResponse 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:"Response,omitempty"`
}

DeleteImageResponse contains the details of the images deleted by DeleteImage. 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