Documentation ¶
Index ¶
- Constants
- type Client
- func (c *Client) CreateContainerInstance(request *CreateContainerInstanceRequest) (response *CreateContainerInstanceResponse, err error)
- func (c *Client) DeleteContainerInstance(request *DeleteContainerInstanceRequest) (response *DeleteContainerInstanceResponse, err error)
- func (c *Client) DescribeContainerInstance(request *DescribeContainerInstanceRequest) (response *DescribeContainerInstanceResponse, err error)
- func (c *Client) DescribeContainerInstanceEvents(request *DescribeContainerInstanceEventsRequest) (response *DescribeContainerInstanceEventsResponse, err error)
- func (c *Client) DescribeContainerInstances(request *DescribeContainerInstancesRequest) (response *DescribeContainerInstancesResponse, err error)
- func (c *Client) DescribeContainerLog(request *DescribeContainerLogRequest) (response *DescribeContainerLogResponse, err error)
- func (c *Client) InquiryPriceCreateCis(request *InquiryPriceCreateCisRequest) (response *InquiryPriceCreateCisResponse, err error)
- type Container
- type ContainerInstance
- type ContainerLog
- type ContainerState
- type CreateContainerInstanceRequest
- type CreateContainerInstanceResponse
- type DeleteContainerInstanceRequest
- type DeleteContainerInstanceResponse
- type DescribeContainerInstanceEventsRequest
- type DescribeContainerInstanceEventsResponse
- type DescribeContainerInstanceRequest
- type DescribeContainerInstanceResponse
- type DescribeContainerInstancesRequest
- type DescribeContainerInstancesResponse
- type DescribeContainerLogRequest
- type DescribeContainerLogResponse
- type EnvironmentVar
- type Event
- type Filter
- type InquiryPriceCreateCisRequest
- type InquiryPriceCreateCisResponse
- type Price
Constants ¶
View Source
const APIVersion = "2018-04-08"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
func NewClient ¶
func NewClient(credential *common.Credential, region string, clientProfile *profile.ClientProfile) (client *Client, err error)
func NewClientWithSecretId ¶
Deprecated
func (*Client) CreateContainerInstance ¶
func (c *Client) CreateContainerInstance(request *CreateContainerInstanceRequest) (response *CreateContainerInstanceResponse, err error)
此接口(CreateContainerInstance)用于创建容器实例
func (*Client) DeleteContainerInstance ¶
func (c *Client) DeleteContainerInstance(request *DeleteContainerInstanceRequest) (response *DeleteContainerInstanceResponse, err error)
此接口(DeleteContainerInstance)用于删除容器实例
func (*Client) DescribeContainerInstance ¶
func (c *Client) DescribeContainerInstance(request *DescribeContainerInstanceRequest) (response *DescribeContainerInstanceResponse, err error)
此接口(DescribeContainerInstance)用于获取容器实例详情
func (*Client) DescribeContainerInstanceEvents ¶
func (c *Client) DescribeContainerInstanceEvents(request *DescribeContainerInstanceEventsRequest) (response *DescribeContainerInstanceEventsResponse, err error)
此接口(DescribeContainerInstanceEvents)用于查询容器实例事件列表
func (*Client) DescribeContainerInstances ¶
func (c *Client) DescribeContainerInstances(request *DescribeContainerInstancesRequest) (response *DescribeContainerInstancesResponse, err error)
此接口(DescribeContainerInstances)查询容器实例列表
func (*Client) DescribeContainerLog ¶
func (c *Client) DescribeContainerLog(request *DescribeContainerLogRequest) (response *DescribeContainerLogResponse, err error)
此接口(DescribeContainerLog)用于获取容器日志信息
func (*Client) InquiryPriceCreateCis ¶
func (c *Client) InquiryPriceCreateCis(request *InquiryPriceCreateCisRequest) (response *InquiryPriceCreateCisResponse, err error)
此接口(InquiryPriceCreateCis)用于查询容器实例价格
type Container ¶
type Container struct { // 容器启动命令 Command *string `json:"Command,omitempty" name:"Command"` // 容器启动参数 Args []*string `json:"Args,omitempty" name:"Args" list` // 容器环境变量 EnvironmentVars []*EnvironmentVar `json:"EnvironmentVars,omitempty" name:"EnvironmentVars" list` // 镜像 Image *string `json:"Image,omitempty" name:"Image"` // 容器名,由小写字母、数字和 - 组成,由小写字母开头,小写字母或数字结尾,且长度不超过 63个字符 Name *string `json:"Name,omitempty" name:"Name"` // CPU,单位:核 Cpu *float64 `json:"Cpu,omitempty" name:"Cpu"` // 内存,单位:Gi Memory *float64 `json:"Memory,omitempty" name:"Memory"` // 重启次数 RestartCount *uint64 `json:"RestartCount,omitempty" name:"RestartCount"` // 当前状态 CurrentState *ContainerState `json:"CurrentState,omitempty" name:"CurrentState"` // 上一次状态 PreviousState *ContainerState `json:"PreviousState,omitempty" name:"PreviousState"` // 容器工作目录 WorkingDir *string `json:"WorkingDir,omitempty" name:"WorkingDir"` // 容器ID ContainerId *string `json:"ContainerId,omitempty" name:"ContainerId"` }
type ContainerInstance ¶
type ContainerInstance struct { // 容器实例ID InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` // 容器实例名称 InstanceName *string `json:"InstanceName,omitempty" name:"InstanceName"` // 容器实例所属VpcId VpcId *string `json:"VpcId,omitempty" name:"VpcId"` // 容器实例所属SubnetId SubnetId *string `json:"SubnetId,omitempty" name:"SubnetId"` // 容器实例状态 State *string `json:"State,omitempty" name:"State"` // 容器列表 Containers []*Container `json:"Containers,omitempty" name:"Containers" list` // 重启策略 RestartPolicy *string `json:"RestartPolicy,omitempty" name:"RestartPolicy"` // 创建时间 CreateTime *string `json:"CreateTime,omitempty" name:"CreateTime"` // 启动时间 StartTime *string `json:"StartTime,omitempty" name:"StartTime"` // 可用区 Zone *string `json:"Zone,omitempty" name:"Zone"` // Vpc名称 VpcName *string `json:"VpcName,omitempty" name:"VpcName"` // VpcCidr VpcCidr *string `json:"VpcCidr,omitempty" name:"VpcCidr"` // SubnetName SubnetName *string `json:"SubnetName,omitempty" name:"SubnetName"` // 子网Cidr SubnetCidr *string `json:"SubnetCidr,omitempty" name:"SubnetCidr"` // 内网IP LanIp *string `json:"LanIp,omitempty" name:"LanIp"` }
type ContainerLog ¶
type ContainerState ¶
type ContainerState struct { // 容器运行开始时间 StartTime *string `json:"StartTime,omitempty" name:"StartTime"` // 容器状态 State *string `json:"State,omitempty" name:"State"` // 状态详情 Reason *string `json:"Reason,omitempty" name:"Reason"` // 容器运行结束时间 FinishTime *string `json:"FinishTime,omitempty" name:"FinishTime"` // 容器运行退出码 ExitCode *int64 `json:"ExitCode,omitempty" name:"ExitCode"` }
type CreateContainerInstanceRequest ¶
type CreateContainerInstanceRequest struct { *tchttp.BaseRequest // 可用区 Zone *string `json:"Zone,omitempty" name:"Zone"` // vpcId VpcId *string `json:"VpcId,omitempty" name:"VpcId"` // subnetId SubnetId *string `json:"SubnetId,omitempty" name:"SubnetId"` // 容器实例名称,由小写字母、数字和 - 组成,由小写字母开头,小写字母或数字结尾,且长度不超过 40个字符 InstanceName *string `json:"InstanceName,omitempty" name:"InstanceName"` // 重启策略(Always,OnFailure,Never) RestartPolicy *string `json:"RestartPolicy,omitempty" name:"RestartPolicy"` // 容器列表 Containers []*Container `json:"Containers,omitempty" name:"Containers" list` }
func NewCreateContainerInstanceRequest ¶
func NewCreateContainerInstanceRequest() (request *CreateContainerInstanceRequest)
func (*CreateContainerInstanceRequest) FromJsonString ¶
func (r *CreateContainerInstanceRequest) FromJsonString(s string) error
func (*CreateContainerInstanceRequest) ToJsonString ¶
func (r *CreateContainerInstanceRequest) ToJsonString() string
type CreateContainerInstanceResponse ¶
type CreateContainerInstanceResponse struct { *tchttp.BaseResponse Response *struct { // 容器实例ID InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` // 唯一请求ID,每次请求都会返回。定位问题时需要提供该次请求的RequestId。 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewCreateContainerInstanceResponse ¶
func NewCreateContainerInstanceResponse() (response *CreateContainerInstanceResponse)
func (*CreateContainerInstanceResponse) FromJsonString ¶
func (r *CreateContainerInstanceResponse) FromJsonString(s string) error
func (*CreateContainerInstanceResponse) ToJsonString ¶
func (r *CreateContainerInstanceResponse) ToJsonString() string
type DeleteContainerInstanceRequest ¶
type DeleteContainerInstanceRequest struct { *tchttp.BaseRequest // 容器实例名称 InstanceName *string `json:"InstanceName,omitempty" name:"InstanceName"` }
func NewDeleteContainerInstanceRequest ¶
func NewDeleteContainerInstanceRequest() (request *DeleteContainerInstanceRequest)
func (*DeleteContainerInstanceRequest) FromJsonString ¶
func (r *DeleteContainerInstanceRequest) FromJsonString(s string) error
func (*DeleteContainerInstanceRequest) ToJsonString ¶
func (r *DeleteContainerInstanceRequest) ToJsonString() string
type DeleteContainerInstanceResponse ¶
type DeleteContainerInstanceResponse struct { *tchttp.BaseResponse Response *struct { // 操作信息 Msg *string `json:"Msg,omitempty" name:"Msg"` // 唯一请求ID,每次请求都会返回。定位问题时需要提供该次请求的RequestId。 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewDeleteContainerInstanceResponse ¶
func NewDeleteContainerInstanceResponse() (response *DeleteContainerInstanceResponse)
func (*DeleteContainerInstanceResponse) FromJsonString ¶
func (r *DeleteContainerInstanceResponse) FromJsonString(s string) error
func (*DeleteContainerInstanceResponse) ToJsonString ¶
func (r *DeleteContainerInstanceResponse) ToJsonString() string
type DescribeContainerInstanceEventsRequest ¶
type DescribeContainerInstanceEventsRequest struct { *tchttp.BaseRequest // 容器实例名称 InstanceName *string `json:"InstanceName,omitempty" name:"InstanceName"` }
func NewDescribeContainerInstanceEventsRequest ¶
func NewDescribeContainerInstanceEventsRequest() (request *DescribeContainerInstanceEventsRequest)
func (*DescribeContainerInstanceEventsRequest) FromJsonString ¶
func (r *DescribeContainerInstanceEventsRequest) FromJsonString(s string) error
func (*DescribeContainerInstanceEventsRequest) ToJsonString ¶
func (r *DescribeContainerInstanceEventsRequest) ToJsonString() string
type DescribeContainerInstanceEventsResponse ¶
type DescribeContainerInstanceEventsResponse struct { *tchttp.BaseResponse Response *struct { // 容器实例事件列表 EventList []*Event `json:"EventList,omitempty" name:"EventList" list` // 唯一请求ID,每次请求都会返回。定位问题时需要提供该次请求的RequestId。 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewDescribeContainerInstanceEventsResponse ¶
func NewDescribeContainerInstanceEventsResponse() (response *DescribeContainerInstanceEventsResponse)
func (*DescribeContainerInstanceEventsResponse) FromJsonString ¶
func (r *DescribeContainerInstanceEventsResponse) FromJsonString(s string) error
func (*DescribeContainerInstanceEventsResponse) ToJsonString ¶
func (r *DescribeContainerInstanceEventsResponse) ToJsonString() string
type DescribeContainerInstanceRequest ¶
type DescribeContainerInstanceRequest struct { *tchttp.BaseRequest // 容器实例名称 InstanceName *string `json:"InstanceName,omitempty" name:"InstanceName"` }
func NewDescribeContainerInstanceRequest ¶
func NewDescribeContainerInstanceRequest() (request *DescribeContainerInstanceRequest)
func (*DescribeContainerInstanceRequest) FromJsonString ¶
func (r *DescribeContainerInstanceRequest) FromJsonString(s string) error
func (*DescribeContainerInstanceRequest) ToJsonString ¶
func (r *DescribeContainerInstanceRequest) ToJsonString() string
type DescribeContainerInstanceResponse ¶
type DescribeContainerInstanceResponse struct { *tchttp.BaseResponse Response *struct { // 容器实例详细信息 ContainerInstance *ContainerInstance `json:"ContainerInstance,omitempty" name:"ContainerInstance"` // 唯一请求ID,每次请求都会返回。定位问题时需要提供该次请求的RequestId。 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewDescribeContainerInstanceResponse ¶
func NewDescribeContainerInstanceResponse() (response *DescribeContainerInstanceResponse)
func (*DescribeContainerInstanceResponse) FromJsonString ¶
func (r *DescribeContainerInstanceResponse) FromJsonString(s string) error
func (*DescribeContainerInstanceResponse) ToJsonString ¶
func (r *DescribeContainerInstanceResponse) ToJsonString() string
type DescribeContainerInstancesRequest ¶
type DescribeContainerInstancesRequest struct { *tchttp.BaseRequest // 偏移量,默认为0 Offset *uint64 `json:"Offset,omitempty" name:"Offset"` // 返回数量,默认为10 Limit *uint64 `json:"Limit,omitempty" name:"Limit"` // 过滤条件。 // - Zone - String - 是否必填:否 -(过滤条件)按照可用区过滤。 // - VpcId - String - 是否必填:否 -(过滤条件)按照VpcId过滤。 // - InstanceName - String - 是否必填:否 -(过滤条件)按照容器实例名称做模糊查询。 Filters []*Filter `json:"Filters,omitempty" name:"Filters" list` }
func NewDescribeContainerInstancesRequest ¶
func NewDescribeContainerInstancesRequest() (request *DescribeContainerInstancesRequest)
func (*DescribeContainerInstancesRequest) FromJsonString ¶
func (r *DescribeContainerInstancesRequest) FromJsonString(s string) error
func (*DescribeContainerInstancesRequest) ToJsonString ¶
func (r *DescribeContainerInstancesRequest) ToJsonString() string
type DescribeContainerInstancesResponse ¶
type DescribeContainerInstancesResponse struct { *tchttp.BaseResponse Response *struct { // 容器实例列表 ContainerInstanceList []*ContainerInstance `json:"ContainerInstanceList,omitempty" name:"ContainerInstanceList" list` // 容器实例总数 TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"` // 唯一请求ID,每次请求都会返回。定位问题时需要提供该次请求的RequestId。 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewDescribeContainerInstancesResponse ¶
func NewDescribeContainerInstancesResponse() (response *DescribeContainerInstancesResponse)
func (*DescribeContainerInstancesResponse) FromJsonString ¶
func (r *DescribeContainerInstancesResponse) FromJsonString(s string) error
func (*DescribeContainerInstancesResponse) ToJsonString ¶
func (r *DescribeContainerInstancesResponse) ToJsonString() string
type DescribeContainerLogRequest ¶
type DescribeContainerLogRequest struct { *tchttp.BaseRequest // 容器实例名称 InstanceName *string `json:"InstanceName,omitempty" name:"InstanceName"` // 容器名称 ContainerName *string `json:"ContainerName,omitempty" name:"ContainerName"` // 日志显示尾部行数 Tail *uint64 `json:"Tail,omitempty" name:"Tail"` // 日志起始时间 SinceTime *string `json:"SinceTime,omitempty" name:"SinceTime"` }
func NewDescribeContainerLogRequest ¶
func NewDescribeContainerLogRequest() (request *DescribeContainerLogRequest)
func (*DescribeContainerLogRequest) FromJsonString ¶
func (r *DescribeContainerLogRequest) FromJsonString(s string) error
func (*DescribeContainerLogRequest) ToJsonString ¶
func (r *DescribeContainerLogRequest) ToJsonString() string
type DescribeContainerLogResponse ¶
type DescribeContainerLogResponse struct { *tchttp.BaseResponse Response *struct { // 容器日志数组 ContainerLogList []*ContainerLog `json:"ContainerLogList,omitempty" name:"ContainerLogList" list` // 唯一请求ID,每次请求都会返回。定位问题时需要提供该次请求的RequestId。 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewDescribeContainerLogResponse ¶
func NewDescribeContainerLogResponse() (response *DescribeContainerLogResponse)
func (*DescribeContainerLogResponse) FromJsonString ¶
func (r *DescribeContainerLogResponse) FromJsonString(s string) error
func (*DescribeContainerLogResponse) ToJsonString ¶
func (r *DescribeContainerLogResponse) ToJsonString() string
type EnvironmentVar ¶
type Event ¶
type Event struct { // 事件首次出现时间 FirstSeen *string `json:"FirstSeen,omitempty" name:"FirstSeen"` // 事件上次出现时间 LastSeen *string `json:"LastSeen,omitempty" name:"LastSeen"` // 事件等级 Level *string `json:"Level,omitempty" name:"Level"` // 事件出现次数 Count *string `json:"Count,omitempty" name:"Count"` // 事件出现原因 Reason *string `json:"Reason,omitempty" name:"Reason"` // 事件消息 Message *string `json:"Message,omitempty" name:"Message"` }
type InquiryPriceCreateCisRequest ¶
type InquiryPriceCreateCisRequest struct { *tchttp.BaseRequest // 可用区 Zone *string `json:"Zone,omitempty" name:"Zone"` // CPU,单位:核 Cpu *float64 `json:"Cpu,omitempty" name:"Cpu"` // 内存,单位:Gi Memory *float64 `json:"Memory,omitempty" name:"Memory"` }
func NewInquiryPriceCreateCisRequest ¶
func NewInquiryPriceCreateCisRequest() (request *InquiryPriceCreateCisRequest)
func (*InquiryPriceCreateCisRequest) FromJsonString ¶
func (r *InquiryPriceCreateCisRequest) FromJsonString(s string) error
func (*InquiryPriceCreateCisRequest) ToJsonString ¶
func (r *InquiryPriceCreateCisRequest) ToJsonString() string
type InquiryPriceCreateCisResponse ¶
type InquiryPriceCreateCisResponse struct { *tchttp.BaseResponse Response *struct { // 价格 Price *Price `json:"Price,omitempty" name:"Price"` // 唯一请求ID,每次请求都会返回。定位问题时需要提供该次请求的RequestId。 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewInquiryPriceCreateCisResponse ¶
func NewInquiryPriceCreateCisResponse() (response *InquiryPriceCreateCisResponse)
func (*InquiryPriceCreateCisResponse) FromJsonString ¶
func (r *InquiryPriceCreateCisResponse) FromJsonString(s string) error
func (*InquiryPriceCreateCisResponse) ToJsonString ¶
func (r *InquiryPriceCreateCisResponse) ToJsonString() string
Click to show internal directories.
Click to hide internal directories.