model

package
v0.9.201 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 22, 2024 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

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 BasePageRequest struct {
	Ascending bool   `json:"ascending,omitempty"`
	Sort      string `json:"sort,omitempty"`
	PageNo    int    `json:"pageNo,omitempty"`
	PageSize  int    `json:"pageSize,omitempty"`
}

type BasePageResponse

type BasePageResponse struct {
	PageNo     int    `json:"pageNo,omitempty"`
	PageSize   int    `json:"pageSize,omitempty"`
	TotalCount int    `json:"totalCount,omitempty"`
	OrderBy    string `json:"orderBy,omitempty"`
	Order      string `json:"order,omitempty"`
}

type BaseResponse

type BaseResponse struct {
	Success bool   `json:"success,omitempty"`
	Msg     string `json:"msg,omitempty"`
	Code    int    `json:"code,omitempty"`
}

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 CheckTemplateResult struct {
	IsValid bool   `json:"isValid,omitempty"`
	Reason  string `json:"reason,omitempty"`
}

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 KV

type KV struct {
	Key   string `json:"key,omitempty"`
	Value string `json:"value,omitempty"`
}
type Link struct {
	Src string `json:"src,omitempty"`
	Dst string `json:"dst,omitempty"`
}

type Log

type Log struct {
	Timestamp string            `json:"timestamp,omitempty"`
	Level     string            `json:"level,omitempty"`
	Msg       string            `json:"msg,omitempty"`
	Tags      map[string]string `json:"tags,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 RateControl struct {
	Ratio float64 `json:"ratio,omitempty"`
	Count int     `json:"count,omitempty"`
}

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"
)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL