ims

package
v0.0.0-...-b47c6c8 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	IMSDefaultEndpoint = "https://10.175.38.51"
	IMSVersion         = "v2"
	IMSName            = "cloudimages"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	common.Client
	// contains filtered or unexported fields
}

func NewClient

func NewClient(accessKeyId, accessKeySecret string) *Client

func (*Client) Do

func (client *Client) Do(region, method, uri string, args interface{}) (respbytes []byte, err error)

func (*Client) ListImages

func (client *Client) ListImages(region string) (imgList *ImageResponse, err error)

type ImageList

type ImageList struct {
	File              string   `json:"file"`
	Owner             string   `json:"owner"`
	Id                string   `json:"id"`
	Size              int64    `json:"size"`
	Self              string   `json:"self"`
	Schema            string   `json:"schema"`
	Status            string   `sjon:"status"`
	Tags              []string `json:"tags"`
	Visibility        string   `json:"visibility"`
	Name              string   `json:"name"`
	Checksum          string   `json:"checksum"`
	Deleted           bool     `json:"deleted"`
	Protected         bool     `sjon:"protected"`
	Container_Format  string   `json:"container_format"`
	Min_Ram           uint32   `json:"min_ram"`
	Update_At         string   `json:"update_at"`
	Os_Bit            string   `json:"__os_bit"`
	Os_Version        string   `json:"__os_version"`
	Description       string   `json:"__description"`
	Disk_Format       string   `json:"disk_format"`
	IsRegistered      string   `json:"__isregistered"`
	Platform          string   `json:"__platform"`
	Os_Type           string   `json:"__os_type"`
	Min_Disk          uint32   `json:"min_disk"`
	Virtual_Env_Type  string   `json:"virtual_env_type"`
	Image_Source_Type string   `json:"__images_source_type"`
	ImageType         string   `json:"__imagetype"`
	Create_At         string   `json:"create_at"`
	Virtual_Size      uint32   `json:"virtual_size"`
	Deleted_At        string   `json:"deleted_at"`
	OriginalImageName string   `json:"__originalimagename"`
	Backup_Id         string   `json:"__backup_id"`
	ProductCode       string   `json:"__productcode"`
	Image_Location    string   `json:"__image_location"`
	Image_Size        string   `json:"__image_size"`
	Data_Origin       string   `json:"__data_origin"`
}

type ImageResponse

type ImageResponse struct {
	Images []ImageList `json:"images"`
}

Jump to

Keyboard shortcuts

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