Documentation
¶
Index ¶
- type BaseExecutionResponse
- type BasePageRequest
- type BasePageResponse
- type BaseResponse
- type BaseTemplateResponse
- type CheckTemplateResponse
- type CheckTemplateResult
- type Execution
- type GetOperatorListResponse
- type GetOperatorListResult
- type GetTemplateListRequest
- type GetTemplateListResponse
- type GetTemplateListResult
- type KV
- type Link
- type Log
- type Operator
- type OperatorSpec
- type Property
- type RateControl
- type Task
- type Template
- type TemplateType
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BaseExecutionResponse ¶
type BaseExecutionResponse struct {
BaseResponse
Result *Execution `json:"result,omitempty"`
}
type BasePageRequest ¶
type BasePageResponse ¶
type BaseResponse ¶
type BaseTemplateResponse ¶
type BaseTemplateResponse struct {
BaseResponse
Result *Template `json:"result,omitempty"`
}
type CheckTemplateResponse ¶
type CheckTemplateResponse struct {
BaseResponse
Result *CheckTemplateResult `json:"result,omitempty"`
}
type CheckTemplateResult ¶
type Execution ¶
type Execution struct {
ID string `json:"id,omitempty"`
Description string `json:"description,omitempty"`
Template *Template `json:"template,omitempty"`
CreatedTimestamp int64 `json:"createdTimestamp,omitempty"`
UpdatedTimestamp int64 `json:"updatedTimestamp,omitempty"`
FinishedTimestamp int64 `json:"finishedTimestamp,omitempty"`
State string `json:"state,omitempty"`
Properties map[string]interface{} `json:"properties,omitempty"`
Tags []*KV `json:"tags,omitempty"`
Tasks []*Task `json:"tasks,omitempty"`
Trigger string `json:"trigger,omitempty"`
}
type GetOperatorListResponse ¶
type GetOperatorListResponse struct {
BaseResponse
Result *GetOperatorListResult `json:"result,omitempty"`
}
type GetOperatorListResult ¶
type GetOperatorListResult struct {
BasePageRequest
Operators []*OperatorSpec `json:"operators,omitempty"`
}
type GetTemplateListRequest ¶
type GetTemplateListRequest struct {
BasePageRequest
Name string `json:"name,omitempty"`
Type string `json:"type,omitempty"`
}
type GetTemplateListResponse ¶
type GetTemplateListResponse struct {
BaseResponse
Result *GetTemplateListResult `json:"result,omitempty"`
}
type GetTemplateListResult ¶
type GetTemplateListResult struct {
BasePageRequest
Templates []*Template `json:"templates,omitempty"`
}
type Operator ¶
type Operator struct {
Name string `json:"name,omitempty"`
Description string `json:"description,omitempty"`
Operator string `json:"operator,omitempty"`
Retries int `json:"retries,omitempty"`
RetryInterval int `json:"retryInterval,omitempty"`
Timeout int `json:"timeout,omitempty"`
ParallelismControl *RateControl `json:"parallelismControl,omitempty"`
AllowedFailureControl *RateControl `json:"allowedFailureControl,omitempty"`
Manually bool `json:"manually,omitempty"`
ScheduleDelayMilli int `json:"scheduleDelayMilli,omitempty"`
PauseOnFailure bool `json:"pauseOnFailure,omitempty"`
Properties map[string]interface{} `json:"properties,omitempty"`
InitContext map[string]interface{} `json:"initContext,omitempty"`
}
type OperatorSpec ¶
type OperatorSpec struct {
Name string `json:"name,omitempty"`
Label string `json:"label,omitempty"`
Description string `json:"description,omitempty"`
Operator string `json:"operator,omitempty"`
Retries int `json:"retries,omitempty"`
RetryInterval int `json:"retryInterval,omitempty"`
Timeout int `json:"timeout,omitempty"`
ParallelismRatio float64 `json:"parallelismRatio,omitempty"`
ParallelismCount int `json:"parallelismCount,omitempty"`
AllowedFailureRatio float64 `json:"allowedFailureRatio,omitempty"`
AllowedFailureCount int `json:"allowedFailureCount,omitempty"`
Manually bool `json:"manually,omitempty"`
ScheduleDelayMilli int `json:"scheduleDelayMilli,omitempty"`
PauseOnFailure bool `json:"pauseOnFailure,omitempty"`
Properties []*Property `json:"properties,omitempty"`
InitContext map[string]interface{} `json:"initContext,omitempty"`
}
type Property ¶
type Property struct {
Name string `json:"name,omitempty"`
Type string `json:"type,omitempty"`
Required bool `json:"required,omitempty"`
Multiple bool `json:"multiple,omitempty"`
Label string `json:"label,omitempty"`
Description string `json:"description,omitempty"`
Options []interface{} `json:"options,omitempty"`
Value interface{} `json:"value,omitempty"`
DefaultValue interface{} `json:"defaultValue,omitempty"`
Unit string `json:"unit,omitempty"`
}
type RateControl ¶
type Task ¶
type Task struct {
ID string `json:"id,omitempty"`
LoopIndex int `json:"loopIndex,omitempty"`
Revision int64 `json:"revision,omitempty"`
CreatedTimestamp int64 `json:"createdTimestamp,omitempty"`
UpdatedTimestamp int64 `json:"updatedTimestamp,omitempty"`
FinishedTimestamp int64 `json:"finishedTimestamp,omitempty"`
State string `json:"state,omitempty"`
Operator *Operator `json:"operator,omitempty"`
Reason string `json:"reason,omitempty"`
InitContext map[string]interface{} `json:"initContext,omitempty"`
Context map[string]interface{} `json:"context,omitempty"`
OutputContext map[string]interface{} `json:"outputContext,omitempty"`
Tries int `json:"tries,omitempty"`
Children []*Task `json:"children,omitempty"`
Log []*Log `json:"log,omitempty"`
}
type Template ¶
type Template struct {
ID string `json:"id,omitempty"`
Name string `json:"name,omitempty"`
Ref string `json:"ref,omitempty"`
Type TemplateType `json:"type,omitempty"`
Description string `json:"description,omitempty"`
Tags []*KV `json:"tags,omitempty"`
Operators []*Operator `json:"operators,omitempty"`
Properties []*Property `json:"properties,omitempty"`
Links []*Link `json:"links,omitempty"`
Linear bool `json:"linear,omitempty"`
}
type TemplateType ¶
type TemplateType string
const ( TemplateTypeGlobal TemplateType = "GLOBAL" TemplateTypeIndividual TemplateType = "INDIVIDUAL" )
Click to show internal directories.
Click to hide internal directories.