Documentation ¶
Index ¶
- type AddImageContainerImageSpec
- type AddImageContainerImageSpecRegistryCredential
- type AddImageRequest
- type AddImageResponse
- type AddImageVMImageSpec
- type ArraySpec
- 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)
- func (client *Client) AddImage(request *AddImageRequest) (response *AddImageResponse, err error)
- func (client *Client) AddImageWithCallback(request *AddImageRequest, callback func(response *AddImageResponse, err error)) <-chan int
- func (client *Client) AddImageWithChan(request *AddImageRequest) (<-chan *AddImageResponse, <-chan error)
- func (client *Client) CreateJob(request *CreateJobRequest) (response *CreateJobResponse, err error)
- func (client *Client) CreateJobWithCallback(request *CreateJobRequest, ...) <-chan int
- func (client *Client) CreateJobWithChan(request *CreateJobRequest) (<-chan *CreateJobResponse, <-chan error)
- func (client *Client) DeleteJobs(request *DeleteJobsRequest) (response *DeleteJobsResponse, err error)
- func (client *Client) DeleteJobsWithCallback(request *DeleteJobsRequest, ...) <-chan int
- func (client *Client) DeleteJobsWithChan(request *DeleteJobsRequest) (<-chan *DeleteJobsResponse, <-chan error)
- func (client *Client) DescribeJobMetricData(request *DescribeJobMetricDataRequest) (response *DescribeJobMetricDataResponse, err error)
- func (client *Client) DescribeJobMetricDataWithCallback(request *DescribeJobMetricDataRequest, ...) <-chan int
- func (client *Client) DescribeJobMetricDataWithChan(request *DescribeJobMetricDataRequest) (<-chan *DescribeJobMetricDataResponse, <-chan error)
- func (client *Client) DescribeJobMetricLast(request *DescribeJobMetricLastRequest) (response *DescribeJobMetricLastResponse, err error)
- func (client *Client) DescribeJobMetricLastWithCallback(request *DescribeJobMetricLastRequest, ...) <-chan int
- func (client *Client) DescribeJobMetricLastWithChan(request *DescribeJobMetricLastRequest) (<-chan *DescribeJobMetricLastResponse, <-chan error)
- func (client *Client) GetImage(request *GetImageRequest) (response *GetImageResponse, err error)
- func (client *Client) GetImageWithCallback(request *GetImageRequest, callback func(response *GetImageResponse, err error)) <-chan int
- func (client *Client) GetImageWithChan(request *GetImageRequest) (<-chan *GetImageResponse, <-chan error)
- func (client *Client) GetJob(request *GetJobRequest) (response *GetJobResponse, err error)
- func (client *Client) GetJobWithCallback(request *GetJobRequest, callback func(response *GetJobResponse, err error)) <-chan int
- func (client *Client) GetJobWithChan(request *GetJobRequest) (<-chan *GetJobResponse, <-chan error)
- func (client *Client) ListExecutors(request *ListExecutorsRequest) (response *ListExecutorsResponse, err error)
- func (client *Client) ListExecutorsWithCallback(request *ListExecutorsRequest, ...) <-chan int
- func (client *Client) ListExecutorsWithChan(request *ListExecutorsRequest) (<-chan *ListExecutorsResponse, <-chan error)
- func (client *Client) ListImages(request *ListImagesRequest) (response *ListImagesResponse, err error)
- func (client *Client) ListImagesWithCallback(request *ListImagesRequest, ...) <-chan int
- func (client *Client) ListImagesWithChan(request *ListImagesRequest) (<-chan *ListImagesResponse, <-chan error)
- func (client *Client) ListJobExecutors(request *ListJobExecutorsRequest) (response *ListJobExecutorsResponse, err error)
- func (client *Client) ListJobExecutorsWithCallback(request *ListJobExecutorsRequest, ...) <-chan int
- func (client *Client) ListJobExecutorsWithChan(request *ListJobExecutorsRequest) (<-chan *ListJobExecutorsResponse, <-chan error)
- func (client *Client) ListJobs(request *ListJobsRequest) (response *ListJobsResponse, err error)
- func (client *Client) ListJobsWithCallback(request *ListJobsRequest, callback func(response *ListJobsResponse, err error)) <-chan int
- func (client *Client) ListJobsWithChan(request *ListJobsRequest) (<-chan *ListJobsResponse, <-chan error)
- func (client *Client) RemoveImage(request *RemoveImageRequest) (response *RemoveImageResponse, err error)
- func (client *Client) RemoveImageWithCallback(request *RemoveImageRequest, ...) <-chan int
- func (client *Client) RemoveImageWithChan(request *RemoveImageRequest) (<-chan *RemoveImageResponse, <-chan error)
- type Container
- type ContainerImageSpec
- type CreateJobDeploymentPolicy
- type CreateJobDeploymentPolicyNetwork
- type CreateJobMonitorPolicy
- type CreateJobMonitorPolicyNotificationSpec
- type CreateJobMonitorPolicyNotificationSpecMNSTopicItem
- type CreateJobRequest
- type CreateJobResponse
- type CreateJobTasks
- type CreateJobTasksExecutorPolicy
- type CreateJobTasksExecutorPolicyArraySpec
- type CreateJobTasksTaskSpec
- type CreateJobTasksTaskSpecResource
- type CreateJobTasksTaskSpecResourceDisksItem
- type CreateJobTasksTaskSpecRetryPolicy
- type CreateJobTasksTaskSpecRetryPolicyExitCodeActionsItem
- type CreateJobTasksTaskSpecTaskExecutorItem
- type CreateJobTasksTaskSpecTaskExecutorItemContainer
- type CreateJobTasksTaskSpecTaskExecutorItemContainerEnvironmentVarsItem
- type CreateJobTasksTaskSpecTaskExecutorItemVM
- type CreateJobTasksTaskSpecTaskExecutorItemVMEnvironmentVarsItem
- type CreateJobTasksTaskSpecVolumeMountItem
- type DeleteJobsJobSpec
- type DeleteJobsJobSpecTaskSpecItem
- type DeleteJobsRequest
- type DeleteJobsResponse
- type DependencyPolicy
- type DeploymentPolicy
- type DescribeJobMetricDataRequest
- type DescribeJobMetricDataResponse
- type DescribeJobMetricLastRequest
- type DescribeJobMetricLastResponse
- type Disk
- type Disks
- type EnvironmentVar
- type EnvironmentVarsInGetJob
- type Event
- type Executor
- type ExecutorPolicy
- type ExecutorStatus
- type ExecutorStatusItem
- type ExecutorsInListExecutors
- type ExecutorsInListJobExecutors
- type ExitCodeAction
- type ExitCodeActions
- type GetImageRequest
- type GetImageResponse
- type GetJobRequest
- type GetJobResponse
- type HostNameInListExecutors
- type HostNameInListJobExecutors
- type Image
- type Images
- type IpAddressInListExecutors
- type IpAddressInListJobExecutors
- type Job
- type JobDependency
- type JobDependencyItem
- type JobInfo
- type JobList
- type ListExecutorsFilter
- type ListExecutorsRequest
- type ListExecutorsResponse
- type ListImagesRequest
- type ListImagesResponse
- type ListJobExecutorsRequest
- type ListJobExecutorsResponse
- type ListJobsFilter
- type ListJobsRequest
- type ListJobsResponse
- type ListJobsSortBy
- type LogSpec
- type MNSTopic
- type MNSTopicItem
- type MetricInfo
- type Metrics
- type MonitorPolicy
- type Network
- type NotificationSpec
- type RegistryCredential
- type RemoveImageRequest
- type RemoveImageResponse
- type Resource
- type RetryPolicy
- type SecurityGroup
- type SecurityGroupIds
- type SecurityPolicy
- type Tag
- type Tags
- type Task
- type TaskExecutor
- type TaskExecutorItem
- type TaskSpec
- type Tasks
- type VM
- type VMImageSpec
- type VolumeMount
- type VolumeMountItem
- type Vswitch
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AddImageContainerImageSpec ¶
type AddImageContainerImageSpec struct { IsACREnterprise string `name:"IsACREnterprise"` RegistryUrl string `name:"RegistryUrl"` RegistryCredential AddImageContainerImageSpecRegistryCredential `name:"RegistryCredential" type:"Struct"` RegistryCriId string `name:"RegistryCriId"` IsACRRegistry string `name:"IsACRRegistry"` }
AddImageContainerImageSpec is a repeated param struct in AddImageRequest
type AddImageContainerImageSpecRegistryCredential ¶
type AddImageContainerImageSpecRegistryCredential struct { Server string `name:"Server"` Password string `name:"Password"` UserName string `name:"UserName"` }
AddImageContainerImageSpecRegistryCredential is a repeated param struct in AddImageRequest
type AddImageRequest ¶
type AddImageRequest struct { *requests.RpcRequest ImageType string `position:"Query" name:"ImageType"` Description string `position:"Query" name:"Description"` Name string `position:"Query" name:"Name"` ImageVersion string `position:"Query" name:"ImageVersion"` ContainerImageSpec AddImageContainerImageSpec `position:"Query" name:"ContainerImageSpec" type:"Struct"` VMImageSpec AddImageVMImageSpec `position:"Query" name:"VMImageSpec" type:"Struct"` }
AddImageRequest is the request struct for api AddImage
func CreateAddImageRequest ¶
func CreateAddImageRequest() (request *AddImageRequest)
CreateAddImageRequest creates a request to invoke AddImage API
type AddImageResponse ¶
type AddImageResponse struct { *responses.BaseResponse RequestId string `json:"RequestId" xml:"RequestId"` Success bool `json:"Success" xml:"Success"` ImageId string `json:"ImageId" xml:"ImageId"` AppId string `json:"AppId" xml:"AppId"` }
AddImageResponse is the response struct for api AddImage
func CreateAddImageResponse ¶
func CreateAddImageResponse() (response *AddImageResponse)
CreateAddImageResponse creates a response to parse from AddImage response
type AddImageVMImageSpec ¶
type AddImageVMImageSpec struct {
ImageId string `name:"ImageId"`
}
AddImageVMImageSpec is a repeated param struct in AddImageRequest
type ArraySpec ¶
type ArraySpec struct { IndexStart int `json:"IndexStart" xml:"IndexStart"` IndexEnd int `json:"IndexEnd" xml:"IndexEnd"` IndexStep int `json:"IndexStep" xml:"IndexStep"` }
ArraySpec is a nested struct in ehpcinstant response
type Client ¶
Client is the sdk client struct, each func corresponds to an OpenAPI
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
func (*Client) AddImage ¶
func (client *Client) AddImage(request *AddImageRequest) (response *AddImageResponse, err error)
AddImage invokes the ehpcinstant.AddImage API synchronously
func (*Client) AddImageWithCallback ¶
func (client *Client) AddImageWithCallback(request *AddImageRequest, callback func(response *AddImageResponse, err error)) <-chan int
AddImageWithCallback invokes the ehpcinstant.AddImage API asynchronously
func (*Client) AddImageWithChan ¶
func (client *Client) AddImageWithChan(request *AddImageRequest) (<-chan *AddImageResponse, <-chan error)
AddImageWithChan invokes the ehpcinstant.AddImage API asynchronously
func (*Client) CreateJob ¶
func (client *Client) CreateJob(request *CreateJobRequest) (response *CreateJobResponse, err error)
CreateJob invokes the ehpcinstant.CreateJob API synchronously
func (*Client) CreateJobWithCallback ¶
func (client *Client) CreateJobWithCallback(request *CreateJobRequest, callback func(response *CreateJobResponse, err error)) <-chan int
CreateJobWithCallback invokes the ehpcinstant.CreateJob API asynchronously
func (*Client) CreateJobWithChan ¶
func (client *Client) CreateJobWithChan(request *CreateJobRequest) (<-chan *CreateJobResponse, <-chan error)
CreateJobWithChan invokes the ehpcinstant.CreateJob API asynchronously
func (*Client) DeleteJobs ¶
func (client *Client) DeleteJobs(request *DeleteJobsRequest) (response *DeleteJobsResponse, err error)
DeleteJobs invokes the ehpcinstant.DeleteJobs API synchronously
func (*Client) DeleteJobsWithCallback ¶
func (client *Client) DeleteJobsWithCallback(request *DeleteJobsRequest, callback func(response *DeleteJobsResponse, err error)) <-chan int
DeleteJobsWithCallback invokes the ehpcinstant.DeleteJobs API asynchronously
func (*Client) DeleteJobsWithChan ¶
func (client *Client) DeleteJobsWithChan(request *DeleteJobsRequest) (<-chan *DeleteJobsResponse, <-chan error)
DeleteJobsWithChan invokes the ehpcinstant.DeleteJobs API asynchronously
func (*Client) DescribeJobMetricData ¶
func (client *Client) DescribeJobMetricData(request *DescribeJobMetricDataRequest) (response *DescribeJobMetricDataResponse, err error)
DescribeJobMetricData invokes the ehpcinstant.DescribeJobMetricData API synchronously
func (*Client) DescribeJobMetricDataWithCallback ¶
func (client *Client) DescribeJobMetricDataWithCallback(request *DescribeJobMetricDataRequest, callback func(response *DescribeJobMetricDataResponse, err error)) <-chan int
DescribeJobMetricDataWithCallback invokes the ehpcinstant.DescribeJobMetricData API asynchronously
func (*Client) DescribeJobMetricDataWithChan ¶
func (client *Client) DescribeJobMetricDataWithChan(request *DescribeJobMetricDataRequest) (<-chan *DescribeJobMetricDataResponse, <-chan error)
DescribeJobMetricDataWithChan invokes the ehpcinstant.DescribeJobMetricData API asynchronously
func (*Client) DescribeJobMetricLast ¶
func (client *Client) DescribeJobMetricLast(request *DescribeJobMetricLastRequest) (response *DescribeJobMetricLastResponse, err error)
DescribeJobMetricLast invokes the ehpcinstant.DescribeJobMetricLast API synchronously
func (*Client) DescribeJobMetricLastWithCallback ¶
func (client *Client) DescribeJobMetricLastWithCallback(request *DescribeJobMetricLastRequest, callback func(response *DescribeJobMetricLastResponse, err error)) <-chan int
DescribeJobMetricLastWithCallback invokes the ehpcinstant.DescribeJobMetricLast API asynchronously
func (*Client) DescribeJobMetricLastWithChan ¶
func (client *Client) DescribeJobMetricLastWithChan(request *DescribeJobMetricLastRequest) (<-chan *DescribeJobMetricLastResponse, <-chan error)
DescribeJobMetricLastWithChan invokes the ehpcinstant.DescribeJobMetricLast API asynchronously
func (*Client) GetImage ¶
func (client *Client) GetImage(request *GetImageRequest) (response *GetImageResponse, err error)
GetImage invokes the ehpcinstant.GetImage API synchronously
func (*Client) GetImageWithCallback ¶
func (client *Client) GetImageWithCallback(request *GetImageRequest, callback func(response *GetImageResponse, err error)) <-chan int
GetImageWithCallback invokes the ehpcinstant.GetImage API asynchronously
func (*Client) GetImageWithChan ¶
func (client *Client) GetImageWithChan(request *GetImageRequest) (<-chan *GetImageResponse, <-chan error)
GetImageWithChan invokes the ehpcinstant.GetImage API asynchronously
func (*Client) GetJob ¶
func (client *Client) GetJob(request *GetJobRequest) (response *GetJobResponse, err error)
GetJob invokes the ehpcinstant.GetJob API synchronously
func (*Client) GetJobWithCallback ¶
func (client *Client) GetJobWithCallback(request *GetJobRequest, callback func(response *GetJobResponse, err error)) <-chan int
GetJobWithCallback invokes the ehpcinstant.GetJob API asynchronously
func (*Client) GetJobWithChan ¶
func (client *Client) GetJobWithChan(request *GetJobRequest) (<-chan *GetJobResponse, <-chan error)
GetJobWithChan invokes the ehpcinstant.GetJob API asynchronously
func (*Client) ListExecutors ¶
func (client *Client) ListExecutors(request *ListExecutorsRequest) (response *ListExecutorsResponse, err error)
ListExecutors invokes the ehpcinstant.ListExecutors API synchronously
func (*Client) ListExecutorsWithCallback ¶
func (client *Client) ListExecutorsWithCallback(request *ListExecutorsRequest, callback func(response *ListExecutorsResponse, err error)) <-chan int
ListExecutorsWithCallback invokes the ehpcinstant.ListExecutors API asynchronously
func (*Client) ListExecutorsWithChan ¶
func (client *Client) ListExecutorsWithChan(request *ListExecutorsRequest) (<-chan *ListExecutorsResponse, <-chan error)
ListExecutorsWithChan invokes the ehpcinstant.ListExecutors API asynchronously
func (*Client) ListImages ¶
func (client *Client) ListImages(request *ListImagesRequest) (response *ListImagesResponse, err error)
ListImages invokes the ehpcinstant.ListImages API synchronously
func (*Client) ListImagesWithCallback ¶
func (client *Client) ListImagesWithCallback(request *ListImagesRequest, callback func(response *ListImagesResponse, err error)) <-chan int
ListImagesWithCallback invokes the ehpcinstant.ListImages API asynchronously
func (*Client) ListImagesWithChan ¶
func (client *Client) ListImagesWithChan(request *ListImagesRequest) (<-chan *ListImagesResponse, <-chan error)
ListImagesWithChan invokes the ehpcinstant.ListImages API asynchronously
func (*Client) ListJobExecutors ¶
func (client *Client) ListJobExecutors(request *ListJobExecutorsRequest) (response *ListJobExecutorsResponse, err error)
ListJobExecutors invokes the ehpcinstant.ListJobExecutors API synchronously
func (*Client) ListJobExecutorsWithCallback ¶
func (client *Client) ListJobExecutorsWithCallback(request *ListJobExecutorsRequest, callback func(response *ListJobExecutorsResponse, err error)) <-chan int
ListJobExecutorsWithCallback invokes the ehpcinstant.ListJobExecutors API asynchronously
func (*Client) ListJobExecutorsWithChan ¶
func (client *Client) ListJobExecutorsWithChan(request *ListJobExecutorsRequest) (<-chan *ListJobExecutorsResponse, <-chan error)
ListJobExecutorsWithChan invokes the ehpcinstant.ListJobExecutors API asynchronously
func (*Client) ListJobs ¶
func (client *Client) ListJobs(request *ListJobsRequest) (response *ListJobsResponse, err error)
ListJobs invokes the ehpcinstant.ListJobs API synchronously
func (*Client) ListJobsWithCallback ¶
func (client *Client) ListJobsWithCallback(request *ListJobsRequest, callback func(response *ListJobsResponse, err error)) <-chan int
ListJobsWithCallback invokes the ehpcinstant.ListJobs API asynchronously
func (*Client) ListJobsWithChan ¶
func (client *Client) ListJobsWithChan(request *ListJobsRequest) (<-chan *ListJobsResponse, <-chan error)
ListJobsWithChan invokes the ehpcinstant.ListJobs API asynchronously
func (*Client) RemoveImage ¶
func (client *Client) RemoveImage(request *RemoveImageRequest) (response *RemoveImageResponse, err error)
RemoveImage invokes the ehpcinstant.RemoveImage API synchronously
func (*Client) RemoveImageWithCallback ¶
func (client *Client) RemoveImageWithCallback(request *RemoveImageRequest, callback func(response *RemoveImageResponse, err error)) <-chan int
RemoveImageWithCallback invokes the ehpcinstant.RemoveImage API asynchronously
func (*Client) RemoveImageWithChan ¶
func (client *Client) RemoveImageWithChan(request *RemoveImageRequest) (<-chan *RemoveImageResponse, <-chan error)
RemoveImageWithChan invokes the ehpcinstant.RemoveImage API asynchronously
type Container ¶
type Container struct { Image string `json:"Image" xml:"Image"` WorkingDir string `json:"WorkingDir" xml:"WorkingDir"` Command string `json:"Command" xml:"Command"` AppId string `json:"AppId" xml:"AppId"` EnvironmentVars []EnvironmentVar `json:"EnvironmentVars" xml:"EnvironmentVars"` }
Container is a nested struct in ehpcinstant response
type ContainerImageSpec ¶
type ContainerImageSpec struct { RegistryUrl string `json:"RegistryUrl" xml:"RegistryUrl"` IsACRRegistry bool `json:"IsACRRegistry" xml:"IsACRRegistry"` IsACREnterprise bool `json:"IsACREnterprise" xml:"IsACREnterprise"` RegistryCriId string `json:"RegistryCriId" xml:"RegistryCriId"` RegistryCredential RegistryCredential `json:"RegistryCredential" xml:"RegistryCredential"` }
ContainerImageSpec is a nested struct in ehpcinstant response
type CreateJobDeploymentPolicy ¶
type CreateJobDeploymentPolicy struct { AllocationSpec string `name:"AllocationSpec"` Network CreateJobDeploymentPolicyNetwork `name:"Network" type:"Struct"` }
CreateJobDeploymentPolicy is a repeated param struct in CreateJobRequest
type CreateJobDeploymentPolicyNetwork ¶
type CreateJobDeploymentPolicyNetwork struct { EnableERI string `name:"EnableERI"` Vswitch *[]string `name:"Vswitch" type:"Repeated"` EnableENIMapping string `name:"EnableENIMapping"` }
CreateJobDeploymentPolicyNetwork is a repeated param struct in CreateJobRequest
type CreateJobMonitorPolicy ¶
type CreateJobMonitorPolicy struct {
NotificationSpec CreateJobMonitorPolicyNotificationSpec `name:"NotificationSpec" type:"Struct"`
}
CreateJobMonitorPolicy is a repeated param struct in CreateJobRequest
type CreateJobMonitorPolicyNotificationSpec ¶
type CreateJobMonitorPolicyNotificationSpec struct {
MNSTopic *[]CreateJobMonitorPolicyNotificationSpecMNSTopicItem `name:"MNSTopic" type:"Repeated"`
}
CreateJobMonitorPolicyNotificationSpec is a repeated param struct in CreateJobRequest
type CreateJobMonitorPolicyNotificationSpecMNSTopicItem ¶
type CreateJobMonitorPolicyNotificationSpecMNSTopicItem struct { Event *[]string `name:"Event" type:"Repeated"` TopicLocation string `name:"TopicLocation"` }
CreateJobMonitorPolicyNotificationSpecMNSTopicItem is a repeated param struct in CreateJobRequest
type CreateJobRequest ¶
type CreateJobRequest struct { *requests.RpcRequest MonitorPolicy CreateJobMonitorPolicy `position:"Query" name:"MonitorPolicy" type:"Struct"` JobDescription string `position:"Query" name:"JobDescription"` DeploymentPolicy CreateJobDeploymentPolicy `position:"Query" name:"DeploymentPolicy" type:"Struct"` JobName string `position:"Query" name:"JobName"` Tasks *[]CreateJobTasks `position:"Query" name:"Tasks" type:"Json"` }
CreateJobRequest is the request struct for api CreateJob
func CreateCreateJobRequest ¶
func CreateCreateJobRequest() (request *CreateJobRequest)
CreateCreateJobRequest creates a request to invoke CreateJob API
type CreateJobResponse ¶
type CreateJobResponse struct { *responses.BaseResponse RequestId string `json:"RequestId" xml:"RequestId"` JobId string `json:"JobId" xml:"JobId"` }
CreateJobResponse is the response struct for api CreateJob
func CreateCreateJobResponse ¶
func CreateCreateJobResponse() (response *CreateJobResponse)
CreateCreateJobResponse creates a response to parse from CreateJob response
type CreateJobTasks ¶
type CreateJobTasks struct { TaskSustainable string `name:"TaskSustainable"` TaskName string `name:"TaskName"` ExecutorPolicy CreateJobTasksExecutorPolicy `name:"ExecutorPolicy" type:"Struct"` TaskSpec CreateJobTasksTaskSpec `name:"TaskSpec" type:"Struct"` }
CreateJobTasks is a repeated param struct in CreateJobRequest
type CreateJobTasksExecutorPolicy ¶
type CreateJobTasksExecutorPolicy struct { MaxCount string `name:"MaxCount"` ArraySpec CreateJobTasksExecutorPolicyArraySpec `name:"ArraySpec" type:"Struct"` }
CreateJobTasksExecutorPolicy is a repeated param struct in CreateJobRequest
type CreateJobTasksExecutorPolicyArraySpec ¶
type CreateJobTasksExecutorPolicyArraySpec struct { IndexStart string `name:"IndexStart"` IndexStep string `name:"IndexStep"` IndexEnd string `name:"IndexEnd"` }
CreateJobTasksExecutorPolicyArraySpec is a repeated param struct in CreateJobRequest
type CreateJobTasksTaskSpec ¶
type CreateJobTasksTaskSpec struct { VolumeMount *[]CreateJobTasksTaskSpecVolumeMountItem `name:"VolumeMount" type:"Repeated"` RetryPolicy CreateJobTasksTaskSpecRetryPolicy `name:"RetryPolicy" type:"Struct"` Resource CreateJobTasksTaskSpecResource `name:"Resource" type:"Struct"` TaskDuration string `name:"TaskDuration"` TaskExecutor *[]CreateJobTasksTaskSpecTaskExecutorItem `name:"TaskExecutor" type:"Repeated"` }
CreateJobTasksTaskSpec is a repeated param struct in CreateJobRequest
type CreateJobTasksTaskSpecResource ¶
type CreateJobTasksTaskSpecResource struct { Cores string `name:"Cores"` Memory string `name:"Memory"` Disks *[]CreateJobTasksTaskSpecResourceDisksItem `name:"Disks" type:"Repeated"` EnableHT string `name:"EnableHT"` }
CreateJobTasksTaskSpecResource is a repeated param struct in CreateJobRequest
type CreateJobTasksTaskSpecResourceDisksItem ¶
type CreateJobTasksTaskSpecResourceDisksItem struct { Size string `name:"Size"` Type string `name:"Type"` }
CreateJobTasksTaskSpecResourceDisksItem is a repeated param struct in CreateJobRequest
type CreateJobTasksTaskSpecRetryPolicy ¶
type CreateJobTasksTaskSpecRetryPolicy struct { RetryCount string `name:"RetryCount"` ExitCodeActions *[]CreateJobTasksTaskSpecRetryPolicyExitCodeActionsItem `name:"ExitCodeActions" type:"Repeated"` }
CreateJobTasksTaskSpecRetryPolicy is a repeated param struct in CreateJobRequest
type CreateJobTasksTaskSpecRetryPolicyExitCodeActionsItem ¶
type CreateJobTasksTaskSpecRetryPolicyExitCodeActionsItem struct { Action string `name:"Action"` ExitCode string `name:"ExitCode"` }
CreateJobTasksTaskSpecRetryPolicyExitCodeActionsItem is a repeated param struct in CreateJobRequest
type CreateJobTasksTaskSpecTaskExecutorItem ¶
type CreateJobTasksTaskSpecTaskExecutorItem struct { Container CreateJobTasksTaskSpecTaskExecutorItemContainer `name:"Container" type:"Struct"` VM CreateJobTasksTaskSpecTaskExecutorItemVM `name:"VM" type:"Struct"` }
CreateJobTasksTaskSpecTaskExecutorItem is a repeated param struct in CreateJobRequest
type CreateJobTasksTaskSpecTaskExecutorItemContainer ¶
type CreateJobTasksTaskSpecTaskExecutorItemContainer struct { Image string `name:"Image"` EnvironmentVars *[]CreateJobTasksTaskSpecTaskExecutorItemContainerEnvironmentVarsItem `name:"EnvironmentVars" type:"Repeated"` WorkingDir string `name:"WorkingDir"` Command *[]string `name:"Command" type:"Repeated"` }
CreateJobTasksTaskSpecTaskExecutorItemContainer is a repeated param struct in CreateJobRequest
type CreateJobTasksTaskSpecTaskExecutorItemContainerEnvironmentVarsItem ¶
type CreateJobTasksTaskSpecTaskExecutorItemContainerEnvironmentVarsItem struct { Name string `name:"Name"` Value string `name:"Value"` }
CreateJobTasksTaskSpecTaskExecutorItemContainerEnvironmentVarsItem is a repeated param struct in CreateJobRequest
type CreateJobTasksTaskSpecTaskExecutorItemVM ¶
type CreateJobTasksTaskSpecTaskExecutorItemVM struct { Image string `name:"Image"` PrologScript string `name:"PrologScript"` EnvironmentVars *[]CreateJobTasksTaskSpecTaskExecutorItemVMEnvironmentVarsItem `name:"EnvironmentVars" type:"Repeated"` Script string `name:"Script"` }
CreateJobTasksTaskSpecTaskExecutorItemVM is a repeated param struct in CreateJobRequest
type CreateJobTasksTaskSpecTaskExecutorItemVMEnvironmentVarsItem ¶
type CreateJobTasksTaskSpecTaskExecutorItemVMEnvironmentVarsItem struct { Name string `name:"Name"` Value string `name:"Value"` }
CreateJobTasksTaskSpecTaskExecutorItemVMEnvironmentVarsItem is a repeated param struct in CreateJobRequest
type CreateJobTasksTaskSpecVolumeMountItem ¶
type CreateJobTasksTaskSpecVolumeMountItem struct { MountOptions string `name:"MountOptions"` VolumeDriver string `name:"VolumeDriver"` MountPath string `name:"MountPath"` }
CreateJobTasksTaskSpecVolumeMountItem is a repeated param struct in CreateJobRequest
type DeleteJobsJobSpec ¶
type DeleteJobsJobSpec struct { JobId string `name:"JobId"` TaskSpec *[]DeleteJobsJobSpecTaskSpecItem `name:"TaskSpec" type:"Repeated"` }
DeleteJobsJobSpec is a repeated param struct in DeleteJobsRequest
type DeleteJobsJobSpecTaskSpecItem ¶
type DeleteJobsJobSpecTaskSpecItem struct { TaskName string `name:"TaskName"` ArrayIndex *[]string `name:"ArrayIndex" type:"Repeated"` }
DeleteJobsJobSpecTaskSpecItem is a repeated param struct in DeleteJobsRequest
type DeleteJobsRequest ¶
type DeleteJobsRequest struct { *requests.RpcRequest JobSpec *[]DeleteJobsJobSpec `position:"Query" name:"JobSpec" type:"Json"` ExecutorIds *[]string `position:"Query" name:"ExecutorIds" type:"Json"` }
DeleteJobsRequest is the request struct for api DeleteJobs
func CreateDeleteJobsRequest ¶
func CreateDeleteJobsRequest() (request *DeleteJobsRequest)
CreateDeleteJobsRequest creates a request to invoke DeleteJobs API
type DeleteJobsResponse ¶
type DeleteJobsResponse struct { *responses.BaseResponse RequestId string `json:"RequestId" xml:"RequestId"` }
DeleteJobsResponse is the response struct for api DeleteJobs
func CreateDeleteJobsResponse ¶
func CreateDeleteJobsResponse() (response *DeleteJobsResponse)
CreateDeleteJobsResponse creates a response to parse from DeleteJobs response
type DependencyPolicy ¶
type DependencyPolicy struct {
JobDependency []JobDependencyItem `json:"JobDependency" xml:"JobDependency"`
}
DependencyPolicy is a nested struct in ehpcinstant response
type DeploymentPolicy ¶
type DeploymentPolicy struct { AllocationSpec string `json:"AllocationSpec" xml:"AllocationSpec"` Network Network `json:"Network" xml:"Network"` Tags []Tag `json:"Tags" xml:"Tags"` }
DeploymentPolicy is a nested struct in ehpcinstant response
type DescribeJobMetricDataRequest ¶
type DescribeJobMetricDataRequest struct { *requests.RpcRequest TaskName string `position:"Query" name:"TaskName"` JobId string `position:"Query" name:"JobId"` MetricName string `position:"Query" name:"MetricName"` ArrayIndex *[]string `position:"Query" name:"ArrayIndex" type:"Json"` }
DescribeJobMetricDataRequest is the request struct for api DescribeJobMetricData
func CreateDescribeJobMetricDataRequest ¶
func CreateDescribeJobMetricDataRequest() (request *DescribeJobMetricDataRequest)
CreateDescribeJobMetricDataRequest creates a request to invoke DescribeJobMetricData API
type DescribeJobMetricDataResponse ¶
type DescribeJobMetricDataResponse struct { *responses.BaseResponse RequestId string `json:"RequestId" xml:"RequestId"` Period int `json:"Period" xml:"Period"` DataPoints string `json:"DataPoints" xml:"DataPoints"` }
DescribeJobMetricDataResponse is the response struct for api DescribeJobMetricData
func CreateDescribeJobMetricDataResponse ¶
func CreateDescribeJobMetricDataResponse() (response *DescribeJobMetricDataResponse)
CreateDescribeJobMetricDataResponse creates a response to parse from DescribeJobMetricData response
type DescribeJobMetricLastRequest ¶
type DescribeJobMetricLastRequest struct { *requests.RpcRequest TaskName string `position:"Query" name:"TaskName"` JobId string `position:"Query" name:"JobId"` ArrayIndex *[]string `position:"Query" name:"ArrayIndex" type:"Json"` }
DescribeJobMetricLastRequest is the request struct for api DescribeJobMetricLast
func CreateDescribeJobMetricLastRequest ¶
func CreateDescribeJobMetricLastRequest() (request *DescribeJobMetricLastRequest)
CreateDescribeJobMetricLastRequest creates a request to invoke DescribeJobMetricLast API
type DescribeJobMetricLastResponse ¶
type DescribeJobMetricLastResponse struct { *responses.BaseResponse RequestId string `json:"RequestId" xml:"RequestId"` Metrics []MetricInfo `json:"Metrics" xml:"Metrics"` }
DescribeJobMetricLastResponse is the response struct for api DescribeJobMetricLast
func CreateDescribeJobMetricLastResponse ¶
func CreateDescribeJobMetricLastResponse() (response *DescribeJobMetricLastResponse)
CreateDescribeJobMetricLastResponse creates a response to parse from DescribeJobMetricLast response
type Disks ¶
type Disks struct {
Disk []Disk `json:"Disk" xml:"Disk"`
}
Disks is a nested struct in ehpcinstant response
type EnvironmentVar ¶
type EnvironmentVar struct { Name string `json:"Name" xml:"Name"` Value string `json:"Value" xml:"Value"` }
EnvironmentVar is a nested struct in ehpcinstant response
type EnvironmentVarsInGetJob ¶
type EnvironmentVarsInGetJob struct {
EnvironmentVar []EnvironmentVar `json:"EnvironmentVar" xml:"EnvironmentVar"`
}
EnvironmentVarsInGetJob is a nested struct in ehpcinstant response
type Event ¶
type Event struct {
Event []string `json:"Event" xml:"Event"`
}
Event is a nested struct in ehpcinstant response
type Executor ¶
type Executor struct { JobId string `json:"JobId" xml:"JobId"` StatusReason string `json:"StatusReason" xml:"StatusReason"` EndTime string `json:"EndTime" xml:"EndTime"` TaskName string `json:"TaskName" xml:"TaskName"` CreateTime string `json:"CreateTime" xml:"CreateTime"` ExecutorId string `json:"ExecutorId" xml:"ExecutorId"` Status string `json:"Status" xml:"Status"` JobName string `json:"JobName" xml:"JobName"` ArrayIndex int `json:"ArrayIndex" xml:"ArrayIndex"` HostName []string `json:"HostName" xml:"HostName"` IpAddress []string `json:"IpAddress" xml:"IpAddress"` }
Executor is a nested struct in ehpcinstant response
type ExecutorPolicy ¶
type ExecutorPolicy struct { MaxCount int `json:"MaxCount" xml:"MaxCount"` Parallelism int `json:"Parallelism" xml:"Parallelism"` ArraySpec ArraySpec `json:"ArraySpec" xml:"ArraySpec"` }
ExecutorPolicy is a nested struct in ehpcinstant response
type ExecutorStatus ¶
type ExecutorStatus struct {
ExecutorStatusItem []ExecutorStatusItem `json:"ExecutorStatus" xml:"ExecutorStatus"`
}
ExecutorStatus is a nested struct in ehpcinstant response
type ExecutorStatusItem ¶
type ExecutorStatusItem struct { ArrayId int `json:"ArrayId" xml:"ArrayId"` Status string `json:"Status" xml:"Status"` StatusReason string `json:"StatusReason" xml:"StatusReason"` CreateTime string `json:"CreateTime" xml:"CreateTime"` StartTime string `json:"StartTime" xml:"StartTime"` EndTime string `json:"EndTime" xml:"EndTime"` }
ExecutorStatusItem is a nested struct in ehpcinstant response
type ExecutorsInListExecutors ¶
type ExecutorsInListExecutors struct {
Executor []Executor `json:"Executor" xml:"Executor"`
}
ExecutorsInListExecutors is a nested struct in ehpcinstant response
type ExecutorsInListJobExecutors ¶
type ExecutorsInListJobExecutors struct {
Executor []Executor `json:"Executor" xml:"Executor"`
}
ExecutorsInListJobExecutors is a nested struct in ehpcinstant response
type ExitCodeAction ¶
type ExitCodeAction struct { ExitCode string `json:"ExitCode" xml:"ExitCode"` Action string `json:"Action" xml:"Action"` }
ExitCodeAction is a nested struct in ehpcinstant response
type ExitCodeActions ¶
type ExitCodeActions struct {
ExitCodeAction []ExitCodeAction `json:"ExitCodeAction" xml:"ExitCodeAction"`
}
ExitCodeActions is a nested struct in ehpcinstant response
type GetImageRequest ¶
type GetImageRequest struct { *requests.RpcRequest ImageType string `position:"Query" name:"ImageType"` ImageId string `position:"Query" name:"ImageId"` ImageCategory string `position:"Query" name:"ImageCategory"` AppId string `position:"Query" name:"AppId"` }
GetImageRequest is the request struct for api GetImage
func CreateGetImageRequest ¶
func CreateGetImageRequest() (request *GetImageRequest)
CreateGetImageRequest creates a request to invoke GetImage API
type GetImageResponse ¶
type GetImageResponse struct { *responses.BaseResponse RequestId string `json:"RequestId" xml:"RequestId"` Success bool `json:"Success" xml:"Success"` TotalCount int `json:"TotalCount" xml:"TotalCount"` Image Image `json:"Image" xml:"Image"` }
GetImageResponse is the response struct for api GetImage
func CreateGetImageResponse ¶
func CreateGetImageResponse() (response *GetImageResponse)
CreateGetImageResponse creates a response to parse from GetImage response
type GetJobRequest ¶
type GetJobRequest struct { *requests.RpcRequest JobId string `position:"Query" name:"JobId"` }
GetJobRequest is the request struct for api GetJob
func CreateGetJobRequest ¶
func CreateGetJobRequest() (request *GetJobRequest)
CreateGetJobRequest creates a request to invoke GetJob API
type GetJobResponse ¶
type GetJobResponse struct { *responses.BaseResponse RequestId string `json:"RequestId" xml:"RequestId"` JobInfo JobInfo `json:"JobInfo" xml:"JobInfo"` }
GetJobResponse is the response struct for api GetJob
func CreateGetJobResponse ¶
func CreateGetJobResponse() (response *GetJobResponse)
CreateGetJobResponse creates a response to parse from GetJob response
type HostNameInListExecutors ¶
type HostNameInListExecutors struct {
HostName []string `json:"HostName" xml:"HostName"`
}
HostNameInListExecutors is a nested struct in ehpcinstant response
type HostNameInListJobExecutors ¶
type HostNameInListJobExecutors struct {
HostName []string `json:"HostName" xml:"HostName"`
}
HostNameInListJobExecutors is a nested struct in ehpcinstant response
type Image ¶
type Image struct { Name string `json:"Name" xml:"Name"` UpdateTime string `json:"UpdateTime" xml:"UpdateTime"` Label string `json:"Label" xml:"Label"` ImageId string `json:"ImageId" xml:"ImageId"` Version string `json:"Version" xml:"Version"` CreateTime string `json:"CreateTime" xml:"CreateTime"` AppId string `json:"AppId" xml:"AppId"` Size string `json:"Size" xml:"Size"` ImageType string `json:"ImageType" xml:"ImageType"` Status string `json:"Status" xml:"Status"` Description string `json:"Description" xml:"Description"` VMImageSpec VMImageSpec `json:"VMImageSpec" xml:"VMImageSpec"` ContainerImageSpec ContainerImageSpec `json:"ContainerImageSpec" xml:"ContainerImageSpec"` }
Image is a nested struct in ehpcinstant response
type Images ¶
type Images struct {
Image []Image `json:"Image" xml:"Image"`
}
Images is a nested struct in ehpcinstant response
type IpAddressInListExecutors ¶
type IpAddressInListExecutors struct {
IpAddress []string `json:"IpAddress" xml:"IpAddress"`
}
IpAddressInListExecutors is a nested struct in ehpcinstant response
type IpAddressInListJobExecutors ¶
type IpAddressInListJobExecutors struct {
IpAddress []string `json:"IpAddress" xml:"IpAddress"`
}
IpAddressInListJobExecutors is a nested struct in ehpcinstant response
type Job ¶
type Job struct { JobName string `json:"JobName" xml:"JobName"` JobId string `json:"JobId" xml:"JobId"` JobDescription string `json:"JobDescription" xml:"JobDescription"` CreateTime string `json:"CreateTime" xml:"CreateTime"` OwnerUid string `json:"OwnerUid" xml:"OwnerUid"` Status string `json:"Status" xml:"Status"` TaskCount int `json:"TaskCount" xml:"TaskCount"` ExecutorCount int `json:"ExecutorCount" xml:"ExecutorCount"` StartTime string `json:"StartTime" xml:"StartTime"` EndTime string `json:"EndTime" xml:"EndTime"` TaskSustainable bool `json:"TaskSustainable" xml:"TaskSustainable"` }
Job is a nested struct in ehpcinstant response
type JobDependency ¶
type JobDependency struct {
JobDependencyItem []JobDependencyItem `json:"JobDependency" xml:"JobDependency"`
}
JobDependency is a nested struct in ehpcinstant response
type JobDependencyItem ¶
type JobDependencyItem struct { JobId string `json:"JobId" xml:"JobId"` Type string `json:"Type" xml:"Type"` }
JobDependencyItem is a nested struct in ehpcinstant response
type JobInfo ¶
type JobInfo struct { JobId string `json:"JobId" xml:"JobId"` JobName string `json:"JobName" xml:"JobName"` JobDescription string `json:"JobDescription" xml:"JobDescription"` JobScheduler string `json:"JobScheduler" xml:"JobScheduler"` CreateTime string `json:"CreateTime" xml:"CreateTime"` StartTime string `json:"StartTime" xml:"StartTime"` EndTime string `json:"EndTime" xml:"EndTime"` Status string `json:"Status" xml:"Status"` DeploymentPolicy DeploymentPolicy `json:"DeploymentPolicy" xml:"DeploymentPolicy"` SecurityPolicy SecurityPolicy `json:"SecurityPolicy" xml:"SecurityPolicy"` DependencyPolicy DependencyPolicy `json:"DependencyPolicy" xml:"DependencyPolicy"` MonitorPolicy MonitorPolicy `json:"MonitorPolicy" xml:"MonitorPolicy"` Tasks []Task `json:"Tasks" xml:"Tasks"` }
JobInfo is a nested struct in ehpcinstant response
type JobList ¶
type JobList struct {
Job []Job `json:"Job" xml:"Job"`
}
JobList is a nested struct in ehpcinstant response
type ListExecutorsFilter ¶
type ListExecutorsFilter struct { TimeCreatedAfter string `name:"TimeCreatedAfter"` IpAddresses *[]string `name:"IpAddresses" type:"Repeated"` TimeCreatedBefore string `name:"TimeCreatedBefore"` ExecutorIds *[]string `name:"ExecutorIds" type:"Repeated"` JobName string `name:"JobName"` }
ListExecutorsFilter is a repeated param struct in ListExecutorsRequest
type ListExecutorsRequest ¶
type ListExecutorsRequest struct { *requests.RpcRequest PageNumber string `position:"Query" name:"PageNumber"` Filter ListExecutorsFilter `position:"Query" name:"Filter" type:"Struct"` PageSize string `position:"Query" name:"PageSize"` }
ListExecutorsRequest is the request struct for api ListExecutors
func CreateListExecutorsRequest ¶
func CreateListExecutorsRequest() (request *ListExecutorsRequest)
CreateListExecutorsRequest creates a request to invoke ListExecutors API
type ListExecutorsResponse ¶
type ListExecutorsResponse struct { *responses.BaseResponse RequestId string `json:"RequestId" xml:"RequestId"` PageSize string `json:"PageSize" xml:"PageSize"` PageNumber string `json:"PageNumber" xml:"PageNumber"` TotalCount string `json:"TotalCount" xml:"TotalCount"` Executors []Executor `json:"Executors" xml:"Executors"` }
ListExecutorsResponse is the response struct for api ListExecutors
func CreateListExecutorsResponse ¶
func CreateListExecutorsResponse() (response *ListExecutorsResponse)
CreateListExecutorsResponse creates a response to parse from ListExecutors response
type ListImagesRequest ¶
type ListImagesRequest struct { *requests.RpcRequest ImageType string `position:"Query" name:"ImageType"` ImageNames *[]string `position:"Query" name:"ImageNames" type:"Json"` PageNumber requests.Integer `position:"Query" name:"PageNumber"` ImageCategory string `position:"Query" name:"ImageCategory"` AppIds *[]string `position:"Query" name:"AppIds" type:"Json"` PageSize requests.Integer `position:"Query" name:"PageSize"` ImageIds *[]string `position:"Query" name:"ImageIds" type:"Json"` }
ListImagesRequest is the request struct for api ListImages
func CreateListImagesRequest ¶
func CreateListImagesRequest() (request *ListImagesRequest)
CreateListImagesRequest creates a request to invoke ListImages API
type ListImagesResponse ¶
type ListImagesResponse struct { *responses.BaseResponse RequestId string `json:"RequestId" xml:"RequestId"` Success bool `json:"Success" xml:"Success"` TotalCount int `json:"TotalCount" xml:"TotalCount"` PageSize int64 `json:"PageSize" xml:"PageSize"` PageNumber int64 `json:"PageNumber" xml:"PageNumber"` Images []Image `json:"Images" xml:"Images"` }
ListImagesResponse is the response struct for api ListImages
func CreateListImagesResponse ¶
func CreateListImagesResponse() (response *ListImagesResponse)
CreateListImagesResponse creates a response to parse from ListImages response
type ListJobExecutorsRequest ¶
type ListJobExecutorsRequest struct { *requests.RpcRequest TaskName string `position:"Query" name:"TaskName"` PageNumber string `position:"Query" name:"PageNumber"` JobId string `position:"Query" name:"JobId"` PageSize string `position:"Query" name:"PageSize"` }
ListJobExecutorsRequest is the request struct for api ListJobExecutors
func CreateListJobExecutorsRequest ¶
func CreateListJobExecutorsRequest() (request *ListJobExecutorsRequest)
CreateListJobExecutorsRequest creates a request to invoke ListJobExecutors API
type ListJobExecutorsResponse ¶
type ListJobExecutorsResponse struct { *responses.BaseResponse RequestId string `json:"RequestId" xml:"RequestId"` JobId string `json:"JobId" xml:"JobId"` TaskName string `json:"TaskName" xml:"TaskName"` PageSize string `json:"PageSize" xml:"PageSize"` PageNumber string `json:"PageNumber" xml:"PageNumber"` TotalCount string `json:"TotalCount" xml:"TotalCount"` Executors []Executor `json:"Executors" xml:"Executors"` }
ListJobExecutorsResponse is the response struct for api ListJobExecutors
func CreateListJobExecutorsResponse ¶
func CreateListJobExecutorsResponse() (response *ListJobExecutorsResponse)
CreateListJobExecutorsResponse creates a response to parse from ListJobExecutors response
type ListJobsFilter ¶
type ListJobsFilter struct { JobId string `name:"JobId"` TimeCreatedAfter string `name:"TimeCreatedAfter"` TimeCreatedBefore string `name:"TimeCreatedBefore"` JobName string `name:"JobName"` Status string `name:"Status"` }
ListJobsFilter is a repeated param struct in ListJobsRequest
type ListJobsRequest ¶
type ListJobsRequest struct { *requests.RpcRequest PageNumber string `position:"Query" name:"PageNumber"` Filter ListJobsFilter `position:"Query" name:"Filter" type:"Struct"` PageSize string `position:"Query" name:"PageSize"` SortBy ListJobsSortBy `position:"Query" name:"SortBy" type:"Struct"` }
ListJobsRequest is the request struct for api ListJobs
func CreateListJobsRequest ¶
func CreateListJobsRequest() (request *ListJobsRequest)
CreateListJobsRequest creates a request to invoke ListJobs API
type ListJobsResponse ¶
type ListJobsResponse struct { *responses.BaseResponse TotalCount int `json:"TotalCount" xml:"TotalCount"` RequestId string `json:"RequestId" xml:"RequestId"` PageSize int `json:"PageSize" xml:"PageSize"` PageNumber int `json:"PageNumber" xml:"PageNumber"` JobList []Job `json:"JobList" xml:"JobList"` }
ListJobsResponse is the response struct for api ListJobs
func CreateListJobsResponse ¶
func CreateListJobsResponse() (response *ListJobsResponse)
CreateListJobsResponse creates a response to parse from ListJobs response
type ListJobsSortBy ¶
ListJobsSortBy is a repeated param struct in ListJobsRequest
type LogSpec ¶
type LogSpec struct { Project string `json:"Project" xml:"Project"` Logstore string `json:"Logstore" xml:"Logstore"` MachineGroup string `json:"MachineGroup" xml:"MachineGroup"` Shard string `json:"Shard" xml:"Shard"` ExpireTime string `json:"ExpireTime" xml:"ExpireTime"` }
LogSpec is a nested struct in ehpcinstant response
type MNSTopic ¶
type MNSTopic struct {
MNSTopicItem []MNSTopicItem `json:"MNSTopic" xml:"MNSTopic"`
}
MNSTopic is a nested struct in ehpcinstant response
type MNSTopicItem ¶
type MNSTopicItem struct { TopicLocation string `json:"TopicLocation" xml:"TopicLocation"` Event []string `json:"Event" xml:"Event"` }
MNSTopicItem is a nested struct in ehpcinstant response
type MetricInfo ¶
type MetricInfo struct { ArrayIndex int `json:"ArrayIndex" xml:"ArrayIndex"` Metric string `json:"Metric" xml:"Metric"` }
MetricInfo is a nested struct in ehpcinstant response
type Metrics ¶
type Metrics struct {
MetricInfo []MetricInfo `json:"MetricInfo" xml:"MetricInfo"`
}
Metrics is a nested struct in ehpcinstant response
type MonitorPolicy ¶
type MonitorPolicy struct { NotificationSpec NotificationSpec `json:"NotificationSpec" xml:"NotificationSpec"` LogSpec LogSpec `json:"LogSpec" xml:"LogSpec"` }
MonitorPolicy is a nested struct in ehpcinstant response
type Network ¶
type Network struct { EnableERI bool `json:"EnableERI" xml:"EnableERI"` Vswitch []string `json:"Vswitch" xml:"Vswitch"` }
Network is a nested struct in ehpcinstant response
type NotificationSpec ¶
type NotificationSpec struct {
MNSTopic []MNSTopicItem `json:"MNSTopic" xml:"MNSTopic"`
}
NotificationSpec is a nested struct in ehpcinstant response
type RegistryCredential ¶
type RegistryCredential struct { Server string `json:"Server" xml:"Server"` UserName string `json:"UserName" xml:"UserName"` Password string `json:"Password" xml:"Password"` }
RegistryCredential is a nested struct in ehpcinstant response
type RemoveImageRequest ¶
type RemoveImageRequest struct { *requests.RpcRequest ImageType string `position:"Query" name:"ImageType"` ImageId string `position:"Query" name:"ImageId"` AppId string `position:"Query" name:"AppId"` }
RemoveImageRequest is the request struct for api RemoveImage
func CreateRemoveImageRequest ¶
func CreateRemoveImageRequest() (request *RemoveImageRequest)
CreateRemoveImageRequest creates a request to invoke RemoveImage API
type RemoveImageResponse ¶
type RemoveImageResponse struct { *responses.BaseResponse RequestId string `json:"RequestId" xml:"RequestId"` Success bool `json:"Success" xml:"Success"` }
RemoveImageResponse is the response struct for api RemoveImage
func CreateRemoveImageResponse ¶
func CreateRemoveImageResponse() (response *RemoveImageResponse)
CreateRemoveImageResponse creates a response to parse from RemoveImage response
type Resource ¶
type Resource struct { Cores float64 `json:"Cores" xml:"Cores"` EnableHT bool `json:"EnableHT" xml:"EnableHT"` Memory int `json:"Memory" xml:"Memory"` Disks []Disk `json:"Disks" xml:"Disks"` }
Resource is a nested struct in ehpcinstant response
type RetryPolicy ¶
type RetryPolicy struct { RetryCount int `json:"RetryCount" xml:"RetryCount"` ExitCodeActions []ExitCodeAction `json:"ExitCodeActions" xml:"ExitCodeActions"` }
RetryPolicy is a nested struct in ehpcinstant response
type SecurityGroup ¶
type SecurityGroup struct {
SecurityGroupIds []string `json:"SecurityGroupIds" xml:"SecurityGroupIds"`
}
SecurityGroup is a nested struct in ehpcinstant response
type SecurityGroupIds ¶
type SecurityGroupIds struct {
SecurityGroupId []string `json:"SecurityGroupId" xml:"SecurityGroupId"`
}
SecurityGroupIds is a nested struct in ehpcinstant response
type SecurityPolicy ¶
type SecurityPolicy struct {
SecurityGroup SecurityGroup `json:"SecurityGroup" xml:"SecurityGroup"`
}
SecurityPolicy is a nested struct in ehpcinstant response
type Tags ¶
type Tags struct {
Tag []Tag `json:"Tag" xml:"Tag"`
}
Tags is a nested struct in ehpcinstant response
type Task ¶
type Task struct { TaskName string `json:"TaskName" xml:"TaskName"` TaskSustainable bool `json:"TaskSustainable" xml:"TaskSustainable"` TaskSpec TaskSpec `json:"TaskSpec" xml:"TaskSpec"` ExecutorPolicy ExecutorPolicy `json:"ExecutorPolicy" xml:"ExecutorPolicy"` ExecutorStatus []ExecutorStatusItem `json:"ExecutorStatus" xml:"ExecutorStatus"` }
Task is a nested struct in ehpcinstant response
type TaskExecutor ¶
type TaskExecutor struct {
TaskExecutorItem []TaskExecutorItem `json:"TaskExecutor" xml:"TaskExecutor"`
}
TaskExecutor is a nested struct in ehpcinstant response
type TaskExecutorItem ¶
type TaskExecutorItem struct { Container Container `json:"Container" xml:"Container"` VM VM `json:"VM" xml:"VM"` }
TaskExecutorItem is a nested struct in ehpcinstant response
type TaskSpec ¶
type TaskSpec struct { TaskDuration string `json:"TaskDuration" xml:"TaskDuration"` Resource Resource `json:"Resource" xml:"Resource"` RetryPolicy RetryPolicy `json:"RetryPolicy" xml:"RetryPolicy"` TaskExecutor []TaskExecutorItem `json:"TaskExecutor" xml:"TaskExecutor"` VolumeMount []VolumeMountItem `json:"VolumeMount" xml:"VolumeMount"` }
TaskSpec is a nested struct in ehpcinstant response
type Tasks ¶
type Tasks struct {
Task []Task `json:"Task" xml:"Task"`
}
Tasks is a nested struct in ehpcinstant response
type VM ¶
type VM struct { Image string `json:"Image" xml:"Image"` PrologScript string `json:"PrologScript" xml:"PrologScript"` Script string `json:"Script" xml:"Script"` AppId string `json:"AppId" xml:"AppId"` EnvironmentVars []EnvironmentVar `json:"EnvironmentVars" xml:"EnvironmentVars"` }
VM is a nested struct in ehpcinstant response
type VMImageSpec ¶
type VMImageSpec struct { ImageId string `json:"ImageId" xml:"ImageId"` OsTag string `json:"OsTag" xml:"OsTag"` Platform string `json:"Platform" xml:"Platform"` Version string `json:"Version" xml:"Version"` Architecture string `json:"Architecture" xml:"Architecture"` }
VMImageSpec is a nested struct in ehpcinstant response
type VolumeMount ¶
type VolumeMount struct {
VolumeMountItem []VolumeMountItem `json:"VolumeMount" xml:"VolumeMount"`
}
VolumeMount is a nested struct in ehpcinstant response
type VolumeMountItem ¶
type VolumeMountItem struct { MountPath string `json:"MountPath" xml:"MountPath"` VolumeDriver string `json:"VolumeDriver" xml:"VolumeDriver"` MountOptions string `json:"MountOptions" xml:"MountOptions"` }
VolumeMountItem is a nested struct in ehpcinstant response
Source Files ¶
- add_image.go
- client.go
- create_job.go
- delete_jobs.go
- describe_job_metric_data.go
- describe_job_metric_last.go
- get_image.go
- get_job.go
- list_executors.go
- list_images.go
- list_job_executors.go
- list_jobs.go
- remove_image.go
- struct_array_spec.go
- struct_container.go
- struct_container_image_spec.go
- struct_dependency_policy.go
- struct_deployment_policy.go
- struct_disk.go
- struct_disks.go
- struct_environment_var.go
- struct_environment_vars_in_get_job.go
- struct_event.go
- struct_executor.go
- struct_executor_policy.go
- struct_executor_status.go
- struct_executor_status_item.go
- struct_executors_in_list_executors.go
- struct_executors_in_list_job_executors.go
- struct_exit_code_action.go
- struct_exit_code_actions.go
- struct_host_name_in_list_executors.go
- struct_host_name_in_list_job_executors.go
- struct_image.go
- struct_images.go
- struct_ip_address_in_list_executors.go
- struct_ip_address_in_list_job_executors.go
- struct_job.go
- struct_job_dependency.go
- struct_job_dependency_item.go
- struct_job_info.go
- struct_job_list.go
- struct_log_spec.go
- struct_metric_info.go
- struct_metrics.go
- struct_mns_topic.go
- struct_mns_topic_item.go
- struct_monitor_policy.go
- struct_network.go
- struct_notification_spec.go
- struct_registry_credential.go
- struct_resource.go
- struct_retry_policy.go
- struct_security_group.go
- struct_security_group_ids.go
- struct_security_policy.go
- struct_tag.go
- struct_tags.go
- struct_task.go
- struct_task_executor.go
- struct_task_executor_item.go
- struct_task_spec.go
- struct_tasks.go
- struct_vm.go
- struct_vm_image_spec.go
- struct_volume_mount.go
- struct_volume_mount_item.go
- struct_vswitch.go