imagecreate

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 CreateImageInput

type CreateImageInput struct {
	InstanceIds []string `json:"instanceids"`
	Cloud       cmn.Cloud
}

CreateImageInput takes the required parameters for creating image. These parameters vary based on cloud choosed.

func New

func New() *CreateImageInput

New returns the new instance of CreateImageInput with empty values.

func (*CreateImageInput) CreateImage

func (img *CreateImageInput) CreateImage() (CreateImageResponse, error)

CreateImage will capture image of the server specified, this gives back the response who called.

type CreateImageResponse

type CreateImageResponse 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"`
}

CreateImageResponse contains the details of the images captured by CreateImage. 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