Documentation
¶
Index ¶
- type Client
- func NewClient() (client *Client, err error)
- func NewClientWithAccessKey(regionId, accessKeyId, accessKeySecret string) (client *Client, err error)
- func NewClientWithEcsRamRole(regionId string, roleName string) (client *Client, err error)
- func NewClientWithOptions(regionId string, config *sdk.Config, credential auth.Credential) (client *Client, err error)
- func NewClientWithProvider(regionId string, providers ...provider.Provider) (client *Client, err error)
- func NewClientWithRamRoleArn(regionId string, accessKeyId, accessKeySecret, roleArn, roleSessionName string) (client *Client, err error)
- func NewClientWithRamRoleArnAndPolicy(regionId string, ...) (client *Client, err error)
- func NewClientWithRsaKeyPair(regionId string, publicKeyId, privateKey string, sessionExpiration int) (client *Client, err error)
- func NewClientWithStsToken(regionId, stsAccessKeyId, stsAccessKeySecret, stsToken string) (client *Client, err error)
- type CreateContainerGroupArn
- type CreateContainerGroupConfigFileToPath
- type CreateContainerGroupConfigFileVolume
- type CreateContainerGroupContainer
- type CreateContainerGroupDiskVolume
- type CreateContainerGroupDnsConfig
- type CreateContainerGroupEmptyDirVolume
- type CreateContainerGroupEnvironmentVar
- type CreateContainerGroupExec
- type CreateContainerGroupFieldRef
- type CreateContainerGroupFlexVolume
- type CreateContainerGroupHostAliase
- type CreateContainerGroupHostPathVolume
- type CreateContainerGroupHttpGet
- type CreateContainerGroupImageRegistryCredential
- type CreateContainerGroupInitContainer
- type CreateContainerGroupLifecyclePostStartHandlerHttpGetHttpHeader
- type CreateContainerGroupLifecyclePreStopHandlerHttpGetHttpHeader
- type CreateContainerGroupLivenessProbe
- type CreateContainerGroupNFSVolume
- type CreateContainerGroupOption
- type CreateContainerGroupPort
- type CreateContainerGroupReadinessProbe
- type CreateContainerGroupRequest
- type CreateContainerGroupResponse
- type CreateContainerGroupSecurityContext
- type CreateContainerGroupSysctl
- type CreateContainerGroupTag
- type CreateContainerGroupTcpSocket
- type CreateContainerGroupVolume
- type CreateContainerGroupVolumeMount
- type DeleteContainerGroupRequest
- type DeleteContainerGroupResponse
- type DescribeContainerGroupsCapability3
- type DescribeContainerGroupsConfigFileVolumeConfigFileToPath2
- type DescribeContainerGroupsContainer1
- type DescribeContainerGroupsContainerGroup0
- type DescribeContainerGroupsCurrentState2
- type DescribeContainerGroupsDnsConfig1
- type DescribeContainerGroupsEciSecurityContext1
- type DescribeContainerGroupsEnvironmentVar2
- type DescribeContainerGroupsEvent1
- type DescribeContainerGroupsFieldRef4
- type DescribeContainerGroupsHostAliase1
- type DescribeContainerGroupsHttpGet3
- type DescribeContainerGroupsLabel1
- type DescribeContainerGroupsLivenessProbe2
- type DescribeContainerGroupsOption2
- type DescribeContainerGroupsPort2
- type DescribeContainerGroupsPreviousState2
- type DescribeContainerGroupsReadinessProbe2
- type DescribeContainerGroupsRequest
- type DescribeContainerGroupsResponse
- type DescribeContainerGroupsSecurityContext2
- type DescribeContainerGroupsSysctl2
- type DescribeContainerGroupsTag
- type DescribeContainerGroupsTcpSocket3
- type DescribeContainerGroupsValueFrom3
- type DescribeContainerGroupsVolume1
- type DescribeContainerGroupsVolumeMount2
- type UpdateContainerGroupCapability
- type UpdateContainerGroupConfigFileToPath
- type UpdateContainerGroupConfigFileVolume
- type UpdateContainerGroupContainer
- type UpdateContainerGroupDnsConfig
- type UpdateContainerGroupEmptyDirVolume
- type UpdateContainerGroupEnvironmentVar
- type UpdateContainerGroupExec
- type UpdateContainerGroupHttpGet
- type UpdateContainerGroupImageRegistryCredential
- type UpdateContainerGroupInitContainer
- type UpdateContainerGroupLivenessProbe
- type UpdateContainerGroupNFSVolume
- type UpdateContainerGroupOption
- type UpdateContainerGroupPort
- type UpdateContainerGroupReadinessProbe
- type UpdateContainerGroupRequest
- type UpdateContainerGroupResponse
- type UpdateContainerGroupSecurityContext
- type UpdateContainerGroupTag
- type UpdateContainerGroupTcpSocket
- type UpdateContainerGroupVolume
- type UpdateContainerGroupVolumeMount
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
Client is the sdk client struct, each func corresponds to an OpenAPI
func NewClient ¶
NewClient creates a sdk client with environment variables
func NewClientWithAccessKey ¶
func NewClientWithAccessKey(regionId, accessKeyId, accessKeySecret string) (client *Client, err error)
NewClientWithAccessKey is a shortcut to create sdk client with accesskey usage: https://github.com/aliyun/alibaba-cloud-sdk-go/blob/master/docs/2-Client-EN.md
func NewClientWithEcsRamRole ¶
NewClientWithEcsRamRole is a shortcut to create sdk client with ecs ram role usage: https://github.com/aliyun/alibaba-cloud-sdk-go/blob/master/docs/2-Client-EN.md
func NewClientWithOptions ¶
func NewClientWithOptions(regionId string, config *sdk.Config, credential auth.Credential) (client *Client, err error)
NewClientWithOptions creates a sdk client with regionId/sdkConfig/credential this is the common api to create a sdk client
func NewClientWithProvider ¶
func NewClientWithProvider(regionId string, providers ...provider.Provider) (client *Client, err error)
NewClientWithProvider creates a sdk client with providers usage: https://github.com/aliyun/alibaba-cloud-sdk-go/blob/master/docs/2-Client-EN.md
func NewClientWithRamRoleArn ¶
func NewClientWithRamRoleArn(regionId string, accessKeyId, accessKeySecret, roleArn, roleSessionName string) (client *Client, err error)
NewClientWithRamRoleArn is a shortcut to create sdk client with ram roleArn usage: https://github.com/aliyun/alibaba-cloud-sdk-go/blob/master/docs/2-Client-EN.md
func NewClientWithRamRoleArnAndPolicy ¶
func NewClientWithRamRoleArnAndPolicy(regionId string, accessKeyId, accessKeySecret, roleArn, roleSessionName, policy string) (client *Client, err error)
NewClientWithRamRoleArn is a shortcut to create sdk client with ram roleArn and policy usage: https://github.com/aliyun/alibaba-cloud-sdk-go/blob/master/docs/2-Client-EN.md
func NewClientWithRsaKeyPair ¶
func NewClientWithRsaKeyPair(regionId string, publicKeyId, privateKey string, sessionExpiration int) (client *Client, err error)
NewClientWithRsaKeyPair is a shortcut to create sdk client with rsa key pair usage: https://github.com/aliyun/alibaba-cloud-sdk-go/blob/master/docs/2-Client-EN.md
func NewClientWithStsToken ¶
func NewClientWithStsToken(regionId, stsAccessKeyId, stsAccessKeySecret, stsToken string) (client *Client, err error)
NewClientWithStsToken is a shortcut to create sdk client with sts token usage: https://github.com/aliyun/alibaba-cloud-sdk-go/blob/master/docs/2-Client-EN.md
type CreateContainerGroupArn ¶
type CreateContainerGroupConfigFileToPath ¶
type CreateContainerGroupConfigFileVolume ¶
type CreateContainerGroupConfigFileVolume struct {
ConfigFileToPath *[]CreateContainerGroupConfigFileToPath `name:"ConfigFileToPath"`
DefaultModel requests.Integer `name:"DefaultModel"`
}
type CreateContainerGroupContainer ¶
type CreateContainerGroupContainer struct {
Image string `name:"Image"`
Name string `name:"Name"`
Cpu requests.Float `name:"Cpu"`
Memory requests.Float `name:"Memory"`
WorkingDir string `name:"WorkingDir"`
ImagePullPolicy string `name:"ImagePullPolicy"`
Command []string `name:"Command" type:"Repeated"`
Arg []string `name:"Arg" type:"Repeated"`
VolumeMount *[]CreateContainerGroupVolumeMount `name:"VolumeMount" type:"Repeated"`
Port *[]CreateContainerGroupPort `name:"Port" type:"Repeated"`
EnvironmentVar *[]CreateContainerGroupEnvironmentVar `name:"EnvironmentVar" type:"Repeated"`
Stdin requests.Boolean `name:"Stdin"`
StdinOnce requests.Boolean `name:"StdinOnce"`
Tty requests.Boolean `name:"Tty"`
Gpu requests.Integer `name:"Gpu"`
LifecyclePostStartHandlerHttpGetHost string `name:"LifecyclePostStartHandlerHttpGetHost"`
LifecyclePostStartHandlerHttpGetPort requests.Integer `name:"LifecyclePostStartHandlerHttpGetPort"`
LifecyclePostStartHandlerHttpGetPath string `name:"LifecyclePostStartHandlerHttpGetPath"`
LifecyclePostStartHandlerHttpGetScheme string `name:"LifecyclePostStartHandlerHttpGetScheme"`
LifecyclePostStartHandlerHttpGetHttpHeader *[]CreateContainerGroupLifecyclePostStartHandlerHttpGetHttpHeader `name:"LifecyclePostStartHandlerHttpGetHttpHeader" type:"Repeated"`
LifecyclePostStartHandlerExec []string `name:"LifecyclePostStartHandlerExec" type:"Repeated"`
LifecyclePostStartHandlerTcpSocketHost string `name:"LifecyclePostStartHandlerTcpSocketHost"`
LifecyclePostStartHandlerTcpSocketPort requests.Integer `name:"LifecyclePostStartHandlerTcpSocketPort"`
LifecyclePreStopHandlerHttpGetHost string `name:"LifecyclePreStopHandlerHttpGetHost"`
LifecyclePreStopHandlerHttpGetPort requests.Integer `name:"LifecyclePreStopHandlerHttpGetPort"`
LifecyclePreStopHandlerHttpGetPath string `name:"LifecyclePreStopHandlerHttpGetPath"`
LifecyclePreStopHandlerHttpGetScheme string `name:"LifecyclePreStopHandlerHttpGetScheme"`
LifecyclePreStopHandlerHttpGetHttpHeader *[]CreateContainerGroupLifecyclePreStopHandlerHttpGetHttpHeader `name:"LifecyclePreStopHandlerHttpGetHttpHeader" type:"Repeated"`
LifecyclePreStopHandlerExec []string `name:"LifecyclePreStopHandlerExec" type:"Repeated"`
LifecyclePreStopHandlerTcpSocketHost string `name:"LifecyclePreStopHandlerTcpSocketHost"`
LifecyclePreStopHandlerTcpSocketPort requests.Integer `name:"LifecyclePreStopHandlerTcpSocketPort"`
ReadinessProbe CreateContainerGroupReadinessProbe `name:"ReadinessProbe" type:"Struct"`
LivenessProbe CreateContainerGroupLivenessProbe `name:"LivenessProbe" type:"Struct"`
SecurityContext CreateContainerGroupSecurityContext `name:"SecurityContext" type:"Struct"`
}
type CreateContainerGroupDiskVolume ¶
type CreateContainerGroupDnsConfig ¶
type CreateContainerGroupDnsConfig struct {
NameServer []string `name:"NameServer"`
Search []string `name:"Search"`
Option *[]CreateContainerGroupOption `name:"Option"`
}
type CreateContainerGroupEmptyDirVolume ¶
type CreateContainerGroupEmptyDirVolume struct {
Medium string `name:"Medium"`
}
type CreateContainerGroupEnvironmentVar ¶
type CreateContainerGroupEnvironmentVar struct {
Key string `name:"Key"`
Value string `name:"Value"`
FieldRef CreateContainerGroupFieldRef `name:"FieldRef" type:"Struct"`
}
type CreateContainerGroupExec ¶
type CreateContainerGroupExec struct {
Command []string `name:"Command"`
}
type CreateContainerGroupFieldRef ¶
type CreateContainerGroupFieldRef struct {
FieldPath string `name:"FieldPath"`
}
type CreateContainerGroupFlexVolume ¶
type CreateContainerGroupHostAliase ¶
type CreateContainerGroupHostPathVolume ¶
type CreateContainerGroupHttpGet ¶
type CreateContainerGroupImageRegistryCredential ¶
type CreateContainerGroupInitContainer ¶
type CreateContainerGroupInitContainer struct {
Name string `name:"Name"`
Image string `name:"Image"`
Cpu requests.Float `name:"Cpu"`
Memory requests.Float `name:"Memory"`
WorkingDir string `name:"WorkingDir"`
ImagePullPolicy string `name:"ImagePullPolicy"`
Command []string `name:"Command" type:"Repeated"`
Arg []string `name:"Arg" type:"Repeated"`
VolumeMount *[]CreateContainerGroupVolumeMount `name:"VolumeMount" type:"Repeated"`
Port *[]CreateContainerGroupPort `name:"Port" type:"Repeated"`
EnvironmentVar *[]CreateContainerGroupEnvironmentVar `name:"EnvironmentVar" type:"Repeated"`
Gpu requests.Integer `name:"Gpu"`
SecurityContext CreateContainerGroupSecurityContext `name:"SecurityContext" type:"Struct"`
}
type CreateContainerGroupLifecyclePostStartHandlerHttpGetHttpHeader ¶
type CreateContainerGroupLifecyclePreStopHandlerHttpGetHttpHeader ¶
type CreateContainerGroupLivenessProbe ¶
type CreateContainerGroupLivenessProbe struct {
InitialDelaySeconds requests.Integer `name:"InitialDelaySeconds"`
PeriodSeconds requests.Integer `name:"PeriodSeconds"`
SuccessThreshold requests.Integer `name:"SuccessThreshold"`
FailureThreshold requests.Integer `name:"FailureThreshold"`
TimeoutSeconds requests.Integer `name:"TimeoutSeconds"`
HttpGet CreateContainerGroupHttpGet `name:"HttpGet"`
Exec CreateContainerGroupExec `name:"Exec"`
TcpSocket CreateContainerGroupTcpSocket `name:"TcpSocket"`
}
type CreateContainerGroupNFSVolume ¶
type CreateContainerGroupOption ¶
type CreateContainerGroupPort ¶
type CreateContainerGroupReadinessProbe ¶
type CreateContainerGroupReadinessProbe struct {
InitialDelaySeconds requests.Integer `name:"InitialDelaySeconds"`
PeriodSeconds requests.Integer `name:"PeriodSeconds"`
SuccessThreshold requests.Integer `name:"SuccessThreshold"`
FailureThreshold requests.Integer `name:"FailureThreshold"`
TimeoutSeconds requests.Integer `name:"TimeoutSeconds"`
HttpGet CreateContainerGroupHttpGet `name:"HttpGet"`
Exec CreateContainerGroupExec `name:"Exec"`
TcpSocket CreateContainerGroupTcpSocket `name:"TcpSocket"`
}
type CreateContainerGroupRequest ¶
type CreateContainerGroupRequest struct {
*requests.RpcRequest
/*********PCM param************/
RequestSource string `position:"Query" name:"RequestSource"`
ProviderId int32 `position:"Query" name:"ProviderId"`
AccountName string `position:"Query" name:"AccountName"`
Namespace string `position:"Query" name:"Namespace"`
/*********PCM param************/
OwnerId requests.Integer `position:"Query" name:"OwnerId"`
ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"`
ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"`
OwnerAccount string `position:"Query" name:"OwnerAccount"`
RegionId string `position:"Query" name:"RegionId"`
ZoneId string `position:"Query" name:"ZoneId"`
SecurityGroupId string `position:"Query" name:"SecurityGroupId"`
VSwitchId string `position:"Query" name:"VSwitchId"`
ContainerGroupName string `position:"Query" name:"ContainerGroupName"`
RestartPolicy string `position:"Query" name:"RestartPolicy"`
Tag *[]CreateContainerGroupTag `position:"Query" name:"Tag" type:"Repeated"`
ImageRegistryCredential *[]CreateContainerGroupImageRegistryCredential `position:"Query" name:"ImageRegistryCredential" type:"Repeated"`
Container *[]CreateContainerGroupContainer `position:"Query" name:"Container" type:"Repeated"`
Volume *[]CreateContainerGroupVolume `position:"Query" name:"Volume" type:"Repeated"`
EipInstanceId string `position:"Query" name:"EipInstanceId"`
InitContainer *[]CreateContainerGroupInitContainer `position:"Query" name:"InitContainer" type:"Repeated"`
Cpu requests.Float `position:"Query" name:"Cpu"`
Memory requests.Float `position:"Query" name:"Memory"`
ResourceGroupId string `position:"Query" name:"ResourceGroupId"`
DnsPolicy string `position:"Query" name:"DnsPolicy"`
ClientToken string `position:"Query" name:"ClientToken"`
HostAliase *[]CreateContainerGroupHostAliase `position:"Query" name:"HostAliase" type:"Repeated"`
Arn *[]CreateContainerGroupArn `position:"Query" name:"Arn" type:"Repeated"`
InstanceType string `position:"Query" name:"InstanceType"`
SlsEnable requests.Boolean `position:"Query" name:"SlsEnable"`
ImageSnapshotId string `position:"Query" name:"ImageSnapshotId"`
RamRoleName string `position:"Query" name:"RamRoleName"`
NtpServer []string `position:"Query" name:"NtpServer" type:"Repeated"`
TerminationGracePeriodSeconds requests.Integer `position:"Query" name:"TerminationGracePeriodSeconds"`
AutoMatchImageCache requests.Boolean `position:"Query" name:"AutoMatchImageCache"`
VkClientVersion string `position:"Query" name:"VkClientVersion"`
Ipv6AddressCount requests.Integer `position:"Query" name:"Ipv6AddressCount"`
ActiveDeadlineSeconds requests.Integer `position:"Query" name:"ActiveDeadlineSeconds"`
SpotStrategy string `position:"Query" name:"SpotStrategy"`
SpotPriceLimit requests.Float `position:"Query" name:"SpotPriceLimit"`
VSwitchStrategy string `position:"Query" name:"VSwitchStrategy"`
DnsConfig CreateContainerGroupDnsConfig `position:"Query" name:"DnsConfig" type:"Struct"`
SecurityContext CreateContainerGroupSecurityContext `position:"Query" name:"SecurityContext" type:"Struct"`
}
CreateContainerGroupRequest is the request struct for api CreateContainerGroup
func CreateCreateContainerGroupRequest ¶
func CreateCreateContainerGroupRequest() (request *CreateContainerGroupRequest)
CreateCreateContainerGroupRequest creates a request to invoke CreateContainerGroup API
type CreateContainerGroupResponse ¶
type CreateContainerGroupResponse struct {
*responses.BaseResponse
RequestId string `json:"RequestId" xml:"RequestId"`
ContainerGroupId string `json:"ContainerGroupId" xml:"ContainerGroupId"`
}
CreateContainerGroupResponse is the response struct for api CreateContainerGroup
func CreateContainerGroup ¶
func CreateContainerGroup(request *CreateContainerGroupRequest) (response *CreateContainerGroupResponse, err error)
CreateContainerGroup invokes the eci.CreateContainerGroup API synchronously api document: https://help.aliyun.com/api/eci/createcontainergroup.html
func CreateCreateContainerGroupResponse ¶
func CreateCreateContainerGroupResponse() (response *CreateContainerGroupResponse)
CreateCreateContainerGroupResponse creates a response to parse from CreateContainerGroup response
type CreateContainerGroupSecurityContext ¶
type CreateContainerGroupSecurityContext struct {
Sysctl *[]CreateContainerGroupSysctl `name:"Sysctl"`
}
type CreateContainerGroupSysctl ¶
type CreateContainerGroupTag ¶
type CreateContainerGroupTcpSocket ¶
type CreateContainerGroupVolume ¶
type CreateContainerGroupVolume struct {
Name string `name:"Name"`
Type string `name:"Type"`
NFSVolume CreateContainerGroupNFSVolume `name:"NFSVolume" type:"Struct"`
ConfigFileVolume CreateContainerGroupConfigFileVolume `name:"ConfigFileVolume" type:"Struct"`
EmptyDirVolume CreateContainerGroupEmptyDirVolume `name:"EmptyDirVolume" type:"Struct"`
DiskVolume CreateContainerGroupDiskVolume `name:"DiskVolume" type:"Struct"`
FlexVolume CreateContainerGroupFlexVolume `name:"FlexVolume" type:"Struct"`
HostPathVolume CreateContainerGroupHostPathVolume `name:"HostPathVolume" type:"Struct"`
}
type CreateContainerGroupVolumeMount ¶
type DeleteContainerGroupRequest ¶
type DeleteContainerGroupRequest struct {
*requests.RpcRequest
/*********PCM param************/
RequestSource string `position:"Query" name:"RequestSource"`
ProviderId int32 `position:"Query" name:"ProviderId"`
AccountName string `position:"Query" name:"AccountName"`
Namespace string `position:"Query" name:"Namespace"`
ContainerGroupName string `position:"Query" name:"ContainerGroupName"`
/*********PCM param************/
OwnerId requests.Integer `position:"Query" name:"OwnerId"`
ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"`
ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"`
OwnerAccount string `position:"Query" name:"OwnerAccount"`
RegionId string `position:"Query" name:"RegionId"`
ContainerGroupId string `position:"Query" name:"ContainerGroupId"`
ClientToken string `position:"Query" name:"ClientToken"`
VkClientVersion string `position:"Query" name:"VkClientVersion"`
}
DeleteContainerGroupRequest is the request struct for api DeleteContainerGroup
func CreateDeleteContainerGroupRequest ¶
func CreateDeleteContainerGroupRequest() (request *DeleteContainerGroupRequest)
CreateDeleteContainerGroupRequest creates a request to invoke DeleteContainerGroup API
type DeleteContainerGroupResponse ¶
type DeleteContainerGroupResponse struct {
*responses.BaseResponse
RequestId string `json:"RequestId" xml:"RequestId"`
}
DeleteContainerGroupResponse is the response struct for api DeleteContainerGroup
func CreateDeleteContainerGroupResponse ¶
func CreateDeleteContainerGroupResponse() (response *DeleteContainerGroupResponse)
CreateDeleteContainerGroupResponse creates a response to parse from DeleteContainerGroup response
func DeleteContainerGroup ¶
func DeleteContainerGroup(request *DeleteContainerGroupRequest) (response *DeleteContainerGroupResponse, err error)
DeleteContainerGroup invokes the eci.DeleteContainerGroup API synchronously api document: https://help.aliyun.com/api/eci/deletecontainergroup.html
type DescribeContainerGroupsCapability3 ¶
type DescribeContainerGroupsCapability3 struct {
Adds []string `json:"Adds" xml:"Adds"`
}
type DescribeContainerGroupsConfigFileVolumeConfigFileToPath2 ¶
type DescribeContainerGroupsContainer1 ¶
type DescribeContainerGroupsContainer1 struct {
Name string `json:"Name" xml:"Name"`
Image string `json:"Image" xml:"Image"`
Memory float32 `json:"Memory" xml:"Memory"`
Cpu float32 `json:"Cpu" xml:"Cpu"`
RestartCount int `json:"RestartCount" xml:"RestartCount"`
WorkingDir string `json:"WorkingDir" xml:"WorkingDir"`
ImagePullPolicy string `json:"ImagePullPolicy" xml:"ImagePullPolicy"`
Ready bool `json:"Ready" xml:"Ready"`
Gpu int `json:"Gpu" xml:"Gpu"`
Stdin bool `json:"Stdin" xml:"Stdin"`
StdinOnce bool `json:"StdinOnce" xml:"StdinOnce"`
Tty bool `json:"Tty" xml:"Tty"`
VolumeMounts []DescribeContainerGroupsVolumeMount2 `json:"VolumeMounts" xml:"VolumeMounts"`
Ports []DescribeContainerGroupsPort2 `json:"Ports" xml:"Ports"`
EnvironmentVars []DescribeContainerGroupsEnvironmentVar2 `json:"EnvironmentVars" xml:"EnvironmentVars"`
Commands []string `json:"Commands" xml:"Commands"`
Args []string `json:"Args" xml:"Args"`
PreviousState DescribeContainerGroupsPreviousState2 `json:"PreviousState" xml:"PreviousState"`
CurrentState DescribeContainerGroupsCurrentState2 `json:"CurrentState" xml:"CurrentState"`
ReadinessProbe DescribeContainerGroupsReadinessProbe2 `json:"ReadinessProbe" xml:"ReadinessProbe"`
LivenessProbe DescribeContainerGroupsLivenessProbe2 `json:"LivenessProbe" xml:"LivenessProbe"`
SecurityContext DescribeContainerGroupsSecurityContext2 `json:"SecurityContext" xml:"SecurityContext"`
}
type DescribeContainerGroupsContainerGroup0 ¶
type DescribeContainerGroupsContainerGroup0 struct {
ContainerGroupId string `json:"ContainerGroupId" xml:"ContainerGroupId"`
ContainerGroupName string `json:"ContainerGroupName" xml:"ContainerGroupName"`
RegionId string `json:"RegionId" xml:"RegionId"`
ZoneId string `json:"ZoneId" xml:"ZoneId"`
Memory float32 `json:"Memory" xml:"Memory"`
Cpu float32 `json:"Cpu" xml:"Cpu"`
VSwitchId string `json:"VSwitchId" xml:"VSwitchId"`
SecurityGroupId string `json:"SecurityGroupId" xml:"SecurityGroupId"`
RestartPolicy string `json:"RestartPolicy" xml:"RestartPolicy"`
IntranetIp string `json:"IntranetIp" xml:"IntranetIp"`
Status string `json:"Status" xml:"Status"`
InternetIp string `json:"InternetIp" xml:"InternetIp"`
CreationTime string `json:"CreationTime" xml:"CreationTime"`
SucceededTime string `json:"SucceededTime" xml:"SucceededTime"`
EniInstanceId string `json:"EniInstanceId" xml:"EniInstanceId"`
InstanceType string `json:"InstanceType" xml:"InstanceType"`
ExpiredTime string `json:"ExpiredTime" xml:"ExpiredTime"`
FailedTime string `json:"FailedTime" xml:"FailedTime"`
RamRoleName string `json:"RamRoleName" xml:"RamRoleName"`
Ipv6Address string `json:"Ipv6Address" xml:"Ipv6Address"`
VpcId string `json:"VpcId" xml:"VpcId"`
Discount int `json:"Discount" xml:"Discount"`
ResourceGroupId string `json:"ResourceGroupId" xml:"ResourceGroupId"`
Tags []DescribeContainerGroupsLabel1 `json:"Tags" xml:"Tags"`
Events []DescribeContainerGroupsEvent1 `json:"Events" xml:"Events"`
Containers []DescribeContainerGroupsContainer1 `json:"Containers" xml:"Containers"`
Volumes []DescribeContainerGroupsVolume1 `json:"Volumes" xml:"Volumes"`
InitContainers []DescribeContainerGroupsContainer1 `json:"InitContainers" xml:"InitContainers"`
HostAliases []DescribeContainerGroupsHostAliase1 `json:"HostAliases" xml:"HostAliases"`
DnsConfig DescribeContainerGroupsDnsConfig1 `json:"DnsConfig" xml:"DnsConfig"`
EciSecurityContext DescribeContainerGroupsEciSecurityContext1 `json:"EciSecurityContext" xml:"EciSecurityContext"`
}
type DescribeContainerGroupsCurrentState2 ¶
type DescribeContainerGroupsCurrentState2 struct {
State string `json:"State" xml:"State"`
DetailStatus string `json:"DetailStatus" xml:"DetailStatus"`
ExitCode int `json:"ExitCode" xml:"ExitCode"`
StartTime string `json:"StartTime" xml:"StartTime"`
FinishTime string `json:"FinishTime" xml:"FinishTime"`
Reason string `json:"Reason" xml:"Reason"`
Message string `json:"Message" xml:"Message"`
Signal int `json:"Signal" xml:"Signal"`
}
type DescribeContainerGroupsDnsConfig1 ¶
type DescribeContainerGroupsDnsConfig1 struct {
Options []DescribeContainerGroupsOption2 `json:"Options" xml:"Options"`
NameServers []string `json:"NameServers" xml:"NameServers"`
Searches []string `json:"Searches" xml:"Searches"`
}
type DescribeContainerGroupsEciSecurityContext1 ¶
type DescribeContainerGroupsEciSecurityContext1 struct {
Sysctls []DescribeContainerGroupsSysctl2 `json:"Sysctls" xml:"Sysctls"`
}
type DescribeContainerGroupsEnvironmentVar2 ¶
type DescribeContainerGroupsEnvironmentVar2 struct {
Key string `json:"Key" xml:"Key"`
Value string `json:"Value" xml:"Value"`
ValueFrom DescribeContainerGroupsValueFrom3 `json:"ValueFrom" xml:"ValueFrom"`
}
type DescribeContainerGroupsEvent1 ¶
type DescribeContainerGroupsEvent1 struct {
Count int `json:"Count" xml:"Count"`
Type string `json:"Type" xml:"Type"`
Name string `json:"Name" xml:"Name"`
Message string `json:"Message" xml:"Message"`
FirstTimestamp string `json:"FirstTimestamp" xml:"FirstTimestamp"`
LastTimestamp string `json:"LastTimestamp" xml:"LastTimestamp"`
Reason string `json:"Reason" xml:"Reason"`
}
type DescribeContainerGroupsFieldRef4 ¶
type DescribeContainerGroupsFieldRef4 struct {
FieldPath string `json:"FieldPath" xml:"FieldPath"`
}
type DescribeContainerGroupsHostAliase1 ¶
type DescribeContainerGroupsHttpGet3 ¶
type DescribeContainerGroupsLabel1 ¶
type DescribeContainerGroupsLivenessProbe2 ¶
type DescribeContainerGroupsLivenessProbe2 struct {
InitialDelaySeconds int `json:"InitialDelaySeconds" xml:"InitialDelaySeconds"`
PeriodSeconds int `json:"PeriodSeconds" xml:"PeriodSeconds"`
TimeoutSeconds int `json:"TimeoutSeconds" xml:"TimeoutSeconds"`
SuccessThreshold int `json:"SuccessThreshold" xml:"SuccessThreshold"`
FailureThreshold int `json:"FailureThreshold" xml:"FailureThreshold"`
Execs []string `json:"Execs" xml:"Execs"`
HttpGet DescribeContainerGroupsHttpGet3 `json:"HttpGet" xml:"HttpGet"`
TcpSocket DescribeContainerGroupsTcpSocket3 `json:"TcpSocket" xml:"TcpSocket"`
}
type DescribeContainerGroupsOption2 ¶
type DescribeContainerGroupsPort2 ¶
type DescribeContainerGroupsPreviousState2 ¶
type DescribeContainerGroupsPreviousState2 struct {
State string `json:"State" xml:"State"`
DetailStatus string `json:"DetailStatus" xml:"DetailStatus"`
ExitCode int `json:"ExitCode" xml:"ExitCode"`
StartTime string `json:"StartTime" xml:"StartTime"`
FinishTime string `json:"FinishTime" xml:"FinishTime"`
Reason string `json:"Reason" xml:"Reason"`
Message string `json:"Message" xml:"Message"`
Signal int `json:"Signal" xml:"Signal"`
}
type DescribeContainerGroupsReadinessProbe2 ¶
type DescribeContainerGroupsReadinessProbe2 struct {
InitialDelaySeconds int `json:"InitialDelaySeconds" xml:"InitialDelaySeconds"`
PeriodSeconds int `json:"PeriodSeconds" xml:"PeriodSeconds"`
TimeoutSeconds int `json:"TimeoutSeconds" xml:"TimeoutSeconds"`
SuccessThreshold int `json:"SuccessThreshold" xml:"SuccessThreshold"`
FailureThreshold int `json:"FailureThreshold" xml:"FailureThreshold"`
Execs []string `json:"Execs" xml:"Execs"`
HttpGet DescribeContainerGroupsHttpGet3 `json:"HttpGet" xml:"HttpGet"`
TcpSocket DescribeContainerGroupsTcpSocket3 `json:"TcpSocket" xml:"TcpSocket"`
}
type DescribeContainerGroupsRequest ¶
type DescribeContainerGroupsRequest struct {
*requests.RpcRequest
/*********PCM param************/
RequestSource string `position:"Query" name:"RequestSource"`
ProviderId int32 `position:"Query" name:"ProviderId"`
AccountName string `position:"Query" name:"AccountName"`
Namespace string `position:"Query" name:"Namespace"`
/*********PCM param************/
OwnerId requests.Integer `position:"Query" name:"OwnerId"`
ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"`
ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"`
OwnerAccount string `position:"Query" name:"OwnerAccount"`
RegionId string `position:"Query" name:"RegionId"`
ZoneId string `position:"Query" name:"ZoneId"`
VSwitchId string `position:"Query" name:"VSwitchId"`
NextToken string `position:"Query" name:"NextToken"`
Limit requests.Integer `position:"Query" name:"Limit"`
Tag *[]DescribeContainerGroupsTag `position:"Query" name:"Tag" type:"Repeated"`
ContainerGroupIds string `position:"Query" name:"ContainerGroupIds"`
ContainerGroupName string `position:"Query" name:"ContainerGroupName"`
Status string `position:"Query" name:"Status"`
VkClientVersion string `position:"Query" name:"VkClientVersion"`
ResourceGroupId string `position:"Query" name:"ResourceGroupId"`
WithEvent requests.Boolean `position:"Query" name:"WithEvent"`
}
DescribeContainerGroupsRequest is the request struct for api DescribeContainerGroups
func CreateDescribeContainerGroupsRequest ¶
func CreateDescribeContainerGroupsRequest() (request *DescribeContainerGroupsRequest)
CreateDescribeContainerGroupsRequest creates a request to invoke DescribeContainerGroups API
type DescribeContainerGroupsResponse ¶
type DescribeContainerGroupsResponse struct {
*responses.BaseResponse
RequestId string `json:"RequestId" xml:"RequestId"`
NextToken string `json:"NextToken" xml:"NextToken"`
TotalCount int `json:"TotalCount" xml:"TotalCount"`
ContainerGroups []DescribeContainerGroupsContainerGroup0 `json:"ContainerGroups" xml:"ContainerGroups"`
}
DescribeContainerGroupsResponse is the response struct for api DescribeContainerGroups
func CreateDescribeContainerGroupsResponse ¶
func CreateDescribeContainerGroupsResponse() (response *DescribeContainerGroupsResponse)
CreateDescribeContainerGroupsResponse creates a response to parse from DescribeContainerGroups response
func DescribeContainerGroups ¶
func DescribeContainerGroups(request *DescribeContainerGroupsRequest) (response *DescribeContainerGroupsResponse, err error)
DescribeContainerGroups invokes the eci.DescribeContainerGroups API synchronously api document: https://help.aliyun.com/api/eci/describecontainergroups.html
type DescribeContainerGroupsSecurityContext2 ¶
type DescribeContainerGroupsSecurityContext2 struct {
ReadOnlyRootFilesystem bool `json:"ReadOnlyRootFilesystem" xml:"ReadOnlyRootFilesystem"`
RunAsUser int64 `json:"RunAsUser" xml:"RunAsUser"`
Capability DescribeContainerGroupsCapability3 `json:"Capability" xml:"Capability"`
}
type DescribeContainerGroupsSysctl2 ¶
type DescribeContainerGroupsTag ¶
type DescribeContainerGroupsTcpSocket3 ¶
type DescribeContainerGroupsValueFrom3 ¶
type DescribeContainerGroupsValueFrom3 struct {
FieldRef DescribeContainerGroupsFieldRef4 `json:"FieldRef" xml:"FieldRef"`
}
type DescribeContainerGroupsVolume1 ¶
type DescribeContainerGroupsVolume1 struct {
Type string `json:"Type" xml:"Type"`
Name string `json:"Name" xml:"Name"`
NFSVolumePath string `json:"NFSVolumePath" xml:"NFSVolumePath"`
NFSVolumeServer string `json:"NFSVolumeServer" xml:"NFSVolumeServer"`
NFSVolumeReadOnly bool `json:"NFSVolumeReadOnly" xml:"NFSVolumeReadOnly"`
DiskVolumeDiskId string `json:"DiskVolumeDiskId" xml:"DiskVolumeDiskId"`
DiskVolumeFsType string `json:"DiskVolumeFsType" xml:"DiskVolumeFsType"`
FlexVolumeDriver string `json:"FlexVolumeDriver" xml:"FlexVolumeDriver"`
FlexVolumeFsType string `json:"FlexVolumeFsType" xml:"FlexVolumeFsType"`
FlexVolumeOptions string `json:"FlexVolumeOptions" xml:"FlexVolumeOptions"`
ConfigFileVolumeConfigFileToPaths []DescribeContainerGroupsConfigFileVolumeConfigFileToPath2 `json:"ConfigFileVolumeConfigFileToPaths" xml:"ConfigFileVolumeConfigFileToPaths"`
}
type DescribeContainerGroupsVolumeMount2 ¶
type UpdateContainerGroupCapability ¶
type UpdateContainerGroupCapability struct {
Add []string `name:"Add"`
}
type UpdateContainerGroupConfigFileToPath ¶
type UpdateContainerGroupConfigFileVolume ¶
type UpdateContainerGroupConfigFileVolume struct {
ConfigFileToPath *[]UpdateContainerGroupConfigFileToPath `name:"ConfigFileToPath"`
}
type UpdateContainerGroupContainer ¶
type UpdateContainerGroupContainer struct {
Name string `name:"Name"`
Image string `name:"Image"`
Cpu requests.Float `name:"Cpu"`
Memory requests.Float `name:"Memory"`
WorkingDir string `name:"WorkingDir"`
ImagePullPolicy string `name:"ImagePullPolicy"`
Stdin requests.Boolean `name:"Stdin"`
StdinOnce requests.Boolean `name:"StdinOnce"`
Tty requests.Boolean `name:"Tty"`
Command []string `name:"Command" type:"Repeated"`
Arg []string `name:"Arg" type:"Repeated"`
EnvironmentVar []string `name:"EnvironmentVar" type:"Repeated"`
Port []string `name:"Port" type:"Repeated"`
VolumeMount []string `name:"VolumeMount" type:"Repeated"`
Gpu requests.Integer `name:"Gpu"`
ReadinessProbe UpdateContainerGroupReadinessProbe `name:"ReadinessProbe" type:"Struct"`
LivenessProbe UpdateContainerGroupLivenessProbe `name:"LivenessProbe" type:"Struct"`
SecurityContext UpdateContainerGroupSecurityContext `name:"SecurityContext" type:"Struct"`
}
type UpdateContainerGroupDnsConfig ¶
type UpdateContainerGroupDnsConfig struct {
NameServer []string `name:"NameServer"`
Search []string `name:"Search"`
Option *[]UpdateContainerGroupOption `name:"Option"`
}
type UpdateContainerGroupEmptyDirVolume ¶
type UpdateContainerGroupEmptyDirVolume struct {
Medium string `name:"Medium"`
}
type UpdateContainerGroupEnvironmentVar ¶
type UpdateContainerGroupExec ¶
type UpdateContainerGroupExec struct {
Command []string `name:"Command"`
}
type UpdateContainerGroupHttpGet ¶
type UpdateContainerGroupImageRegistryCredential ¶
type UpdateContainerGroupInitContainer ¶
type UpdateContainerGroupInitContainer struct {
Name string `name:"Name"`
Image string `name:"Image"`
Cpu requests.Float `name:"Cpu"`
Memory requests.Float `name:"Memory"`
WorkingDir string `name:"WorkingDir"`
ImagePullPolicy string `name:"ImagePullPolicy"`
Stdin requests.Boolean `name:"Stdin"`
StdinOnce requests.Boolean `name:"StdinOnce"`
Tty requests.Boolean `name:"Tty"`
Command []string `name:"Command" type:"Repeated"`
Arg []string `name:"Arg" type:"Repeated"`
EnvironmentVar *[]UpdateContainerGroupEnvironmentVar `name:"EnvironmentVar" type:"Repeated"`
Port *[]UpdateContainerGroupPort `name:"Port" type:"Repeated"`
VolumeMount *[]UpdateContainerGroupVolumeMount `name:"VolumeMount" type:"Repeated"`
Gpu requests.Integer `name:"Gpu"`
SecurityContext UpdateContainerGroupSecurityContext `name:"SecurityContext" type:"Struct"`
}
type UpdateContainerGroupLivenessProbe ¶
type UpdateContainerGroupLivenessProbe struct {
InitialDelaySeconds requests.Integer `name:"InitialDelaySeconds"`
PeriodSeconds requests.Integer `name:"PeriodSeconds"`
SuccessThreshold requests.Integer `name:"SuccessThreshold"`
FailureThreshold requests.Integer `name:"FailureThreshold"`
TimeoutSeconds requests.Integer `name:"TimeoutSeconds"`
TcpSocket UpdateContainerGroupTcpSocket `name:"TcpSocket"`
Exec UpdateContainerGroupExec `name:"Exec"`
HttpGet UpdateContainerGroupHttpGet `name:"HttpGet"`
}
type UpdateContainerGroupNFSVolume ¶
type UpdateContainerGroupOption ¶
type UpdateContainerGroupPort ¶
type UpdateContainerGroupReadinessProbe ¶
type UpdateContainerGroupReadinessProbe struct {
InitialDelaySeconds requests.Integer `name:"InitialDelaySeconds"`
PeriodSeconds requests.Integer `name:"PeriodSeconds"`
SuccessThreshold requests.Integer `name:"SuccessThreshold"`
FailureThreshold requests.Integer `name:"FailureThreshold"`
TimeoutSeconds requests.Integer `name:"TimeoutSeconds"`
TcpSocket UpdateContainerGroupTcpSocket `name:"TcpSocket"`
Exec UpdateContainerGroupExec `name:"Exec"`
HttpGet UpdateContainerGroupHttpGet `name:"HttpGet"`
}
type UpdateContainerGroupRequest ¶
type UpdateContainerGroupRequest struct {
*requests.RpcRequest
/*********PCM param************/
RequestSource string `position:"Query" name:"RequestSource"`
ProviderId int32 `position:"Query" name:"ProviderId"`
AccountName string `position:"Query" name:"AccountName"`
Namespace string `position:"Query" name:"Namespace"`
ContainerGroupName string `position:"Query" name:"ContainerGroupName"`
/*********PCM param************/
OwnerId requests.Integer `position:"Query" name:"OwnerId"`
ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"`
ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"`
OwnerAccount string `position:"Query" name:"OwnerAccount"`
RegionId string `position:"Query" name:"RegionId"`
ContainerGroupId string `position:"Query" name:"ContainerGroupId"`
RestartPolicy string `position:"Query" name:"RestartPolicy"`
Tag *[]UpdateContainerGroupTag `position:"Query" name:"Tag" type:"Repeated"`
Volume *[]UpdateContainerGroupVolume `position:"Query" name:"Volume" type:"Repeated"`
Container *[]UpdateContainerGroupContainer `position:"Query" name:"Container" type:"Repeated"`
InitContainer *[]UpdateContainerGroupInitContainer `position:"Query" name:"InitContainer" type:"Repeated"`
ImageRegistryCredential *[]UpdateContainerGroupImageRegistryCredential `position:"Query" name:"ImageRegistryCredential" type:"Repeated"`
ClientToken string `position:"Query" name:"ClientToken"`
Cpu requests.Float `position:"Query" name:"Cpu"`
Memory requests.Float `position:"Query" name:"Memory"`
DnsConfig UpdateContainerGroupDnsConfig `position:"Query" name:"DnsConfig" type:"Struct"`
}
UpdateContainerGroupRequest is the request struct for api UpdateContainerGroup
func CreateUpdateContainerGroupRequest ¶
func CreateUpdateContainerGroupRequest() (request *UpdateContainerGroupRequest)
CreateUpdateContainerGroupRequest creates a request to invoke UpdateContainerGroup API
type UpdateContainerGroupResponse ¶
type UpdateContainerGroupResponse struct {
*responses.BaseResponse
RequestId string `json:"RequestId" xml:"RequestId"`
}
UpdateContainerGroupResponse is the response struct for api UpdateContainerGroup
func CreateUpdateContainerGroupResponse ¶
func CreateUpdateContainerGroupResponse() (response *UpdateContainerGroupResponse)
CreateUpdateContainerGroupResponse creates a response to parse from UpdateContainerGroup response
func UpdateContainerGroup ¶
func UpdateContainerGroup(request *UpdateContainerGroupRequest) (response *UpdateContainerGroupResponse, err error)
UpdateContainerGroup invokes the eci.UpdateContainerGroup API synchronously api document: https://help.aliyun.com/api/eci/updatecontainergroup.html
type UpdateContainerGroupSecurityContext ¶
type UpdateContainerGroupSecurityContext struct {
ReadOnlyRootFilesystem requests.Boolean `name:"ReadOnlyRootFilesystem"`
RunAsUser requests.Integer `name:"RunAsUser"`
Capability UpdateContainerGroupCapability `name:"Capability"`
}
type UpdateContainerGroupTag ¶
type UpdateContainerGroupTcpSocket ¶
type UpdateContainerGroupVolume ¶
type UpdateContainerGroupVolume struct {
Name string `name:"Name"`
Type string `name:"Type"`
NFSVolume UpdateContainerGroupNFSVolume `name:"NFSVolume" type:"Struct"`
ConfigFileVolume UpdateContainerGroupConfigFileVolume `name:"ConfigFileVolume" type:"Struct"`
EmptyDirVolume UpdateContainerGroupEmptyDirVolume `name:"EmptyDirVolume" type:"Struct"`
}
Source Files
¶
- client.go
- create_container_group.go
- delete_container_group.go
- describe_container_groups.go
- update_container_group.go