Versions in this module Expand all Collapse all v0 v0.9.0 Apr 4, 2019 v0.8.0 Jan 15, 2019 Changes in this version + const VOL_TYPE_CONFIGFILEVOLUME + const VOL_TYPE_EMPTYDIR + const VOL_TYPE_NFS + 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 NewClientWithRamRoleArn(regionId string, accessKeyId, accessKeySecret, roleArn, roleSessionName 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) + func (client *Client) CreateContainerGroup(request *CreateContainerGroupRequest) (response *CreateContainerGroupResponse, err error) + func (client *Client) CreateContainerGroupWithCallback(request *CreateContainerGroupRequest, ...) <-chan int + func (client *Client) CreateContainerGroupWithChan(request *CreateContainerGroupRequest) (<-chan *CreateContainerGroupResponse, <-chan error) + func (client *Client) DeleteContainerGroup(request *DeleteContainerGroupRequest) (response *DeleteContainerGroupResponse, err error) + func (client *Client) DeleteContainerGroupWithCallback(request *DeleteContainerGroupRequest, ...) <-chan int + func (client *Client) DeleteContainerGroupWithChan(request *DeleteContainerGroupRequest) (<-chan *DeleteContainerGroupResponse, <-chan error) + func (client *Client) DescribeContainerGroups(request *DescribeContainerGroupsRequest) (response *DescribeContainerGroupsResponse, err error) + func (client *Client) DescribeContainerGroupsWithCallback(request *DescribeContainerGroupsRequest, ...) <-chan int + func (client *Client) DescribeContainerGroupsWithChan(request *DescribeContainerGroupsRequest) (<-chan *DescribeContainerGroupsResponse, <-chan error) + func (client *Client) DescribeContainerLog(request *DescribeContainerLogRequest) (response *DescribeContainerLogResponse, err error) + func (client *Client) DescribeContainerLogWithCallback(request *DescribeContainerLogRequest, ...) <-chan int + func (client *Client) DescribeContainerLogWithChan(request *DescribeContainerLogRequest) (<-chan *DescribeContainerLogResponse, <-chan error) + type ConfigFileToPath struct + Content string + Path string + type Container struct + Args []string + Commands []string + Cpu float64 + CurrentState ContainerState + EnvironmentVars []EnvironmentVar + Image string + ImagePullPolicy string + Memory float64 + Name string + Ports []ContainerPort + PreviousState ContainerState + RestartCount int + VolumeMounts []VolumeMount + WorkingDir string + type ContainerGroup struct + ContainerGroupId string + ContainerGroupName string + Containers []Container + Cpu float64 + CreationTime string + Events []Event + InternetIp string + IntranetIp string + Memory float64 + RegionId string + RestartPolicy string + SecurityGroupId string + Status string + SucceededTime string + Tags []Tag + VSwitchId string + Volumes []Volume + ZoneId string + type ContainerPort struct + Port requests.Integer + Protocol string + type ContainerState struct + DetailStatus string + ExitCode int + FinishTime string + StartTime string + State string + type CreateContainer struct + Args []string + Commands []string + Cpu requests.Float + EnvironmentVars []EnvironmentVar + Image string + ImagePullPolicy string + Memory requests.Float + Name string + Ports []ContainerPort + VolumeMounts []VolumeMount + WorkingDir string + type CreateContainerGroupRequest struct + ContainerGroupName string + Containers []CreateContainer + ImageRegistryCredentials []ImageRegistryCredential + InitContainers []CreateContainer + OwnerAccount string + OwnerId requests.Integer + ResourceOwnerAccount string + ResourceOwnerId requests.Integer + RestartPolicy string + SecurityGroupId string + Tags []Tag + VSwitchId string + Volumes []Volume + ZoneId string + func CreateCreateContainerGroupRequest() (request *CreateContainerGroupRequest) + type CreateContainerGroupResponse struct + ContainerGroupId string + RequestId string + func CreateCreateContainerGroupResponse() (response *CreateContainerGroupResponse) + type DeleteContainerGroupRequest struct + ContainerGroupId string + OwnerAccount string + OwnerId requests.Integer + ResourceOwnerAccount string + ResourceOwnerId requests.Integer + func CreateDeleteContainerGroupRequest() (request *DeleteContainerGroupRequest) + type DeleteContainerGroupResponse struct + RequestId string + func CreateDeleteContainerGroupResponse() (response *DeleteContainerGroupResponse) + type DescribeContainerGroupsRequest struct + ContainerGroupId string + ContainerGroupName string + Limit requests.Integer + NextToken string + OwnerAccount string + OwnerId requests.Integer + ResourceOwnerAccount string + ResourceOwnerId requests.Integer + Tags *[]DescribeContainerGroupsTag + VSwitchId string + ZoneId string + func CreateDescribeContainerGroupsRequest() (request *DescribeContainerGroupsRequest) + type DescribeContainerGroupsResponse struct + ContainerGroups []ContainerGroup + NextToken string + RequestId string + TotalCount int + func CreateDescribeContainerGroupsResponse() (response *DescribeContainerGroupsResponse) + type DescribeContainerGroupsTag struct + Key string + Value string + type DescribeContainerLogRequest struct + ContainerGroupId string + ContainerName string + OwnerAccount string + OwnerId requests.Integer + ResourceOwnerAccount string + ResourceOwnerId requests.Integer + StartTime string + Tail requests.Integer + func CreateDescribeContainerLogRequest() (request *DescribeContainerLogRequest) + type DescribeContainerLogResponse struct + ContainerName string + Content string + RequestId string + func CreateDescribeContainerLogResponse() (response *DescribeContainerLogResponse) + type EnvironmentVar struct + Key string + Value string + type Event struct + Count int + FirstTimestamp string + LastTimestamp string + Message string + Name string + Type string + type ImageRegistryCredential struct + Password string + Server string + UserName string + type Tag struct + Key string + Value string + type Volume struct + ConfigFileToPaths []ConfigFileToPath + EmptyDirVolumeEnable requests.Boolean + Name string + NfsVolumePath string + NfsVolumeReadOnly requests.Boolean + NfsVolumeServer string + Type string + type VolumeMount struct + MountPath string + Name string + ReadOnly requests.Boolean