image

package
v0.1.26 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2021 License: MPL-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	RegionKey = "cloudmeta2/aws/region.json"
	ImageKey  = "cloudmeta2/aws/image.json"
)

Variables

View Source
var FactoryCmd = &cobra.Command{
	Use:   "image",
	Short: "Generate image data",
	Long:  `Generate image data`,
	RunE: func(cmd *cobra.Command, args []string) error {
		return imageFactory()
	},
}

Functions

This section is empty.

Types

type ImageMap

type ImageMap struct {
	// contains filtered or unexported fields
}

type ImageSpotmaxMap added in v0.1.12

type ImageSpotmaxMap struct {
	// contains filtered or unexported fields
}

type ImageUtil

type ImageUtil struct {
	Conn *connections.Connections
}

func (*ImageUtil) FetchImage

func (iu *ImageUtil) FetchImage(accountId []*string, ownerId []*string, name string) *ec2.Image

func (*ImageUtil) FetchImageList added in v0.1.12

func (iu *ImageUtil) FetchImageList(accountId []*string, owner []*string, name string, num int) *[]*SpotmaxImage

type SpotmaxImage added in v0.1.12

type SpotmaxImage struct {
	Name                string                       `json:"name"`
	ImageId             string                       `json:"imageId"`
	Architecture        string                       `json:"architecture"`
	BlockDeviceMappings []*SpotmaxImageDeviceMapping `json:"blockDeviceMappings"`
	CreationDate        string                       `json:"creationDate"`
}

type SpotmaxImageDeviceMapping added in v0.1.12

type SpotmaxImageDeviceMapping struct {
	DeviceName string           `json:"deviceName"`
	Ebs        *SpotmaxImageEbs `json:"ebs"`
}

type SpotmaxImageEbs added in v0.1.12

type SpotmaxImageEbs struct {
	SnapshotId string `json:"snapshotId"`
	VolumeSize int64  `json:"volumeSize"`
	VolumeType string `json:"volumeType"`
}

Jump to

Keyboard shortcuts

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