img

package
v1.3.2 Latest Latest
Warning

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

Go to latest
Published: May 23, 2018 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultClient = ImgClient{Client: core.DefaultClient}

Functions

func DoAction

func DoAction(action string, options ...string) ([]byte, error)

Types

type CreateImageResp

type CreateImageResp struct {
	Response struct {
		RequestID string      `json:"RequestId"`
		Error     interface{} `json:"Error,omitempty"`
	} `json:"Response"`
}

func (*CreateImageResp) String added in v1.1.0

func (r *CreateImageResp) String(args ...interface{}) (string, error)

type DeleteImagesResp

type DeleteImagesResp struct {
	Response struct {
		RequestID string      `json:"RequestId"`
		Error     interface{} `json:"Error,omitempty"`
	} `json:"Response"`
}

func (*DeleteImagesResp) String added in v1.1.0

func (r *DeleteImagesResp) String(args ...interface{}) (string, error)

type DescribeImagesResp

type DescribeImagesResp struct {
	Response struct {
		ImageSet []struct {
			Architecture     string      `json:"Architecture"`
			CreatedTime      interface{} `json:"CreatedTime"`
			ImageCreator     interface{} `json:"ImageCreator"`
			ImageDescription string      `json:"ImageDescription"`
			ImageID          string      `json:"ImageId"`
			ImageName        string      `json:"ImageName"`
			ImageSize        int64       `json:"ImageSize"`
			ImageSource      string      `json:"ImageSource"`
			ImageState       string      `json:"ImageState"`
			ImageType        string      `json:"ImageType"`
			OsName           string      `json:"OsName"`
			Platform         string      `json:"Platform"`
		} `json:"ImageSet"`
		RequestID  string `json:"RequestId"`
		TotalCount int64  `json:"TotalCount"`
	} `json:"Response"`
}

func DescribeImages

func DescribeImages(options ...string) (*DescribeImagesResp, error)

func (*DescribeImagesResp) String added in v1.1.0

func (r *DescribeImagesResp) String(args ...interface{}) (string, error)

type ImgClient added in v1.3.0

type ImgClient struct {
	*core.Client
}

func NewClient added in v1.3.0

func NewClient() *ImgClient

func (*ImgClient) DescribeImages added in v1.3.0

func (c *ImgClient) DescribeImages(options ...string) (*DescribeImagesResp, error)

Implement https://cloud.tencent.com/document/api/213/9418

func (*ImgClient) DoAction added in v1.3.0

func (client *ImgClient) DoAction(action string, options ...string) ([]byte, error)

type SyncImagesResp

type SyncImagesResp struct {
	Response struct {
		RequestID string      `json:"RequestId"`
		Error     interface{} `json:"Error,omitempty"`
	} `json:"Response"`
}

func (*SyncImagesResp) String added in v1.1.0

func (r *SyncImagesResp) String(args ...interface{}) (string, error)

Jump to

Keyboard shortcuts

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