Versions in this module Expand all Collapse all v0 v0.1.3 May 16, 2022 Changes in this version + type Client struct + 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 struct + AssumeRoleFor string + RoleArn string + RoleType string + type CreateContainerGroupConfigFileToPath struct + Content string + Mode requests.Integer + Path string + type CreateContainerGroupConfigFileVolume struct + ConfigFileToPath *[]CreateContainerGroupConfigFileToPath + DefaultModel requests.Integer + type CreateContainerGroupContainer struct + Arg []string + Command []string + Cpu requests.Float + EnvironmentVar *[]CreateContainerGroupEnvironmentVar + Gpu requests.Integer + Image string + ImagePullPolicy string + LifecyclePostStartHandlerExec []string + LifecyclePostStartHandlerHttpGetHost string + LifecyclePostStartHandlerHttpGetHttpHeader *[]CreateContainerGroupLifecyclePostStartHandlerHttpGetHttpHeader + LifecyclePostStartHandlerHttpGetPath string + LifecyclePostStartHandlerHttpGetPort requests.Integer + LifecyclePostStartHandlerHttpGetScheme string + LifecyclePostStartHandlerTcpSocketHost string + LifecyclePostStartHandlerTcpSocketPort requests.Integer + LifecyclePreStopHandlerExec []string + LifecyclePreStopHandlerHttpGetHost string + LifecyclePreStopHandlerHttpGetHttpHeader *[]CreateContainerGroupLifecyclePreStopHandlerHttpGetHttpHeader + LifecyclePreStopHandlerHttpGetPath string + LifecyclePreStopHandlerHttpGetPort requests.Integer + LifecyclePreStopHandlerHttpGetScheme string + LifecyclePreStopHandlerTcpSocketHost string + LifecyclePreStopHandlerTcpSocketPort requests.Integer + LivenessProbe CreateContainerGroupLivenessProbe + Memory requests.Float + Name string + Port *[]CreateContainerGroupPort + ReadinessProbe CreateContainerGroupReadinessProbe + SecurityContext CreateContainerGroupSecurityContext + Stdin requests.Boolean + StdinOnce requests.Boolean + Tty requests.Boolean + VolumeMount *[]CreateContainerGroupVolumeMount + WorkingDir string + type CreateContainerGroupDiskVolume struct + DiskId string + DiskSize requests.Integer + FsType string + type CreateContainerGroupDnsConfig struct + NameServer []string + Option *[]CreateContainerGroupOption + Search []string + type CreateContainerGroupEmptyDirVolume struct + Medium string + type CreateContainerGroupEnvironmentVar struct + FieldRef CreateContainerGroupFieldRef + Key string + Value string + type CreateContainerGroupExec struct + Command []string + type CreateContainerGroupFieldRef struct + FieldPath string + type CreateContainerGroupFlexVolume struct + Driver string + FsType string + Options string + type CreateContainerGroupHostAliase struct + Hostname []string + Ip string + type CreateContainerGroupHostPathVolume struct + Path string + Type string + type CreateContainerGroupHttpGet struct + Path string + Port requests.Integer + Scheme string + type CreateContainerGroupImageRegistryCredential struct + Password string + Server string + UserName string + type CreateContainerGroupInitContainer struct + Arg []string + Command []string + Cpu requests.Float + EnvironmentVar *[]CreateContainerGroupEnvironmentVar + Gpu requests.Integer + Image string + ImagePullPolicy string + Memory requests.Float + Name string + Port *[]CreateContainerGroupPort + SecurityContext CreateContainerGroupSecurityContext + VolumeMount *[]CreateContainerGroupVolumeMount + WorkingDir string + type CreateContainerGroupLifecyclePostStartHandlerHttpGetHttpHeader struct + Name string + Value string + type CreateContainerGroupLifecyclePreStopHandlerHttpGetHttpHeader struct + Name string + Value string + type CreateContainerGroupLivenessProbe struct + Exec CreateContainerGroupExec + FailureThreshold requests.Integer + HttpGet CreateContainerGroupHttpGet + InitialDelaySeconds requests.Integer + PeriodSeconds requests.Integer + SuccessThreshold requests.Integer + TcpSocket CreateContainerGroupTcpSocket + TimeoutSeconds requests.Integer + type CreateContainerGroupNFSVolume struct + Path string + ReadOnly requests.Boolean + Server string + type CreateContainerGroupOption struct + Name string + Value string + type CreateContainerGroupPort struct + Port requests.Integer + Protocol string + type CreateContainerGroupReadinessProbe struct + Exec CreateContainerGroupExec + FailureThreshold requests.Integer + HttpGet CreateContainerGroupHttpGet + InitialDelaySeconds requests.Integer + PeriodSeconds requests.Integer + SuccessThreshold requests.Integer + TcpSocket CreateContainerGroupTcpSocket + TimeoutSeconds requests.Integer + type CreateContainerGroupRequest struct + AccountName string + ActiveDeadlineSeconds requests.Integer + Arn *[]CreateContainerGroupArn + AutoMatchImageCache requests.Boolean + ClientToken string + Container *[]CreateContainerGroupContainer + ContainerGroupName string + Cpu requests.Float + DnsConfig CreateContainerGroupDnsConfig + DnsPolicy string + EipInstanceId string + HostAliase *[]CreateContainerGroupHostAliase + ImageRegistryCredential *[]CreateContainerGroupImageRegistryCredential + ImageSnapshotId string + InitContainer *[]CreateContainerGroupInitContainer + InstanceType string + Ipv6AddressCount requests.Integer + Memory requests.Float + Namespace string + NtpServer []string + OwnerAccount string + OwnerId requests.Integer + ProviderId int32 + RamRoleName string + RegionId string + RequestSource string + ResourceGroupId string + ResourceOwnerAccount string + ResourceOwnerId requests.Integer + RestartPolicy string + SecurityContext CreateContainerGroupSecurityContext + SecurityGroupId string + SlsEnable requests.Boolean + SpotPriceLimit requests.Float + SpotStrategy string + Tag *[]CreateContainerGroupTag + TerminationGracePeriodSeconds requests.Integer + VSwitchId string + VSwitchStrategy string + VkClientVersion string + Volume *[]CreateContainerGroupVolume + ZoneId string + func CreateCreateContainerGroupRequest() (request *CreateContainerGroupRequest) + type CreateContainerGroupResponse struct + ContainerGroupId string + RequestId string + func CreateContainerGroup(request *CreateContainerGroupRequest) (response *CreateContainerGroupResponse, err error) + func CreateCreateContainerGroupResponse() (response *CreateContainerGroupResponse) + type CreateContainerGroupSecurityContext struct + Sysctl *[]CreateContainerGroupSysctl + type CreateContainerGroupSysctl struct + Name string + Value string + type CreateContainerGroupTag struct + Key string + Value string + type CreateContainerGroupTcpSocket struct + Port requests.Integer + type CreateContainerGroupVolume struct + ConfigFileVolume CreateContainerGroupConfigFileVolume + DiskVolume CreateContainerGroupDiskVolume + EmptyDirVolume CreateContainerGroupEmptyDirVolume + FlexVolume CreateContainerGroupFlexVolume + HostPathVolume CreateContainerGroupHostPathVolume + NFSVolume CreateContainerGroupNFSVolume + Name string + Type string + type CreateContainerGroupVolumeMount struct + MountPath string + Name string + ReadOnly requests.Boolean + SubPath string + type DeleteContainerGroupRequest struct + AccountName string + ClientToken string + ContainerGroupId string + ContainerGroupName string + Namespace string + OwnerAccount string + OwnerId requests.Integer + ProviderId int32 + RegionId string + RequestSource string + ResourceOwnerAccount string + ResourceOwnerId requests.Integer + VkClientVersion string + func CreateDeleteContainerGroupRequest() (request *DeleteContainerGroupRequest) + type DeleteContainerGroupResponse struct + RequestId string + func CreateDeleteContainerGroupResponse() (response *DeleteContainerGroupResponse) + func DeleteContainerGroup(request *DeleteContainerGroupRequest) (response *DeleteContainerGroupResponse, err error) + type DescribeContainerGroupsCapability3 struct + Adds []string + type DescribeContainerGroupsConfigFileVolumeConfigFileToPath2 struct + Content string + Path string + type DescribeContainerGroupsContainer1 struct + Args []string + Commands []string + Cpu float32 + CurrentState DescribeContainerGroupsCurrentState2 + EnvironmentVars []DescribeContainerGroupsEnvironmentVar2 + Gpu int + Image string + ImagePullPolicy string + LivenessProbe DescribeContainerGroupsLivenessProbe2 + Memory float32 + Name string + Ports []DescribeContainerGroupsPort2 + PreviousState DescribeContainerGroupsPreviousState2 + ReadinessProbe DescribeContainerGroupsReadinessProbe2 + Ready bool + RestartCount int + SecurityContext DescribeContainerGroupsSecurityContext2 + Stdin bool + StdinOnce bool + Tty bool + VolumeMounts []DescribeContainerGroupsVolumeMount2 + WorkingDir string + type DescribeContainerGroupsContainerGroup0 struct + ContainerGroupId string + ContainerGroupName string + Containers []DescribeContainerGroupsContainer1 + Cpu float32 + CreationTime string + Discount int + DnsConfig DescribeContainerGroupsDnsConfig1 + EciSecurityContext DescribeContainerGroupsEciSecurityContext1 + EniInstanceId string + Events []DescribeContainerGroupsEvent1 + ExpiredTime string + FailedTime string + HostAliases []DescribeContainerGroupsHostAliase1 + InitContainers []DescribeContainerGroupsContainer1 + InstanceType string + InternetIp string + IntranetIp string + Ipv6Address string + Memory float32 + RamRoleName string + RegionId string + ResourceGroupId string + RestartPolicy string + SecurityGroupId string + Status string + SucceededTime string + Tags []DescribeContainerGroupsLabel1 + VSwitchId string + Volumes []DescribeContainerGroupsVolume1 + VpcId string + ZoneId string + type DescribeContainerGroupsCurrentState2 struct + DetailStatus string + ExitCode int + FinishTime string + Message string + Reason string + Signal int + StartTime string + State string + type DescribeContainerGroupsDnsConfig1 struct + NameServers []string + Options []DescribeContainerGroupsOption2 + Searches []string + type DescribeContainerGroupsEciSecurityContext1 struct + Sysctls []DescribeContainerGroupsSysctl2 + type DescribeContainerGroupsEnvironmentVar2 struct + Key string + Value string + ValueFrom DescribeContainerGroupsValueFrom3 + type DescribeContainerGroupsEvent1 struct + Count int + FirstTimestamp string + LastTimestamp string + Message string + Name string + Reason string + Type string + type DescribeContainerGroupsFieldRef4 struct + FieldPath string + type DescribeContainerGroupsHostAliase1 struct + Hostnames []string + Ip string + type DescribeContainerGroupsHttpGet3 struct + Path string + Port int + Scheme string + type DescribeContainerGroupsLabel1 struct + Key string + Value string + type DescribeContainerGroupsLivenessProbe2 struct + Execs []string + FailureThreshold int + HttpGet DescribeContainerGroupsHttpGet3 + InitialDelaySeconds int + PeriodSeconds int + SuccessThreshold int + TcpSocket DescribeContainerGroupsTcpSocket3 + TimeoutSeconds int + type DescribeContainerGroupsOption2 struct + Name string + Value string + type DescribeContainerGroupsPort2 struct + Port int + Protocol string + type DescribeContainerGroupsPreviousState2 struct + DetailStatus string + ExitCode int + FinishTime string + Message string + Reason string + Signal int + StartTime string + State string + type DescribeContainerGroupsReadinessProbe2 struct + Execs []string + FailureThreshold int + HttpGet DescribeContainerGroupsHttpGet3 + InitialDelaySeconds int + PeriodSeconds int + SuccessThreshold int + TcpSocket DescribeContainerGroupsTcpSocket3 + TimeoutSeconds int + type DescribeContainerGroupsRequest struct + AccountName string + ContainerGroupIds string + ContainerGroupName string + Limit requests.Integer + Namespace string + NextToken string + OwnerAccount string + OwnerId requests.Integer + ProviderId int32 + RegionId string + RequestSource string + ResourceGroupId string + ResourceOwnerAccount string + ResourceOwnerId requests.Integer + Status string + Tag *[]DescribeContainerGroupsTag + VSwitchId string + VkClientVersion string + WithEvent requests.Boolean + ZoneId string + func CreateDescribeContainerGroupsRequest() (request *DescribeContainerGroupsRequest) + type DescribeContainerGroupsResponse struct + ContainerGroups []DescribeContainerGroupsContainerGroup0 + NextToken string + RequestId string + TotalCount int + func CreateDescribeContainerGroupsResponse() (response *DescribeContainerGroupsResponse) + func DescribeContainerGroups(request *DescribeContainerGroupsRequest) (response *DescribeContainerGroupsResponse, err error) + type DescribeContainerGroupsSecurityContext2 struct + Capability DescribeContainerGroupsCapability3 + ReadOnlyRootFilesystem bool + RunAsUser int64 + type DescribeContainerGroupsSysctl2 struct + Name string + Value string + type DescribeContainerGroupsTag struct + Key string + Value string + type DescribeContainerGroupsTcpSocket3 struct + Host string + Port int + type DescribeContainerGroupsValueFrom3 struct + FieldRef DescribeContainerGroupsFieldRef4 + type DescribeContainerGroupsVolume1 struct + ConfigFileVolumeConfigFileToPaths []DescribeContainerGroupsConfigFileVolumeConfigFileToPath2 + DiskVolumeDiskId string + DiskVolumeFsType string + FlexVolumeDriver string + FlexVolumeFsType string + FlexVolumeOptions string + NFSVolumePath string + NFSVolumeReadOnly bool + NFSVolumeServer string + Name string + Type string + type DescribeContainerGroupsVolumeMount2 struct + MountPath string + Name string + ReadOnly bool + type UpdateContainerGroupCapability struct + Add []string + type UpdateContainerGroupConfigFileToPath struct + Content string + Path string + type UpdateContainerGroupConfigFileVolume struct + ConfigFileToPath *[]UpdateContainerGroupConfigFileToPath + type UpdateContainerGroupContainer struct + Arg []string + Command []string + Cpu requests.Float + EnvironmentVar []string + Gpu requests.Integer + Image string + ImagePullPolicy string + LivenessProbe UpdateContainerGroupLivenessProbe + Memory requests.Float + Name string + Port []string + ReadinessProbe UpdateContainerGroupReadinessProbe + SecurityContext UpdateContainerGroupSecurityContext + Stdin requests.Boolean + StdinOnce requests.Boolean + Tty requests.Boolean + VolumeMount []string + WorkingDir string + type UpdateContainerGroupDnsConfig struct + NameServer []string + Option *[]UpdateContainerGroupOption + Search []string + type UpdateContainerGroupEmptyDirVolume struct + Medium string + type UpdateContainerGroupEnvironmentVar struct + Key string + Value string + type UpdateContainerGroupExec struct + Command []string + type UpdateContainerGroupHttpGet struct + Path string + Port requests.Integer + Scheme string + type UpdateContainerGroupImageRegistryCredential struct + Password string + Server string + UserName string + type UpdateContainerGroupInitContainer struct + Arg []string + Command []string + Cpu requests.Float + EnvironmentVar *[]UpdateContainerGroupEnvironmentVar + Gpu requests.Integer + Image string + ImagePullPolicy string + Memory requests.Float + Name string + Port *[]UpdateContainerGroupPort + SecurityContext UpdateContainerGroupSecurityContext + Stdin requests.Boolean + StdinOnce requests.Boolean + Tty requests.Boolean + VolumeMount *[]UpdateContainerGroupVolumeMount + WorkingDir string + type UpdateContainerGroupLivenessProbe struct + Exec UpdateContainerGroupExec + FailureThreshold requests.Integer + HttpGet UpdateContainerGroupHttpGet + InitialDelaySeconds requests.Integer + PeriodSeconds requests.Integer + SuccessThreshold requests.Integer + TcpSocket UpdateContainerGroupTcpSocket + TimeoutSeconds requests.Integer + type UpdateContainerGroupNFSVolume struct + Path string + ReadOnly requests.Boolean + Server string + type UpdateContainerGroupOption struct + Name string + Value string + type UpdateContainerGroupPort struct + Port requests.Integer + Protocol string + type UpdateContainerGroupReadinessProbe struct + Exec UpdateContainerGroupExec + FailureThreshold requests.Integer + HttpGet UpdateContainerGroupHttpGet + InitialDelaySeconds requests.Integer + PeriodSeconds requests.Integer + SuccessThreshold requests.Integer + TcpSocket UpdateContainerGroupTcpSocket + TimeoutSeconds requests.Integer + type UpdateContainerGroupRequest struct + AccountName string + ClientToken string + Container *[]UpdateContainerGroupContainer + ContainerGroupId string + ContainerGroupName string + Cpu requests.Float + DnsConfig UpdateContainerGroupDnsConfig + ImageRegistryCredential *[]UpdateContainerGroupImageRegistryCredential + InitContainer *[]UpdateContainerGroupInitContainer + Memory requests.Float + Namespace string + OwnerAccount string + OwnerId requests.Integer + ProviderId int32 + RegionId string + RequestSource string + ResourceOwnerAccount string + ResourceOwnerId requests.Integer + RestartPolicy string + Tag *[]UpdateContainerGroupTag + Volume *[]UpdateContainerGroupVolume + func CreateUpdateContainerGroupRequest() (request *UpdateContainerGroupRequest) + type UpdateContainerGroupResponse struct + RequestId string + func CreateUpdateContainerGroupResponse() (response *UpdateContainerGroupResponse) + func UpdateContainerGroup(request *UpdateContainerGroupRequest) (response *UpdateContainerGroupResponse, err error) + type UpdateContainerGroupSecurityContext struct + Capability UpdateContainerGroupCapability + ReadOnlyRootFilesystem requests.Boolean + RunAsUser requests.Integer + type UpdateContainerGroupTag struct + Key string + Value string + type UpdateContainerGroupTcpSocket struct + Port requests.Integer + type UpdateContainerGroupVolume struct + ConfigFileVolume UpdateContainerGroupConfigFileVolume + EmptyDirVolume UpdateContainerGroupEmptyDirVolume + NFSVolume UpdateContainerGroupNFSVolume + Name string + Type string + type UpdateContainerGroupVolumeMount struct + MountPath string + Name string + ReadOnly requests.Boolean + SubPath string