Documentation ¶
Index ¶
- type AssociateElasticIpRequest
- func NewAssociateElasticIpRequest(regionId string, podId string, elasticIpId string) *AssociateElasticIpRequest
- func NewAssociateElasticIpRequestWithAllParams(regionId string, podId string, elasticIpId string) *AssociateElasticIpRequest
- func NewAssociateElasticIpRequestWithoutParam() *AssociateElasticIpRequest
- type AssociateElasticIpResponse
- type AssociateElasticIpResult
- type AttachRequest
- type AttachResponse
- type AttachResult
- type CheckPodNameRequest
- type CheckPodNameResponse
- type CheckPodNameResult
- type CreatePodsRequest
- type CreatePodsResponse
- type CreatePodsResult
- type CreateSecretRequest
- func NewCreateSecretRequest(regionId string, name string, secretType string, data *pod.DockerRegistryData) *CreateSecretRequest
- func NewCreateSecretRequestWithAllParams(regionId string, name string, secretType string, data *pod.DockerRegistryData) *CreateSecretRequest
- func NewCreateSecretRequestWithoutParam() *CreateSecretRequest
- type CreateSecretResponse
- type CreateSecretResult
- type DeletePodRequest
- type DeletePodResponse
- type DeletePodResult
- type DeleteSecretRequest
- type DeleteSecretResponse
- type DeleteSecretResult
- type DescribeContainerRequest
- func NewDescribeContainerRequest(regionId string, podId string, containerName string) *DescribeContainerRequest
- func NewDescribeContainerRequestWithAllParams(regionId string, podId string, containerName string) *DescribeContainerRequest
- func NewDescribeContainerRequestWithoutParam() *DescribeContainerRequest
- type DescribeContainerResponse
- type DescribeContainerResult
- type DescribeInstanceTypesRequest
- type DescribeInstanceTypesResponse
- type DescribeInstanceTypesResult
- type DescribePodRequest
- type DescribePodResponse
- type DescribePodResult
- type DescribePodsRequest
- func (r DescribePodsRequest) GetRegionId() string
- func (r *DescribePodsRequest) SetFilters(filters []common.Filter)
- func (r *DescribePodsRequest) SetPageNumber(pageNumber int)
- func (r *DescribePodsRequest) SetPageSize(pageSize int)
- func (r *DescribePodsRequest) SetRegionId(regionId string)
- func (r *DescribePodsRequest) SetTags(tags []pod.TagFilter)
- type DescribePodsResponse
- type DescribePodsResult
- type DescribeQuotaRequest
- type DescribeQuotaResponse
- type DescribeQuotaResult
- type DescribeSecretRequest
- type DescribeSecretResponse
- type DescribeSecretResult
- type DescribeSecretsRequest
- func (r DescribeSecretsRequest) GetRegionId() string
- func (r *DescribeSecretsRequest) SetFilters(filters []common.Filter)
- func (r *DescribeSecretsRequest) SetPageNumber(pageNumber int)
- func (r *DescribeSecretsRequest) SetPageSize(pageSize int)
- func (r *DescribeSecretsRequest) SetRegionId(regionId string)
- type DescribeSecretsResponse
- type DescribeSecretsResult
- type DisassociateElasticIpRequest
- func NewDisassociateElasticIpRequest(regionId string, podId string, elasticIpId string) *DisassociateElasticIpRequest
- func NewDisassociateElasticIpRequestWithAllParams(regionId string, podId string, elasticIpId string) *DisassociateElasticIpRequest
- func NewDisassociateElasticIpRequestWithoutParam() *DisassociateElasticIpRequest
- type DisassociateElasticIpResponse
- type DisassociateElasticIpResult
- type ExecCreateRequest
- func NewExecCreateRequest(regionId string, podId string, containerName string, command []string) *ExecCreateRequest
- func NewExecCreateRequestWithAllParams(regionId string, podId string, containerName string, command []string, ...) *ExecCreateRequest
- func NewExecCreateRequestWithoutParam() *ExecCreateRequest
- func (r ExecCreateRequest) GetRegionId() string
- func (r *ExecCreateRequest) SetCommand(command []string)
- func (r *ExecCreateRequest) SetContainerName(containerName string)
- func (r *ExecCreateRequest) SetPodId(podId string)
- func (r *ExecCreateRequest) SetRegionId(regionId string)
- func (r *ExecCreateRequest) SetTty(tty bool)
- type ExecCreateResponse
- type ExecCreateResult
- type ExecGetExitCodeRequest
- func NewExecGetExitCodeRequest(regionId string, podId string, containerName string, execId string) *ExecGetExitCodeRequest
- func NewExecGetExitCodeRequestWithAllParams(regionId string, podId string, containerName string, execId string) *ExecGetExitCodeRequest
- func NewExecGetExitCodeRequestWithoutParam() *ExecGetExitCodeRequest
- func (r ExecGetExitCodeRequest) GetRegionId() string
- func (r *ExecGetExitCodeRequest) SetContainerName(containerName string)
- func (r *ExecGetExitCodeRequest) SetExecId(execId string)
- func (r *ExecGetExitCodeRequest) SetPodId(podId string)
- func (r *ExecGetExitCodeRequest) SetRegionId(regionId string)
- type ExecGetExitCodeResponse
- type ExecGetExitCodeResult
- type ExecStartRequest
- type ExecStartResponse
- type ExecStartResult
- type GetContainerLogsRequest
- func NewGetContainerLogsRequest(regionId string, podId string, containerName string) *GetContainerLogsRequest
- func NewGetContainerLogsRequestWithAllParams(regionId string, podId string, containerName string, tailLines *int, ...) *GetContainerLogsRequest
- func NewGetContainerLogsRequestWithoutParam() *GetContainerLogsRequest
- func (r GetContainerLogsRequest) GetRegionId() string
- func (r *GetContainerLogsRequest) SetContainerName(containerName string)
- func (r *GetContainerLogsRequest) SetEndTime(endTime string)
- func (r *GetContainerLogsRequest) SetLimitBytes(limitBytes int)
- func (r *GetContainerLogsRequest) SetPodId(podId string)
- func (r *GetContainerLogsRequest) SetRegionId(regionId string)
- func (r *GetContainerLogsRequest) SetSinceSeconds(sinceSeconds int)
- func (r *GetContainerLogsRequest) SetStartTime(startTime string)
- func (r *GetContainerLogsRequest) SetTailLines(tailLines int)
- type GetContainerLogsResponse
- type GetContainerLogsResult
- type ModifyPodAttributeRequest
- type ModifyPodAttributeResponse
- type ModifyPodAttributeResult
- type RebuildPodRequest
- func NewRebuildPodRequest(regionId string, podId string, containers []pod.RebuildContainerSpec) *RebuildPodRequest
- func NewRebuildPodRequestWithAllParams(regionId string, podId string, containers []pod.RebuildContainerSpec) *RebuildPodRequest
- func NewRebuildPodRequestWithoutParam() *RebuildPodRequest
- type RebuildPodResponse
- type RebuildPodResult
- type ResizePodRequest
- func (r ResizePodRequest) GetRegionId() string
- func (r *ResizePodRequest) SetContainerResources(containerResources []pod.ContainerResourceSpec)
- func (r *ResizePodRequest) SetInstanceType(instanceType string)
- func (r *ResizePodRequest) SetPodId(podId string)
- func (r *ResizePodRequest) SetRegionId(regionId string)
- type ResizePodResponse
- type ResizePodResult
- type ResizeTTYRequest
- func NewResizeTTYRequest(regionId string, podId string, containerName string, height int, width int) *ResizeTTYRequest
- func NewResizeTTYRequestWithAllParams(regionId string, podId string, containerName string, height int, width int, ...) *ResizeTTYRequest
- func NewResizeTTYRequestWithoutParam() *ResizeTTYRequest
- func (r ResizeTTYRequest) GetRegionId() string
- func (r *ResizeTTYRequest) SetContainerName(containerName string)
- func (r *ResizeTTYRequest) SetExecId(execId string)
- func (r *ResizeTTYRequest) SetHeight(height int)
- func (r *ResizeTTYRequest) SetPodId(podId string)
- func (r *ResizeTTYRequest) SetRegionId(regionId string)
- func (r *ResizeTTYRequest) SetWidth(width int)
- type ResizeTTYResponse
- type ResizeTTYResult
- type StartPodRequest
- type StartPodResponse
- type StartPodResult
- type StopPodRequest
- type StopPodResponse
- type StopPodResult
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AssociateElasticIpRequest ¶
type AssociateElasticIpRequest struct { core.JDCloudRequest /* Region ID */ RegionId string `json:"regionId"` /* Pod ID */ PodId string `json:"podId"` /* 弹性IP ID */ ElasticIpId string `json:"elasticIpId"` }
func NewAssociateElasticIpRequest ¶
func NewAssociateElasticIpRequest( regionId string, podId string, elasticIpId string, ) *AssociateElasticIpRequest
* param regionId: Region ID (Required) * param podId: Pod ID (Required) * param elasticIpId: 弹性IP ID (Required) * * @Deprecated, not compatible when mandatory parameters changed
func NewAssociateElasticIpRequestWithAllParams ¶
func NewAssociateElasticIpRequestWithAllParams( regionId string, podId string, elasticIpId string, ) *AssociateElasticIpRequest
* param regionId: Region ID (Required) * param podId: Pod ID (Required) * param elasticIpId: 弹性IP ID (Required)
func NewAssociateElasticIpRequestWithoutParam ¶
func NewAssociateElasticIpRequestWithoutParam() *AssociateElasticIpRequest
This constructor has better compatible ability when API parameters changed
func (AssociateElasticIpRequest) GetRegionId ¶
func (r AssociateElasticIpRequest) GetRegionId() string
GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string
func (*AssociateElasticIpRequest) SetElasticIpId ¶
func (r *AssociateElasticIpRequest) SetElasticIpId(elasticIpId string)
param elasticIpId: 弹性IP ID(Required)
func (*AssociateElasticIpRequest) SetPodId ¶
func (r *AssociateElasticIpRequest) SetPodId(podId string)
param podId: Pod ID(Required)
func (*AssociateElasticIpRequest) SetRegionId ¶
func (r *AssociateElasticIpRequest) SetRegionId(regionId string)
param regionId: Region ID(Required)
type AssociateElasticIpResponse ¶
type AssociateElasticIpResponse struct { RequestID string `json:"requestId"` Error core.ErrorResponse `json:"error"` Result AssociateElasticIpResult `json:"result"` }
type AssociateElasticIpResult ¶
type AssociateElasticIpResult struct { }
type AttachRequest ¶
type AttachRequest struct { core.JDCloudRequest /* Region ID */ RegionId string `json:"regionId"` /* Pod ID */ PodId string `json:"podId"` /* container name */ ContainerName string `json:"containerName"` }
func NewAttachRequest ¶
func NewAttachRequest( regionId string, podId string, containerName string, ) *AttachRequest
* param regionId: Region ID (Required) * param podId: Pod ID (Required) * param containerName: container name (Required) * * @Deprecated, not compatible when mandatory parameters changed
func NewAttachRequestWithAllParams ¶
func NewAttachRequestWithAllParams( regionId string, podId string, containerName string, ) *AttachRequest
* param regionId: Region ID (Required) * param podId: Pod ID (Required) * param containerName: container name (Required)
func NewAttachRequestWithoutParam ¶
func NewAttachRequestWithoutParam() *AttachRequest
This constructor has better compatible ability when API parameters changed
func (AttachRequest) GetRegionId ¶
func (r AttachRequest) GetRegionId() string
GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string
func (*AttachRequest) SetContainerName ¶
func (r *AttachRequest) SetContainerName(containerName string)
param containerName: container name(Required)
func (*AttachRequest) SetPodId ¶
func (r *AttachRequest) SetPodId(podId string)
param podId: Pod ID(Required)
func (*AttachRequest) SetRegionId ¶
func (r *AttachRequest) SetRegionId(regionId string)
param regionId: Region ID(Required)
type AttachResponse ¶
type AttachResponse struct { RequestID string `json:"requestId"` Error core.ErrorResponse `json:"error"` Result AttachResult `json:"result"` }
type AttachResult ¶
type AttachResult struct { }
type CheckPodNameRequest ¶
type CheckPodNameRequest struct { core.JDCloudRequest /* Region ID */ RegionId string `json:"regionId"` /* 用户定义的 pod 名称,符合 DNS-1123 subdomain 规范。 */ PodName string `json:"podName"` /* 需要创建的 pod 总数,默认创建一个,不同的总数会对校验结果产生影响。 (Optional) */ MaxCount *int `json:"maxCount"` }
func NewCheckPodNameRequest ¶
func NewCheckPodNameRequest( regionId string, podName string, ) *CheckPodNameRequest
* param regionId: Region ID (Required) * param podName: 用户定义的 pod 名称,符合 DNS-1123 subdomain 规范。 (Required) * * @Deprecated, not compatible when mandatory parameters changed
func NewCheckPodNameRequestWithAllParams ¶
func NewCheckPodNameRequestWithAllParams( regionId string, podName string, maxCount *int, ) *CheckPodNameRequest
* param regionId: Region ID (Required) * param podName: 用户定义的 pod 名称,符合 DNS-1123 subdomain 规范。 (Required) * param maxCount: 需要创建的 pod 总数,默认创建一个,不同的总数会对校验结果产生影响。 (Optional)
func NewCheckPodNameRequestWithoutParam ¶
func NewCheckPodNameRequestWithoutParam() *CheckPodNameRequest
This constructor has better compatible ability when API parameters changed
func (CheckPodNameRequest) GetRegionId ¶
func (r CheckPodNameRequest) GetRegionId() string
GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string
func (*CheckPodNameRequest) SetMaxCount ¶
func (r *CheckPodNameRequest) SetMaxCount(maxCount int)
param maxCount: 需要创建的 pod 总数,默认创建一个,不同的总数会对校验结果产生影响。(Optional)
func (*CheckPodNameRequest) SetPodName ¶
func (r *CheckPodNameRequest) SetPodName(podName string)
param podName: 用户定义的 pod 名称,符合 DNS-1123 subdomain 规范。(Required)
func (*CheckPodNameRequest) SetRegionId ¶
func (r *CheckPodNameRequest) SetRegionId(regionId string)
param regionId: Region ID(Required)
type CheckPodNameResponse ¶
type CheckPodNameResponse struct { RequestID string `json:"requestId"` Error core.ErrorResponse `json:"error"` Result CheckPodNameResult `json:"result"` }
type CheckPodNameResult ¶
type CreatePodsRequest ¶
type CreatePodsRequest struct { core.JDCloudRequest /* Region ID */ RegionId string `json:"regionId"` /* pod 创建参数 */ PodSpec *pod.PodSpec `json:"podSpec"` /* 购买实例数量;取值范围:[1,100] */ MaxCount int `json:"maxCount"` /* 保证请求幂等性的字符串;最大长度64个ASCII字符 (Optional) */ ClientToken *string `json:"clientToken"` }
func NewCreatePodsRequest ¶
func NewCreatePodsRequest( regionId string, podSpec *pod.PodSpec, maxCount int, ) *CreatePodsRequest
* param regionId: Region ID (Required) * param podSpec: pod 创建参数 (Required) * param maxCount: 购买实例数量;取值范围:[1,100] (Required) * * @Deprecated, not compatible when mandatory parameters changed
func NewCreatePodsRequestWithAllParams ¶
func NewCreatePodsRequestWithAllParams( regionId string, podSpec *pod.PodSpec, maxCount int, clientToken *string, ) *CreatePodsRequest
* param regionId: Region ID (Required) * param podSpec: pod 创建参数 (Required) * param maxCount: 购买实例数量;取值范围:[1,100] (Required) * param clientToken: 保证请求幂等性的字符串;最大长度64个ASCII字符 (Optional)
func NewCreatePodsRequestWithoutParam ¶
func NewCreatePodsRequestWithoutParam() *CreatePodsRequest
This constructor has better compatible ability when API parameters changed
func (CreatePodsRequest) GetRegionId ¶
func (r CreatePodsRequest) GetRegionId() string
GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string
func (*CreatePodsRequest) SetClientToken ¶ added in v1.11.0
func (r *CreatePodsRequest) SetClientToken(clientToken string)
param clientToken: 保证请求幂等性的字符串;最大长度64个ASCII字符(Optional)
func (*CreatePodsRequest) SetMaxCount ¶
func (r *CreatePodsRequest) SetMaxCount(maxCount int)
param maxCount: 购买实例数量;取值范围:[1,100](Required)
func (*CreatePodsRequest) SetPodSpec ¶
func (r *CreatePodsRequest) SetPodSpec(podSpec *pod.PodSpec)
param podSpec: pod 创建参数(Required)
func (*CreatePodsRequest) SetRegionId ¶
func (r *CreatePodsRequest) SetRegionId(regionId string)
param regionId: Region ID(Required)
type CreatePodsResponse ¶
type CreatePodsResponse struct { RequestID string `json:"requestId"` Error core.ErrorResponse `json:"error"` Result CreatePodsResult `json:"result"` }
type CreatePodsResult ¶
type CreatePodsResult struct {
PodIds []string `json:"podIds"`
}
type CreateSecretRequest ¶
type CreateSecretRequest struct { core.JDCloudRequest /* Region ID */ RegionId string `json:"regionId"` /* 机密数据名称,不能重复 */ Name string `json:"name"` /* 机密数据的类型,目前仅支持:docker-registry 类型,用来和docker registry认证的类型。 */ SecretType string `json:"secretType"` /* 机密的数据。<br> key 的有效字符包括字母、数字、-、_和.; <br> value 是 Base64 编码的字符串,不能包含换行符(在 linux 下使用 base64 -w 0选项),每个value长度上限为4KB,整个data的长度不能超过256KB; <br> 必须包含server、username、password 字段,email 字段是可选的。<br> */ Data *pod.DockerRegistryData `json:"data"` }
func NewCreateSecretRequest ¶
func NewCreateSecretRequest( regionId string, name string, secretType string, data *pod.DockerRegistryData, ) *CreateSecretRequest
- param regionId: Region ID (Required)
- param name: 机密数据名称,不能重复 (Required)
- param secretType: 机密数据的类型,目前仅支持:docker-registry 类型,用来和docker registry认证的类型。 (Required)
- param data: 机密的数据。<br>
key 的有效字符包括字母、数字、-、_和.; <br> value 是 Base64 编码的字符串,不能包含换行符(在 linux 下使用 base64 -w 0选项),每个value长度上限为4KB,整个data的长度不能超过256KB; <br> 必须包含server、username、password 字段,email 字段是可选的。<br>
(Required) * * @Deprecated, not compatible when mandatory parameters changed
func NewCreateSecretRequestWithAllParams ¶
func NewCreateSecretRequestWithAllParams( regionId string, name string, secretType string, data *pod.DockerRegistryData, ) *CreateSecretRequest
- param regionId: Region ID (Required)
- param name: 机密数据名称,不能重复 (Required)
- param secretType: 机密数据的类型,目前仅支持:docker-registry 类型,用来和docker registry认证的类型。 (Required)
- param data: 机密的数据。<br>
key 的有效字符包括字母、数字、-、_和.; <br> value 是 Base64 编码的字符串,不能包含换行符(在 linux 下使用 base64 -w 0选项),每个value长度上限为4KB,整个data的长度不能超过256KB; <br> 必须包含server、username、password 字段,email 字段是可选的。<br>
(Required)
func NewCreateSecretRequestWithoutParam ¶
func NewCreateSecretRequestWithoutParam() *CreateSecretRequest
This constructor has better compatible ability when API parameters changed
func (CreateSecretRequest) GetRegionId ¶
func (r CreateSecretRequest) GetRegionId() string
GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string
func (*CreateSecretRequest) SetData ¶
func (r *CreateSecretRequest) SetData(data *pod.DockerRegistryData)
param data: 机密的数据。<br>
key 的有效字符包括字母、数字、-、_和.; <br> value 是 Base64 编码的字符串,不能包含换行符(在 linux 下使用 base64 -w 0选项),每个value长度上限为4KB,整个data的长度不能超过256KB; <br> 必须包含server、username、password 字段,email 字段是可选的。<br> (Required)
func (*CreateSecretRequest) SetName ¶
func (r *CreateSecretRequest) SetName(name string)
param name: 机密数据名称,不能重复
(Required)
func (*CreateSecretRequest) SetRegionId ¶
func (r *CreateSecretRequest) SetRegionId(regionId string)
param regionId: Region ID(Required)
func (*CreateSecretRequest) SetSecretType ¶
func (r *CreateSecretRequest) SetSecretType(secretType string)
param secretType: 机密数据的类型,目前仅支持:docker-registry 类型,用来和docker registry认证的类型。
(Required)
type CreateSecretResponse ¶
type CreateSecretResponse struct { RequestID string `json:"requestId"` Error core.ErrorResponse `json:"error"` Result CreateSecretResult `json:"result"` }
type CreateSecretResult ¶
type CreateSecretResult struct {
SecretName string `json:"secretName"`
}
type DeletePodRequest ¶
type DeletePodRequest struct { core.JDCloudRequest /* Region ID */ RegionId string `json:"regionId"` /* Pod ID */ PodId string `json:"podId"` }
func NewDeletePodRequest ¶
func NewDeletePodRequest( regionId string, podId string, ) *DeletePodRequest
* param regionId: Region ID (Required) * param podId: Pod ID (Required) * * @Deprecated, not compatible when mandatory parameters changed
func NewDeletePodRequestWithAllParams ¶
func NewDeletePodRequestWithAllParams( regionId string, podId string, ) *DeletePodRequest
* param regionId: Region ID (Required) * param podId: Pod ID (Required)
func NewDeletePodRequestWithoutParam ¶
func NewDeletePodRequestWithoutParam() *DeletePodRequest
This constructor has better compatible ability when API parameters changed
func (DeletePodRequest) GetRegionId ¶
func (r DeletePodRequest) GetRegionId() string
GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string
func (*DeletePodRequest) SetPodId ¶
func (r *DeletePodRequest) SetPodId(podId string)
param podId: Pod ID(Required)
func (*DeletePodRequest) SetRegionId ¶
func (r *DeletePodRequest) SetRegionId(regionId string)
param regionId: Region ID(Required)
type DeletePodResponse ¶
type DeletePodResponse struct { RequestID string `json:"requestId"` Error core.ErrorResponse `json:"error"` Result DeletePodResult `json:"result"` }
type DeletePodResult ¶
type DeletePodResult struct { }
type DeleteSecretRequest ¶
type DeleteSecretRequest struct { core.JDCloudRequest /* Region ID */ RegionId string `json:"regionId"` /* Secret Name */ Name string `json:"name"` }
func NewDeleteSecretRequest ¶
func NewDeleteSecretRequest( regionId string, name string, ) *DeleteSecretRequest
* param regionId: Region ID (Required) * param name: Secret Name (Required) * * @Deprecated, not compatible when mandatory parameters changed
func NewDeleteSecretRequestWithAllParams ¶
func NewDeleteSecretRequestWithAllParams( regionId string, name string, ) *DeleteSecretRequest
* param regionId: Region ID (Required) * param name: Secret Name (Required)
func NewDeleteSecretRequestWithoutParam ¶
func NewDeleteSecretRequestWithoutParam() *DeleteSecretRequest
This constructor has better compatible ability when API parameters changed
func (DeleteSecretRequest) GetRegionId ¶
func (r DeleteSecretRequest) GetRegionId() string
GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string
func (*DeleteSecretRequest) SetName ¶
func (r *DeleteSecretRequest) SetName(name string)
param name: Secret Name(Required)
func (*DeleteSecretRequest) SetRegionId ¶
func (r *DeleteSecretRequest) SetRegionId(regionId string)
param regionId: Region ID(Required)
type DeleteSecretResponse ¶
type DeleteSecretResponse struct { RequestID string `json:"requestId"` Error core.ErrorResponse `json:"error"` Result DeleteSecretResult `json:"result"` }
type DeleteSecretResult ¶
type DeleteSecretResult struct { }
type DescribeContainerRequest ¶ added in v1.11.0
type DescribeContainerRequest struct { core.JDCloudRequest /* Region ID */ RegionId string `json:"regionId"` /* Pod ID */ PodId string `json:"podId"` /* container name */ ContainerName string `json:"containerName"` }
func NewDescribeContainerRequest ¶ added in v1.11.0
func NewDescribeContainerRequest( regionId string, podId string, containerName string, ) *DescribeContainerRequest
* param regionId: Region ID (Required) * param podId: Pod ID (Required) * param containerName: container name (Required) * * @Deprecated, not compatible when mandatory parameters changed
func NewDescribeContainerRequestWithAllParams ¶ added in v1.11.0
func NewDescribeContainerRequestWithAllParams( regionId string, podId string, containerName string, ) *DescribeContainerRequest
* param regionId: Region ID (Required) * param podId: Pod ID (Required) * param containerName: container name (Required)
func NewDescribeContainerRequestWithoutParam ¶ added in v1.11.0
func NewDescribeContainerRequestWithoutParam() *DescribeContainerRequest
This constructor has better compatible ability when API parameters changed
func (DescribeContainerRequest) GetRegionId ¶ added in v1.11.0
func (r DescribeContainerRequest) GetRegionId() string
GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string
func (*DescribeContainerRequest) SetContainerName ¶ added in v1.11.0
func (r *DescribeContainerRequest) SetContainerName(containerName string)
param containerName: container name(Required)
func (*DescribeContainerRequest) SetPodId ¶ added in v1.11.0
func (r *DescribeContainerRequest) SetPodId(podId string)
param podId: Pod ID(Required)
func (*DescribeContainerRequest) SetRegionId ¶ added in v1.11.0
func (r *DescribeContainerRequest) SetRegionId(regionId string)
param regionId: Region ID(Required)
type DescribeContainerResponse ¶ added in v1.11.0
type DescribeContainerResponse struct { RequestID string `json:"requestId"` Error core.ErrorResponse `json:"error"` Result DescribeContainerResult `json:"result"` }
type DescribeContainerResult ¶ added in v1.11.0
type DescribeInstanceTypesRequest ¶ added in v1.11.0
type DescribeInstanceTypesRequest struct { core.JDCloudRequest /* 地域ID */ RegionId string `json:"regionId"` /* instanceTypes - 实例规格,精确匹配,支持多个 az - 可用区,精确匹配,支持多个 (Optional) */ Filters []common.Filter `json:"filters"` }
func NewDescribeInstanceTypesRequest ¶ added in v1.11.0
func NewDescribeInstanceTypesRequest( regionId string, ) *DescribeInstanceTypesRequest
* param regionId: 地域ID (Required) * * @Deprecated, not compatible when mandatory parameters changed
func NewDescribeInstanceTypesRequestWithAllParams ¶ added in v1.11.0
func NewDescribeInstanceTypesRequestWithAllParams( regionId string, filters []common.Filter, ) *DescribeInstanceTypesRequest
- param regionId: 地域ID (Required)
- param filters: instanceTypes - 实例规格,精确匹配,支持多个
az - 可用区,精确匹配,支持多个
(Optional)
func NewDescribeInstanceTypesRequestWithoutParam ¶ added in v1.11.0
func NewDescribeInstanceTypesRequestWithoutParam() *DescribeInstanceTypesRequest
This constructor has better compatible ability when API parameters changed
func (DescribeInstanceTypesRequest) GetRegionId ¶ added in v1.11.0
func (r DescribeInstanceTypesRequest) GetRegionId() string
GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string
func (*DescribeInstanceTypesRequest) SetFilters ¶ added in v1.11.0
func (r *DescribeInstanceTypesRequest) SetFilters(filters []common.Filter)
param filters: instanceTypes - 实例规格,精确匹配,支持多个
az - 可用区,精确匹配,支持多个 (Optional)
func (*DescribeInstanceTypesRequest) SetRegionId ¶ added in v1.11.0
func (r *DescribeInstanceTypesRequest) SetRegionId(regionId string)
param regionId: 地域ID(Required)
type DescribeInstanceTypesResponse ¶ added in v1.11.0
type DescribeInstanceTypesResponse struct { RequestID string `json:"requestId"` Error core.ErrorResponse `json:"error"` Result DescribeInstanceTypesResult `json:"result"` }
type DescribeInstanceTypesResult ¶ added in v1.11.0
type DescribeInstanceTypesResult struct { InstanceTypes []pod.InstanceType `json:"instanceTypes"` SpecificInstanceTypes []pod.InstanceType `json:"specificInstanceTypes"` TotalCount int `json:"totalCount"` }
type DescribePodRequest ¶
type DescribePodRequest struct { core.JDCloudRequest /* Region ID */ RegionId string `json:"regionId"` /* Pod ID */ PodId string `json:"podId"` }
func NewDescribePodRequest ¶
func NewDescribePodRequest( regionId string, podId string, ) *DescribePodRequest
* param regionId: Region ID (Required) * param podId: Pod ID (Required) * * @Deprecated, not compatible when mandatory parameters changed
func NewDescribePodRequestWithAllParams ¶
func NewDescribePodRequestWithAllParams( regionId string, podId string, ) *DescribePodRequest
* param regionId: Region ID (Required) * param podId: Pod ID (Required)
func NewDescribePodRequestWithoutParam ¶
func NewDescribePodRequestWithoutParam() *DescribePodRequest
This constructor has better compatible ability when API parameters changed
func (DescribePodRequest) GetRegionId ¶
func (r DescribePodRequest) GetRegionId() string
GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string
func (*DescribePodRequest) SetPodId ¶
func (r *DescribePodRequest) SetPodId(podId string)
param podId: Pod ID(Required)
func (*DescribePodRequest) SetRegionId ¶
func (r *DescribePodRequest) SetRegionId(regionId string)
param regionId: Region ID(Required)
type DescribePodResponse ¶
type DescribePodResponse struct { RequestID string `json:"requestId"` Error core.ErrorResponse `json:"error"` Result DescribePodResult `json:"result"` }
type DescribePodResult ¶
type DescribePodsRequest ¶
type DescribePodsRequest struct { core.JDCloudRequest /* Region ID */ RegionId string `json:"regionId"` /* 页码;默认为1 (Optional) */ PageNumber *int `json:"pageNumber"` /* 分页大小;默认为20;取值范围[10, 100] (Optional) */ PageSize *int `json:"pageSize"` /* podId - pod ID,精确匹配,支持多个 privateIpAddress - 主网卡IP地址,精确匹配,支持单个 az - 可用区,精确匹配,支持多个 vpcId - 私有网络ID,精确匹配,支持多个 phase - pod 状态,精确匹配,支持多个 name - 实例名称,模糊匹配,支持单个 subnetId - 镜像ID,精确匹配,支持多个 (Optional) */ Filters []common.Filter `json:"filters"` /* Tag筛选条件 (Optional) */ Tags []pod.TagFilter `json:"tags"` }
func NewDescribePodsRequest ¶
func NewDescribePodsRequest( regionId string, ) *DescribePodsRequest
* param regionId: Region ID (Required) * * @Deprecated, not compatible when mandatory parameters changed
func NewDescribePodsRequestWithAllParams ¶
func NewDescribePodsRequestWithAllParams( regionId string, pageNumber *int, pageSize *int, filters []common.Filter, tags []pod.TagFilter, ) *DescribePodsRequest
- param regionId: Region ID (Required)
- param pageNumber: 页码;默认为1 (Optional)
- param pageSize: 分页大小;默认为20;取值范围[10, 100] (Optional)
- param filters: podId - pod ID,精确匹配,支持多个
privateIpAddress - 主网卡IP地址,精确匹配,支持单个 az - 可用区,精确匹配,支持多个 vpcId - 私有网络ID,精确匹配,支持多个 phase - pod 状态,精确匹配,支持多个 name - 实例名称,模糊匹配,支持单个 subnetId - 镜像ID,精确匹配,支持多个
(Optional) * param tags: Tag筛选条件 (Optional)
func NewDescribePodsRequestWithoutParam ¶
func NewDescribePodsRequestWithoutParam() *DescribePodsRequest
This constructor has better compatible ability when API parameters changed
func (DescribePodsRequest) GetRegionId ¶
func (r DescribePodsRequest) GetRegionId() string
GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string
func (*DescribePodsRequest) SetFilters ¶
func (r *DescribePodsRequest) SetFilters(filters []common.Filter)
param filters: podId - pod ID,精确匹配,支持多个
privateIpAddress - 主网卡IP地址,精确匹配,支持单个 az - 可用区,精确匹配,支持多个 vpcId - 私有网络ID,精确匹配,支持多个 phase - pod 状态,精确匹配,支持多个 name - 实例名称,模糊匹配,支持单个 subnetId - 镜像ID,精确匹配,支持多个 (Optional)
func (*DescribePodsRequest) SetPageNumber ¶
func (r *DescribePodsRequest) SetPageNumber(pageNumber int)
param pageNumber: 页码;默认为1(Optional)
func (*DescribePodsRequest) SetPageSize ¶
func (r *DescribePodsRequest) SetPageSize(pageSize int)
param pageSize: 分页大小;默认为20;取值范围[10, 100](Optional)
func (*DescribePodsRequest) SetRegionId ¶
func (r *DescribePodsRequest) SetRegionId(regionId string)
param regionId: Region ID(Required)
func (*DescribePodsRequest) SetTags ¶ added in v1.10.0
func (r *DescribePodsRequest) SetTags(tags []pod.TagFilter)
param tags: Tag筛选条件(Optional)
type DescribePodsResponse ¶
type DescribePodsResponse struct { RequestID string `json:"requestId"` Error core.ErrorResponse `json:"error"` Result DescribePodsResult `json:"result"` }
type DescribePodsResult ¶
type DescribeQuotaRequest ¶
type DescribeQuotaRequest struct { core.JDCloudRequest /* Region ID */ RegionId string `json:"regionId"` /* resourceType - 资源类型,支持 [container, pod, secret] */ ResourceType string `json:"resourceType"` }
func NewDescribeQuotaRequest ¶
func NewDescribeQuotaRequest( regionId string, resourceType string, ) *DescribeQuotaRequest
* param regionId: Region ID (Required) * param resourceType: resourceType - 资源类型,支持 [container, pod, secret] (Required) * * @Deprecated, not compatible when mandatory parameters changed
func NewDescribeQuotaRequestWithAllParams ¶
func NewDescribeQuotaRequestWithAllParams( regionId string, resourceType string, ) *DescribeQuotaRequest
* param regionId: Region ID (Required) * param resourceType: resourceType - 资源类型,支持 [container, pod, secret] (Required)
func NewDescribeQuotaRequestWithoutParam ¶
func NewDescribeQuotaRequestWithoutParam() *DescribeQuotaRequest
This constructor has better compatible ability when API parameters changed
func (DescribeQuotaRequest) GetRegionId ¶
func (r DescribeQuotaRequest) GetRegionId() string
GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string
func (*DescribeQuotaRequest) SetRegionId ¶
func (r *DescribeQuotaRequest) SetRegionId(regionId string)
param regionId: Region ID(Required)
func (*DescribeQuotaRequest) SetResourceType ¶
func (r *DescribeQuotaRequest) SetResourceType(resourceType string)
param resourceType: resourceType - 资源类型,支持 [container, pod, secret]
(Required)
type DescribeQuotaResponse ¶
type DescribeQuotaResponse struct { RequestID string `json:"requestId"` Error core.ErrorResponse `json:"error"` Result DescribeQuotaResult `json:"result"` }
type DescribeQuotaResult ¶
type DescribeSecretRequest ¶
type DescribeSecretRequest struct { core.JDCloudRequest /* Region ID */ RegionId string `json:"regionId"` /* Secret Name */ Name string `json:"name"` }
func NewDescribeSecretRequest ¶
func NewDescribeSecretRequest( regionId string, name string, ) *DescribeSecretRequest
* param regionId: Region ID (Required) * param name: Secret Name (Required) * * @Deprecated, not compatible when mandatory parameters changed
func NewDescribeSecretRequestWithAllParams ¶
func NewDescribeSecretRequestWithAllParams( regionId string, name string, ) *DescribeSecretRequest
* param regionId: Region ID (Required) * param name: Secret Name (Required)
func NewDescribeSecretRequestWithoutParam ¶
func NewDescribeSecretRequestWithoutParam() *DescribeSecretRequest
This constructor has better compatible ability when API parameters changed
func (DescribeSecretRequest) GetRegionId ¶
func (r DescribeSecretRequest) GetRegionId() string
GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string
func (*DescribeSecretRequest) SetName ¶
func (r *DescribeSecretRequest) SetName(name string)
param name: Secret Name(Required)
func (*DescribeSecretRequest) SetRegionId ¶
func (r *DescribeSecretRequest) SetRegionId(regionId string)
param regionId: Region ID(Required)
type DescribeSecretResponse ¶
type DescribeSecretResponse struct { RequestID string `json:"requestId"` Error core.ErrorResponse `json:"error"` Result DescribeSecretResult `json:"result"` }
type DescribeSecretResult ¶
type DescribeSecretsRequest ¶
type DescribeSecretsRequest struct { core.JDCloudRequest /* Region ID */ RegionId string `json:"regionId"` /* 页码;默认为1 (Optional) */ PageNumber *int `json:"pageNumber"` /* 分页大小;默认为20;取值范围[10, 100] (Optional) */ PageSize *int `json:"pageSize"` /* name - secret名称,支持模糊搜索 (Optional) */ Filters []common.Filter `json:"filters"` }
func NewDescribeSecretsRequest ¶
func NewDescribeSecretsRequest( regionId string, ) *DescribeSecretsRequest
* param regionId: Region ID (Required) * * @Deprecated, not compatible when mandatory parameters changed
func NewDescribeSecretsRequestWithAllParams ¶
func NewDescribeSecretsRequestWithAllParams( regionId string, pageNumber *int, pageSize *int, filters []common.Filter, ) *DescribeSecretsRequest
* param regionId: Region ID (Required) * param pageNumber: 页码;默认为1 (Optional) * param pageSize: 分页大小;默认为20;取值范围[10, 100] (Optional) * param filters: name - secret名称,支持模糊搜索 (Optional)
func NewDescribeSecretsRequestWithoutParam ¶
func NewDescribeSecretsRequestWithoutParam() *DescribeSecretsRequest
This constructor has better compatible ability when API parameters changed
func (DescribeSecretsRequest) GetRegionId ¶
func (r DescribeSecretsRequest) GetRegionId() string
GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string
func (*DescribeSecretsRequest) SetFilters ¶
func (r *DescribeSecretsRequest) SetFilters(filters []common.Filter)
param filters: name - secret名称,支持模糊搜索
(Optional)
func (*DescribeSecretsRequest) SetPageNumber ¶
func (r *DescribeSecretsRequest) SetPageNumber(pageNumber int)
param pageNumber: 页码;默认为1(Optional)
func (*DescribeSecretsRequest) SetPageSize ¶
func (r *DescribeSecretsRequest) SetPageSize(pageSize int)
param pageSize: 分页大小;默认为20;取值范围[10, 100](Optional)
func (*DescribeSecretsRequest) SetRegionId ¶
func (r *DescribeSecretsRequest) SetRegionId(regionId string)
param regionId: Region ID(Required)
type DescribeSecretsResponse ¶
type DescribeSecretsResponse struct { RequestID string `json:"requestId"` Error core.ErrorResponse `json:"error"` Result DescribeSecretsResult `json:"result"` }
type DescribeSecretsResult ¶
type DisassociateElasticIpRequest ¶
type DisassociateElasticIpRequest struct { core.JDCloudRequest /* Region ID */ RegionId string `json:"regionId"` /* Pod ID */ PodId string `json:"podId"` /* 弹性IP ID */ ElasticIpId string `json:"elasticIpId"` }
func NewDisassociateElasticIpRequest ¶
func NewDisassociateElasticIpRequest( regionId string, podId string, elasticIpId string, ) *DisassociateElasticIpRequest
* param regionId: Region ID (Required) * param podId: Pod ID (Required) * param elasticIpId: 弹性IP ID (Required) * * @Deprecated, not compatible when mandatory parameters changed
func NewDisassociateElasticIpRequestWithAllParams ¶
func NewDisassociateElasticIpRequestWithAllParams( regionId string, podId string, elasticIpId string, ) *DisassociateElasticIpRequest
* param regionId: Region ID (Required) * param podId: Pod ID (Required) * param elasticIpId: 弹性IP ID (Required)
func NewDisassociateElasticIpRequestWithoutParam ¶
func NewDisassociateElasticIpRequestWithoutParam() *DisassociateElasticIpRequest
This constructor has better compatible ability when API parameters changed
func (DisassociateElasticIpRequest) GetRegionId ¶
func (r DisassociateElasticIpRequest) GetRegionId() string
GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string
func (*DisassociateElasticIpRequest) SetElasticIpId ¶
func (r *DisassociateElasticIpRequest) SetElasticIpId(elasticIpId string)
param elasticIpId: 弹性IP ID(Required)
func (*DisassociateElasticIpRequest) SetPodId ¶
func (r *DisassociateElasticIpRequest) SetPodId(podId string)
param podId: Pod ID(Required)
func (*DisassociateElasticIpRequest) SetRegionId ¶
func (r *DisassociateElasticIpRequest) SetRegionId(regionId string)
param regionId: Region ID(Required)
type DisassociateElasticIpResponse ¶
type DisassociateElasticIpResponse struct { RequestID string `json:"requestId"` Error core.ErrorResponse `json:"error"` Result DisassociateElasticIpResult `json:"result"` }
type DisassociateElasticIpResult ¶
type DisassociateElasticIpResult struct { }
type ExecCreateRequest ¶
type ExecCreateRequest struct { core.JDCloudRequest /* Region ID */ RegionId string `json:"regionId"` /* Pod ID */ PodId string `json:"podId"` /* container name */ ContainerName string `json:"containerName"` /* 执行的命令 */ Command []string `json:"command"` /* 执行命令是否分配tty。默认不分配 (Optional) */ Tty *bool `json:"tty"` }
func NewExecCreateRequest ¶
func NewExecCreateRequest( regionId string, podId string, containerName string, command []string, ) *ExecCreateRequest
* param regionId: Region ID (Required) * param podId: Pod ID (Required) * param containerName: container name (Required) * param command: 执行的命令 (Required) * * @Deprecated, not compatible when mandatory parameters changed
func NewExecCreateRequestWithAllParams ¶
func NewExecCreateRequestWithAllParams( regionId string, podId string, containerName string, command []string, tty *bool, ) *ExecCreateRequest
* param regionId: Region ID (Required) * param podId: Pod ID (Required) * param containerName: container name (Required) * param command: 执行的命令 (Required) * param tty: 执行命令是否分配tty。默认不分配 (Optional)
func NewExecCreateRequestWithoutParam ¶
func NewExecCreateRequestWithoutParam() *ExecCreateRequest
This constructor has better compatible ability when API parameters changed
func (ExecCreateRequest) GetRegionId ¶
func (r ExecCreateRequest) GetRegionId() string
GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string
func (*ExecCreateRequest) SetCommand ¶
func (r *ExecCreateRequest) SetCommand(command []string)
param command: 执行的命令(Required)
func (*ExecCreateRequest) SetContainerName ¶
func (r *ExecCreateRequest) SetContainerName(containerName string)
param containerName: container name(Required)
func (*ExecCreateRequest) SetPodId ¶
func (r *ExecCreateRequest) SetPodId(podId string)
param podId: Pod ID(Required)
func (*ExecCreateRequest) SetRegionId ¶
func (r *ExecCreateRequest) SetRegionId(regionId string)
param regionId: Region ID(Required)
func (*ExecCreateRequest) SetTty ¶
func (r *ExecCreateRequest) SetTty(tty bool)
param tty: 执行命令是否分配tty。默认不分配(Optional)
type ExecCreateResponse ¶
type ExecCreateResponse struct { RequestID string `json:"requestId"` Error core.ErrorResponse `json:"error"` Result ExecCreateResult `json:"result"` }
type ExecCreateResult ¶
type ExecCreateResult struct {
ExecId string `json:"execId"`
}
type ExecGetExitCodeRequest ¶
type ExecGetExitCodeRequest struct { core.JDCloudRequest /* Region ID */ RegionId string `json:"regionId"` /* Pod ID */ PodId string `json:"podId"` /* container name */ ContainerName string `json:"containerName"` /* */ ExecId string `json:"execId"` }
func NewExecGetExitCodeRequest ¶
func NewExecGetExitCodeRequest( regionId string, podId string, containerName string, execId string, ) *ExecGetExitCodeRequest
* param regionId: Region ID (Required) * param podId: Pod ID (Required) * param containerName: container name (Required) * param execId: (Required) * * @Deprecated, not compatible when mandatory parameters changed
func NewExecGetExitCodeRequestWithAllParams ¶
func NewExecGetExitCodeRequestWithAllParams( regionId string, podId string, containerName string, execId string, ) *ExecGetExitCodeRequest
* param regionId: Region ID (Required) * param podId: Pod ID (Required) * param containerName: container name (Required) * param execId: (Required)
func NewExecGetExitCodeRequestWithoutParam ¶
func NewExecGetExitCodeRequestWithoutParam() *ExecGetExitCodeRequest
This constructor has better compatible ability when API parameters changed
func (ExecGetExitCodeRequest) GetRegionId ¶
func (r ExecGetExitCodeRequest) GetRegionId() string
GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string
func (*ExecGetExitCodeRequest) SetContainerName ¶
func (r *ExecGetExitCodeRequest) SetContainerName(containerName string)
param containerName: container name(Required)
func (*ExecGetExitCodeRequest) SetExecId ¶
func (r *ExecGetExitCodeRequest) SetExecId(execId string)
param execId: (Required)
func (*ExecGetExitCodeRequest) SetPodId ¶
func (r *ExecGetExitCodeRequest) SetPodId(podId string)
param podId: Pod ID(Required)
func (*ExecGetExitCodeRequest) SetRegionId ¶
func (r *ExecGetExitCodeRequest) SetRegionId(regionId string)
param regionId: Region ID(Required)
type ExecGetExitCodeResponse ¶
type ExecGetExitCodeResponse struct { RequestID string `json:"requestId"` Error core.ErrorResponse `json:"error"` Result ExecGetExitCodeResult `json:"result"` }
type ExecGetExitCodeResult ¶
type ExecGetExitCodeResult struct {
ExecCode int `json:"execCode"`
}
type ExecStartRequest ¶
type ExecStartRequest struct { core.JDCloudRequest /* Region ID */ RegionId string `json:"regionId"` /* Pod ID */ PodId string `json:"podId"` /* container name */ ContainerName string `json:"containerName"` /* */ ExecId string `json:"execId"` }
func NewExecStartRequest ¶
func NewExecStartRequest( regionId string, podId string, containerName string, execId string, ) *ExecStartRequest
* param regionId: Region ID (Required) * param podId: Pod ID (Required) * param containerName: container name (Required) * param execId: (Required) * * @Deprecated, not compatible when mandatory parameters changed
func NewExecStartRequestWithAllParams ¶
func NewExecStartRequestWithAllParams( regionId string, podId string, containerName string, execId string, ) *ExecStartRequest
* param regionId: Region ID (Required) * param podId: Pod ID (Required) * param containerName: container name (Required) * param execId: (Required)
func NewExecStartRequestWithoutParam ¶
func NewExecStartRequestWithoutParam() *ExecStartRequest
This constructor has better compatible ability when API parameters changed
func (ExecStartRequest) GetRegionId ¶
func (r ExecStartRequest) GetRegionId() string
GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string
func (*ExecStartRequest) SetContainerName ¶
func (r *ExecStartRequest) SetContainerName(containerName string)
param containerName: container name(Required)
func (*ExecStartRequest) SetExecId ¶
func (r *ExecStartRequest) SetExecId(execId string)
param execId: (Required)
func (*ExecStartRequest) SetPodId ¶
func (r *ExecStartRequest) SetPodId(podId string)
param podId: Pod ID(Required)
func (*ExecStartRequest) SetRegionId ¶
func (r *ExecStartRequest) SetRegionId(regionId string)
param regionId: Region ID(Required)
type ExecStartResponse ¶
type ExecStartResponse struct { RequestID string `json:"requestId"` Error core.ErrorResponse `json:"error"` Result ExecStartResult `json:"result"` }
type ExecStartResult ¶
type ExecStartResult struct { }
type GetContainerLogsRequest ¶
type GetContainerLogsRequest struct { core.JDCloudRequest /* Region ID */ RegionId string `json:"regionId"` /* Pod ID */ PodId string `json:"podId"` /* container name */ ContainerName string `json:"containerName"` /* 返回日志文件中倒数 tailLines 行,如不指定,默认从容器启动时或 sinceSeconds 指定的时间读取。 (Optional) */ TailLines *int `json:"tailLines"` /* 返回相对于当前时间之前sinceSeconds之内的日志。 (Optional) */ SinceSeconds *int `json:"sinceSeconds"` /* 限制返回的日志文件内容字节数,取值范围 [1-4]KB,最大 4KB. (Optional) */ LimitBytes *int `json:"limitBytes"` /* 日志时间上限,不传表示不限时间 (Optional) */ StartTime *string `json:"startTime"` /* 日志时间下限,不传表示不限时间 (Optional) */ EndTime *string `json:"endTime"` }
func NewGetContainerLogsRequest ¶
func NewGetContainerLogsRequest( regionId string, podId string, containerName string, ) *GetContainerLogsRequest
* param regionId: Region ID (Required) * param podId: Pod ID (Required) * param containerName: container name (Required) * * @Deprecated, not compatible when mandatory parameters changed
func NewGetContainerLogsRequestWithAllParams ¶
func NewGetContainerLogsRequestWithAllParams( regionId string, podId string, containerName string, tailLines *int, sinceSeconds *int, limitBytes *int, startTime *string, endTime *string, ) *GetContainerLogsRequest
* param regionId: Region ID (Required) * param podId: Pod ID (Required) * param containerName: container name (Required) * param tailLines: 返回日志文件中倒数 tailLines 行,如不指定,默认从容器启动时或 sinceSeconds 指定的时间读取。 (Optional) * param sinceSeconds: 返回相对于当前时间之前sinceSeconds之内的日志。 (Optional) * param limitBytes: 限制返回的日志文件内容字节数,取值范围 [1-4]KB,最大 4KB. (Optional) * param startTime: 日志时间上限,不传表示不限时间 (Optional) * param endTime: 日志时间下限,不传表示不限时间 (Optional)
func NewGetContainerLogsRequestWithoutParam ¶
func NewGetContainerLogsRequestWithoutParam() *GetContainerLogsRequest
This constructor has better compatible ability when API parameters changed
func (GetContainerLogsRequest) GetRegionId ¶
func (r GetContainerLogsRequest) GetRegionId() string
GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string
func (*GetContainerLogsRequest) SetContainerName ¶
func (r *GetContainerLogsRequest) SetContainerName(containerName string)
param containerName: container name(Required)
func (*GetContainerLogsRequest) SetEndTime ¶
func (r *GetContainerLogsRequest) SetEndTime(endTime string)
param endTime: 日志时间下限,不传表示不限时间
(Optional)
func (*GetContainerLogsRequest) SetLimitBytes ¶
func (r *GetContainerLogsRequest) SetLimitBytes(limitBytes int)
param limitBytes: 限制返回的日志文件内容字节数,取值范围 [1-4]KB,最大 4KB.
(Optional)
func (*GetContainerLogsRequest) SetPodId ¶
func (r *GetContainerLogsRequest) SetPodId(podId string)
param podId: Pod ID(Required)
func (*GetContainerLogsRequest) SetRegionId ¶
func (r *GetContainerLogsRequest) SetRegionId(regionId string)
param regionId: Region ID(Required)
func (*GetContainerLogsRequest) SetSinceSeconds ¶
func (r *GetContainerLogsRequest) SetSinceSeconds(sinceSeconds int)
param sinceSeconds: 返回相对于当前时间之前sinceSeconds之内的日志。
(Optional)
func (*GetContainerLogsRequest) SetStartTime ¶
func (r *GetContainerLogsRequest) SetStartTime(startTime string)
param startTime: 日志时间上限,不传表示不限时间
(Optional)
func (*GetContainerLogsRequest) SetTailLines ¶
func (r *GetContainerLogsRequest) SetTailLines(tailLines int)
param tailLines: 返回日志文件中倒数 tailLines 行,如不指定,默认从容器启动时或 sinceSeconds 指定的时间读取。
(Optional)
type GetContainerLogsResponse ¶
type GetContainerLogsResponse struct { RequestID string `json:"requestId"` Error core.ErrorResponse `json:"error"` Result GetContainerLogsResult `json:"result"` }
type GetContainerLogsResult ¶
type ModifyPodAttributeRequest ¶
type ModifyPodAttributeRequest struct { core.JDCloudRequest /* Region ID */ RegionId string `json:"regionId"` /* Pod ID */ PodId string `json:"podId"` /* 修改后的描述 (Optional) */ Description *string `json:"description"` }
func NewModifyPodAttributeRequest ¶
func NewModifyPodAttributeRequest( regionId string, podId string, ) *ModifyPodAttributeRequest
* param regionId: Region ID (Required) * param podId: Pod ID (Required) * * @Deprecated, not compatible when mandatory parameters changed
func NewModifyPodAttributeRequestWithAllParams ¶
func NewModifyPodAttributeRequestWithAllParams( regionId string, podId string, description *string, ) *ModifyPodAttributeRequest
* param regionId: Region ID (Required) * param podId: Pod ID (Required) * param description: 修改后的描述 (Optional)
func NewModifyPodAttributeRequestWithoutParam ¶
func NewModifyPodAttributeRequestWithoutParam() *ModifyPodAttributeRequest
This constructor has better compatible ability when API parameters changed
func (ModifyPodAttributeRequest) GetRegionId ¶
func (r ModifyPodAttributeRequest) GetRegionId() string
GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string
func (*ModifyPodAttributeRequest) SetDescription ¶
func (r *ModifyPodAttributeRequest) SetDescription(description string)
param description: 修改后的描述(Optional)
func (*ModifyPodAttributeRequest) SetPodId ¶
func (r *ModifyPodAttributeRequest) SetPodId(podId string)
param podId: Pod ID(Required)
func (*ModifyPodAttributeRequest) SetRegionId ¶
func (r *ModifyPodAttributeRequest) SetRegionId(regionId string)
param regionId: Region ID(Required)
type ModifyPodAttributeResponse ¶
type ModifyPodAttributeResponse struct { RequestID string `json:"requestId"` Error core.ErrorResponse `json:"error"` Result ModifyPodAttributeResult `json:"result"` }
type ModifyPodAttributeResult ¶
type ModifyPodAttributeResult struct { }
type RebuildPodRequest ¶ added in v1.10.0
type RebuildPodRequest struct { core.JDCloudRequest /* Region ID */ RegionId string `json:"regionId"` /* Pod ID */ PodId string `json:"podId"` /* 重置容器相关参数 */ Containers []pod.RebuildContainerSpec `json:"containers"` }
func NewRebuildPodRequest ¶ added in v1.10.0
func NewRebuildPodRequest( regionId string, podId string, containers []pod.RebuildContainerSpec, ) *RebuildPodRequest
* param regionId: Region ID (Required) * param podId: Pod ID (Required) * param containers: 重置容器相关参数 (Required) * * @Deprecated, not compatible when mandatory parameters changed
func NewRebuildPodRequestWithAllParams ¶ added in v1.10.0
func NewRebuildPodRequestWithAllParams( regionId string, podId string, containers []pod.RebuildContainerSpec, ) *RebuildPodRequest
* param regionId: Region ID (Required) * param podId: Pod ID (Required) * param containers: 重置容器相关参数 (Required)
func NewRebuildPodRequestWithoutParam ¶ added in v1.10.0
func NewRebuildPodRequestWithoutParam() *RebuildPodRequest
This constructor has better compatible ability when API parameters changed
func (RebuildPodRequest) GetRegionId ¶ added in v1.10.0
func (r RebuildPodRequest) GetRegionId() string
GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string
func (*RebuildPodRequest) SetContainers ¶ added in v1.10.0
func (r *RebuildPodRequest) SetContainers(containers []pod.RebuildContainerSpec)
param containers: 重置容器相关参数(Required)
func (*RebuildPodRequest) SetPodId ¶ added in v1.10.0
func (r *RebuildPodRequest) SetPodId(podId string)
param podId: Pod ID(Required)
func (*RebuildPodRequest) SetRegionId ¶ added in v1.10.0
func (r *RebuildPodRequest) SetRegionId(regionId string)
param regionId: Region ID(Required)
type RebuildPodResponse ¶ added in v1.10.0
type RebuildPodResponse struct { RequestID string `json:"requestId"` Error core.ErrorResponse `json:"error"` Result RebuildPodResult `json:"result"` }
type RebuildPodResult ¶ added in v1.10.0
type RebuildPodResult struct { }
type ResizePodRequest ¶ added in v1.13.0
type ResizePodRequest struct { core.JDCloudRequest /* Region ID */ RegionId string `json:"regionId"` /* Pod ID */ PodId string `json:"podId"` /* 新实例类型,不可与原实例类型相同 */ InstanceType string `json:"instanceType"` /* 新实例类型,不可与原实例类型相同 (Optional) */ ContainerResources []pod.ContainerResourceSpec `json:"containerResources"` }
func NewResizePodRequest ¶ added in v1.13.0
func NewResizePodRequest( regionId string, podId string, instanceType string, ) *ResizePodRequest
* param regionId: Region ID (Required) * param podId: Pod ID (Required) * param instanceType: 新实例类型,不可与原实例类型相同 (Required) * * @Deprecated, not compatible when mandatory parameters changed
func NewResizePodRequestWithAllParams ¶ added in v1.13.0
func NewResizePodRequestWithAllParams( regionId string, podId string, instanceType string, containerResources []pod.ContainerResourceSpec, ) *ResizePodRequest
* param regionId: Region ID (Required) * param podId: Pod ID (Required) * param instanceType: 新实例类型,不可与原实例类型相同 (Required) * param containerResources: 新实例类型,不可与原实例类型相同 (Optional)
func NewResizePodRequestWithoutParam ¶ added in v1.13.0
func NewResizePodRequestWithoutParam() *ResizePodRequest
This constructor has better compatible ability when API parameters changed
func (ResizePodRequest) GetRegionId ¶ added in v1.13.0
func (r ResizePodRequest) GetRegionId() string
GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string
func (*ResizePodRequest) SetContainerResources ¶ added in v1.13.0
func (r *ResizePodRequest) SetContainerResources(containerResources []pod.ContainerResourceSpec)
param containerResources: 新实例类型,不可与原实例类型相同(Optional)
func (*ResizePodRequest) SetInstanceType ¶ added in v1.13.0
func (r *ResizePodRequest) SetInstanceType(instanceType string)
param instanceType: 新实例类型,不可与原实例类型相同(Required)
func (*ResizePodRequest) SetPodId ¶ added in v1.13.0
func (r *ResizePodRequest) SetPodId(podId string)
param podId: Pod ID(Required)
func (*ResizePodRequest) SetRegionId ¶ added in v1.13.0
func (r *ResizePodRequest) SetRegionId(regionId string)
param regionId: Region ID(Required)
type ResizePodResponse ¶ added in v1.13.0
type ResizePodResponse struct { RequestID string `json:"requestId"` Error core.ErrorResponse `json:"error"` Result ResizePodResult `json:"result"` }
type ResizePodResult ¶ added in v1.13.0
type ResizePodResult struct { }
type ResizeTTYRequest ¶
type ResizeTTYRequest struct { core.JDCloudRequest /* Region ID */ RegionId string `json:"regionId"` /* Pod ID */ PodId string `json:"podId"` /* container name */ ContainerName string `json:"containerName"` /* tty row,取值范围:[10, 2000] */ Height int `json:"height"` /* tty column,取值范围:[10, 1000] */ Width int `json:"width"` /* exec ID (Optional) */ ExecId *string `json:"execId"` }
func NewResizeTTYRequest ¶
func NewResizeTTYRequest( regionId string, podId string, containerName string, height int, width int, ) *ResizeTTYRequest
* param regionId: Region ID (Required) * param podId: Pod ID (Required) * param containerName: container name (Required) * param height: tty row,取值范围:[10, 2000] (Required) * param width: tty column,取值范围:[10, 1000] (Required) * * @Deprecated, not compatible when mandatory parameters changed
func NewResizeTTYRequestWithAllParams ¶
func NewResizeTTYRequestWithAllParams( regionId string, podId string, containerName string, height int, width int, execId *string, ) *ResizeTTYRequest
* param regionId: Region ID (Required) * param podId: Pod ID (Required) * param containerName: container name (Required) * param height: tty row,取值范围:[10, 2000] (Required) * param width: tty column,取值范围:[10, 1000] (Required) * param execId: exec ID (Optional)
func NewResizeTTYRequestWithoutParam ¶
func NewResizeTTYRequestWithoutParam() *ResizeTTYRequest
This constructor has better compatible ability when API parameters changed
func (ResizeTTYRequest) GetRegionId ¶
func (r ResizeTTYRequest) GetRegionId() string
GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string
func (*ResizeTTYRequest) SetContainerName ¶
func (r *ResizeTTYRequest) SetContainerName(containerName string)
param containerName: container name(Required)
func (*ResizeTTYRequest) SetExecId ¶
func (r *ResizeTTYRequest) SetExecId(execId string)
param execId: exec ID(Optional)
func (*ResizeTTYRequest) SetHeight ¶
func (r *ResizeTTYRequest) SetHeight(height int)
param height: tty row,取值范围:[10, 2000](Required)
func (*ResizeTTYRequest) SetPodId ¶
func (r *ResizeTTYRequest) SetPodId(podId string)
param podId: Pod ID(Required)
func (*ResizeTTYRequest) SetRegionId ¶
func (r *ResizeTTYRequest) SetRegionId(regionId string)
param regionId: Region ID(Required)
func (*ResizeTTYRequest) SetWidth ¶
func (r *ResizeTTYRequest) SetWidth(width int)
param width: tty column,取值范围:[10, 1000](Required)
type ResizeTTYResponse ¶
type ResizeTTYResponse struct { RequestID string `json:"requestId"` Error core.ErrorResponse `json:"error"` Result ResizeTTYResult `json:"result"` }
type ResizeTTYResult ¶
type ResizeTTYResult struct { }
type StartPodRequest ¶
type StartPodRequest struct { core.JDCloudRequest /* Region ID */ RegionId string `json:"regionId"` /* Pod ID */ PodId string `json:"podId"` }
func NewStartPodRequest ¶
func NewStartPodRequest( regionId string, podId string, ) *StartPodRequest
* param regionId: Region ID (Required) * param podId: Pod ID (Required) * * @Deprecated, not compatible when mandatory parameters changed
func NewStartPodRequestWithAllParams ¶
func NewStartPodRequestWithAllParams( regionId string, podId string, ) *StartPodRequest
* param regionId: Region ID (Required) * param podId: Pod ID (Required)
func NewStartPodRequestWithoutParam ¶
func NewStartPodRequestWithoutParam() *StartPodRequest
This constructor has better compatible ability when API parameters changed
func (StartPodRequest) GetRegionId ¶
func (r StartPodRequest) GetRegionId() string
GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string
func (*StartPodRequest) SetPodId ¶
func (r *StartPodRequest) SetPodId(podId string)
param podId: Pod ID(Required)
func (*StartPodRequest) SetRegionId ¶
func (r *StartPodRequest) SetRegionId(regionId string)
param regionId: Region ID(Required)
type StartPodResponse ¶
type StartPodResponse struct { RequestID string `json:"requestId"` Error core.ErrorResponse `json:"error"` Result StartPodResult `json:"result"` }
type StartPodResult ¶
type StartPodResult struct { }
type StopPodRequest ¶
type StopPodRequest struct { core.JDCloudRequest /* Region ID */ RegionId string `json:"regionId"` /* Pod ID */ PodId string `json:"podId"` }
func NewStopPodRequest ¶
func NewStopPodRequest( regionId string, podId string, ) *StopPodRequest
* param regionId: Region ID (Required) * param podId: Pod ID (Required) * * @Deprecated, not compatible when mandatory parameters changed
func NewStopPodRequestWithAllParams ¶
func NewStopPodRequestWithAllParams( regionId string, podId string, ) *StopPodRequest
* param regionId: Region ID (Required) * param podId: Pod ID (Required)
func NewStopPodRequestWithoutParam ¶
func NewStopPodRequestWithoutParam() *StopPodRequest
This constructor has better compatible ability when API parameters changed
func (StopPodRequest) GetRegionId ¶
func (r StopPodRequest) GetRegionId() string
GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string
func (*StopPodRequest) SetPodId ¶
func (r *StopPodRequest) SetPodId(podId string)
param podId: Pod ID(Required)
func (*StopPodRequest) SetRegionId ¶
func (r *StopPodRequest) SetRegionId(regionId string)
param regionId: Region ID(Required)
type StopPodResponse ¶
type StopPodResponse struct { RequestID string `json:"requestId"` Error core.ErrorResponse `json:"error"` Result StopPodResult `json:"result"` }
type StopPodResult ¶
type StopPodResult struct { }
Source Files ¶
- AssociateElasticIp.go
- Attach.go
- CheckPodName.go
- CreatePods.go
- CreateSecret.go
- DeletePod.go
- DeleteSecret.go
- DescribeContainer.go
- DescribeInstanceTypes.go
- DescribePod.go
- DescribePods.go
- DescribeQuota.go
- DescribeSecret.go
- DescribeSecrets.go
- DisassociateElasticIp.go
- ExecCreate.go
- ExecGetExitCode.go
- ExecStart.go
- GetContainerLogs.go
- ModifyPodAttribute.go
- RebuildPod.go
- ResizePod.go
- ResizeTTY.go
- StartPod.go
- StopPod.go