Documentation ¶
Index ¶
- Variables
- type AccessKeyRequest
- type AddonArgsResponse
- type AddonDefinition
- type AddonPhase
- type AddonRegistryMeta
- type AddonStatusResponse
- type ApplicationBase
- type ApplicationDeployRequest
- type ApplicationDeployResponse
- type ApplicationRequest
- type ApplicationResourceInfo
- type ApplicationResponse
- type ApplicationRevisionBase
- type ApplicationStatisticsResponse
- type ApplicationStatusResponse
- type ApplicationTemplateBase
- type ApplicationTemplateVersion
- type ApplicationTrait
- type ClusterBase
- type ClusterResourceInfo
- type ClusterSelector
- type ClusterTarget
- type ComponentBase
- type ComponentListResponse
- type ComponentSelector
- type ConnectCloudClusterRequest
- type CreateAddonRegistryRequest
- type CreateApplicationEnvRequest
- type CreateApplicationRequest
- type CreateApplicationTemplateRequest
- type CreateApplicationTraitRequest
- type CreateCloudClusterRequest
- type CreateCloudClusterResponse
- type CreateClusterNamespaceRequest
- type CreateClusterNamespaceResponse
- type CreateClusterRequest
- type CreateComponentRequest
- type CreateDeliveryTargetRequest
- type CreateNamespaceRequest
- type CreatePolicyRequest
- type CreateWorkflowRequest
- type DefinitionBase
- type DeliveryTargetBase
- type DetailAddonResponse
- type DetailApplicationResponse
- type DetailClusterResponse
- type DetailComponentResponse
- type DetailDefinitionResponse
- type DetailDeliveryTargetResponse
- type DetailEnvBindingResponse
- type DetailPolicyResponse
- type DetailRevisionResponse
- type DetailWorkflowRecordResponse
- type DetailWorkflowResponse
- type EmptyResponse
- type EnableAddonRequest
- type EnablingProgress
- type EnvBinding
- type EnvBindingBase
- type EnvBindingList
- type ListAddonRegistryResponse
- type ListAddonResponse
- type ListApplicatioOptions
- type ListApplicationComponentOptions
- type ListApplicationEnvBinding
- type ListApplicationPolicy
- type ListApplicationResponse
- type ListCloudClusterCreationResponse
- type ListCloudClusterResponse
- type ListClusterResponse
- type ListDefinitionResponse
- type ListDeliveryTargetResponse
- type ListEnabledAddonResponse
- type ListNamespaceResponse
- type ListPolicyDefinitionResponse
- type ListRevisionsResponse
- type ListWorkflowRecordsResponse
- type ListWorkflowResponse
- type NamespaceBase
- type NamespaceDetailResponse
- type PolicyBase
- type PolicyDefinition
- type PutApplicationEnvRequest
- type UpdateAddonRegistryRequest
- type UpdateApplicationComponentRequest
- type UpdateApplicationRequest
- type UpdateApplicationTraitRequest
- type UpdateDeliveryTargetRequest
- type UpdatePolicyRequest
- type UpdateWorkflowRequest
- type VelaQLViewResponse
- type WorkflowBase
- type WorkflowRecord
- type WorkflowStep
Constants ¶
This section is empty.
Variables ¶
var ( // CtxKeyApplication request context key of application CtxKeyApplication = "application" // CtxKeyWorkflow request context key of workflow CtxKeyWorkflow = "workflow" // CtxKeyDeliveryTarget request context key of workflow CtxKeyDeliveryTarget = "delivery-target" // CtxKeyApplicationEnvBinding request context key of env binding CtxKeyApplicationEnvBinding = "envbinding-policy" // CtxKeyApplicationComponent request context key of component CtxKeyApplicationComponent = "component" )
Functions ¶
This section is empty.
Types ¶
type AccessKeyRequest ¶ added in v1.2.0
type AccessKeyRequest struct { AccessKeyID string `json:"accessKeyID"` AccessKeySecret string `json:"accessKeySecret"` }
AccessKeyRequest request parameters to access cloud provider
type AddonArgsResponse ¶ added in v1.2.0
AddonArgsResponse defines the response of addon args
type AddonDefinition ¶ added in v1.2.0
type AddonDefinition struct { Name string `json:"name,omitempty"` // can be component/trait...definition DefType string `json:"type,omitempty"` Description string `json:"description,omitempty"` }
AddonDefinition is definition an addon can provide
type AddonPhase ¶
type AddonPhase string
AddonPhase defines the phase of an addon
const ( // AddonPhaseDisabled indicates the addon is disabled AddonPhaseDisabled AddonPhase = "disabled" // AddonPhaseEnabled indicates the addon is enabled AddonPhaseEnabled AddonPhase = "enabled" // AddonPhaseEnabling indicates the addon is enabling AddonPhaseEnabling AddonPhase = "enabling" )
type AddonRegistryMeta ¶
type AddonRegistryMeta struct { Name string `json:"name" validate:"required"` Git *addon.GitAddonSource `json:"git,omitempty"` OSS *addon.OSSAddonSource `json:"oss,omitempty"` }
AddonRegistryMeta defines the format for a single addon registry
type AddonStatusResponse ¶
type AddonStatusResponse struct { Name string `json:"name"` Phase AddonPhase `json:"phase"` Args map[string]string `json:"args"` EnablingProgress *EnablingProgress `json:"enabling_progress,omitempty"` }
AddonStatusResponse defines the format of addon status response
type ApplicationBase ¶
type ApplicationBase struct { Name string `json:"name"` Alias string `json:"alias"` Namespace string `json:"namespace"` Description string `json:"description"` CreateTime time.Time `json:"createTime"` UpdateTime time.Time `json:"updateTime"` Icon string `json:"icon"` Labels map[string]string `json:"labels,omitempty"` }
ApplicationBase application base model
type ApplicationDeployRequest ¶ added in v1.2.0
type ApplicationDeployRequest struct { WorkflowName string `json:"workflowName"` // User note message, optional Note string `json:"note"` // TriggerType the event trigger source, Web or API TriggerType string `json:"triggerType" validate:"oneof=web api"` // Force set to True to ignore unfinished events. Force bool `json:"force"` }
ApplicationDeployRequest the application deploy or update event request
type ApplicationDeployResponse ¶ added in v1.2.0
type ApplicationDeployResponse struct {
ApplicationRevisionBase
}
ApplicationDeployResponse application deploy response body
type ApplicationRequest ¶
type ApplicationRequest struct { Components []common.ApplicationComponent `json:"components"` Policies []v1beta1.AppPolicy `json:"policies,omitempty"` Workflow *v1beta1.Workflow `json:"workflow,omitempty"` }
ApplicationRequest represents application request for APIServer
type ApplicationResourceInfo ¶
type ApplicationResourceInfo struct {
ComponentNum int64 `json:"componentNum"`
}
ApplicationResourceInfo application-level resource consumption statistics
type ApplicationResponse ¶
type ApplicationResponse struct { APIVersion string `json:"apiVersion"` Kind string `json:"kind"` Spec v1beta1.ApplicationSpec `json:"spec"` Status common.AppStatus `json:"status"` }
ApplicationResponse represents application response for APIServer
type ApplicationRevisionBase ¶ added in v1.2.0
type ApplicationRevisionBase struct { CreateTime time.Time `json:"createTime"` Version string `json:"version"` Status string `json:"status"` Reason string `json:"reason"` DeployUser string `json:"deployUser"` Note string `json:"note"` EnvName string `json:"envName"` // SourceType the event trigger source, Web or API TriggerType string `json:"triggerType"` }
ApplicationRevisionBase application revision base spec
type ApplicationStatisticsResponse ¶ added in v1.2.0
type ApplicationStatisticsResponse struct { EnvCount int64 `json:"envCount"` DeliveryTargetCount int64 `json:"deliveryTargetCount"` RevisonCount int64 `json:"revisonCount"` WorkflowCount int64 `json:"workflowCount"` }
ApplicationStatisticsResponse application statistics response body
type ApplicationStatusResponse ¶ added in v1.2.0
type ApplicationStatusResponse struct { EnvName string `json:"envName"` Status *common.AppStatus `json:"status"` }
ApplicationStatusResponse application status response body
type ApplicationTemplateBase ¶
type ApplicationTemplateBase struct { TemplateName string `json:"templateName"` Versions []*ApplicationTemplateVersion `json:"versions,omitempty"` CreateTime time.Time `json:"createTime"` UpdateTime time.Time `json:"updateTime"` }
ApplicationTemplateBase app template model
type ApplicationTemplateVersion ¶
type ApplicationTemplateVersion struct { Version string `json:"version"` Description string `json:"description"` CreateUser string `json:"createUser"` CreateTime time.Time `json:"createTime"` UpdateTime time.Time `json:"updateTime"` }
ApplicationTemplateVersion template version model
type ApplicationTrait ¶ added in v1.2.0
type ApplicationTrait struct { Name string `json:"name"` Type string `json:"type"` Alias string `json:"alias,omitempty"` Description string `json:"description,omitempty"` // Properties json data Properties *model.JSONStruct `json:"properties"` CreateTime time.Time `json:"createTime"` UpdateTime time.Time `json:"updateTime"` }
ApplicationTrait application trait
type ClusterBase ¶
type ClusterBase struct { Name string `json:"name"` Alias string `json:"alias" optional:"true" validate:"checkalias"` Description string `json:"description" optional:"true"` Icon string `json:"icon" optional:"true"` Labels map[string]string `json:"labels" optional:"true"` Provider model.ProviderInfo `json:"providerInfo"` APIServerURL string `json:"apiServerURL"` DashboardURL string `json:"dashboardURL"` Status string `json:"status"` Reason string `json:"reason"` }
ClusterBase cluster base model
type ClusterResourceInfo ¶
type ClusterResourceInfo struct { WorkerNumber int `json:"workerNumber"` MasterNumber int `json:"masterNumber"` MemoryCapacity int64 `json:"memoryCapacity"` CPUCapacity int64 `json:"cpuCapacity"` GPUCapacity int64 `json:"gpuCapacity,omitempty"` PodCapacity int64 `json:"podCapacity"` MemoryUsed int64 `json:"memoryUsed"` CPUUsed int64 `json:"cpuUsed"` GPUUsed int64 `json:"gpuUsed,omitempty"` PodUsed int64 `json:"podUsed"` StorageClassList []string `json:"storageClassList,omitempty"` }
ClusterResourceInfo resource info of cluster
type ClusterSelector ¶ added in v1.2.0
type ClusterSelector struct { Name string `json:"name" validate:"checkname"` // Adapt to a scenario where only one Namespace is available or a user-defined Namespace is available. Namespace string `json:"namespace,omitempty"` }
ClusterSelector cluster selector
type ClusterTarget ¶ added in v1.2.0
type ClusterTarget struct { ClusterName string `json:"clusterName" validate:"checkname"` Namespace string `json:"namespace" optional:"true"` }
ClusterTarget kubernetes delivery target
type ComponentBase ¶
type ComponentBase struct { Name string `json:"name"` Alias string `json:"alias"` Description string `json:"description"` Labels map[string]string `json:"labels,omitempty"` ComponentType string `json:"componentType"` EnvNames []string `json:"envNames"` Icon string `json:"icon,omitempty"` DependsOn []string `json:"dependsOn"` Creator string `json:"creator,omitempty"` DeployVersion string `json:"deployVersion"` CreateTime time.Time `json:"createTime"` UpdateTime time.Time `json:"updateTime"` }
ComponentBase component base model
type ComponentListResponse ¶
type ComponentListResponse struct {
Components []*ComponentBase `json:"components"`
}
ComponentListResponse list component
type ComponentSelector ¶ added in v1.2.0
type ComponentSelector struct {
Components []string `json:"components"`
}
ComponentSelector component selector
type ConnectCloudClusterRequest ¶ added in v1.2.0
type ConnectCloudClusterRequest struct { AccessKeyID string `json:"accessKeyID"` AccessKeySecret string `json:"accessKeySecret"` ClusterID string `json:"clusterID"` Name string `json:"name" validate:"checkname"` Alias string `json:"alias" optional:"true" validate:"checkalias"` Description string `json:"description,omitempty" optional:"true"` Icon string `json:"icon"` Labels map[string]string `json:"labels,omitempty"` }
ConnectCloudClusterRequest request parameters to create a cluster from cloud cluster
type CreateAddonRegistryRequest ¶ added in v1.2.0
type CreateAddonRegistryRequest struct { Name string `json:"name" validate:"checkname"` Git *addon.GitAddonSource `json:"git,omitempty" ` Oss *addon.OSSAddonSource `json:"oss,omitempty"` }
CreateAddonRegistryRequest defines the format for addon registry create request
type CreateApplicationEnvRequest ¶
type CreateApplicationEnvRequest struct {
EnvBinding
}
CreateApplicationEnvRequest new application env
type CreateApplicationRequest ¶
type CreateApplicationRequest struct { Name string `json:"name" validate:"checkname"` Alias string `json:"alias" validate:"checkalias" optional:"true"` Namespace string `json:"namespace" validate:"checkname"` Description string `json:"description" optional:"true"` Icon string `json:"icon"` Labels map[string]string `json:"labels,omitempty"` EnvBinding []*EnvBinding `json:"envBinding,omitempty"` YamlConfig string `json:"yamlConfig,omitempty"` Component *CreateComponentRequest `json:"component"` }
CreateApplicationRequest create application request body
type CreateApplicationTemplateRequest ¶
type CreateApplicationTemplateRequest struct { TemplateName string `json:"templateName" validate:"checkname"` Version string `json:"version" validate:"required"` Description string `json:"description"` }
CreateApplicationTemplateRequest create app template request model
type CreateApplicationTraitRequest ¶ added in v1.2.0
type CreateApplicationTraitRequest struct { Type string `json:"type" validate:"checkname"` Alias string `json:"alias,omitempty" validate:"checkalias" optional:"true"` Description string `json:"description,omitempty" optional:"true"` Properties string `json:"properties"` }
CreateApplicationTraitRequest create application triat req
type CreateCloudClusterRequest ¶ added in v1.2.0
type CreateCloudClusterRequest struct { AccessKeyID string `json:"accessKeyID"` AccessKeySecret string `json:"accessKeySecret"` Name string `json:"name" validate:"checkname"` Zone string `json:"zone"` WorkerNumber int `json:"workerNumber"` CPUCoresPerWorker int64 `json:"cpuCoresPerWorker"` MemoryPerWorker int64 `json:"memoryPerWorker"` }
CreateCloudClusterRequest request parameters to create a cloud cluster (buy one)
type CreateCloudClusterResponse ¶ added in v1.2.0
type CreateCloudClusterResponse struct { Name string `json:"clusterName"` ClusterID string `json:"clusterID"` Status string `json:"status"` }
CreateCloudClusterResponse return values for cloud cluster create request
type CreateClusterNamespaceRequest ¶ added in v1.2.0
type CreateClusterNamespaceRequest struct {
Namespace string `json:"namespace"`
}
CreateClusterNamespaceRequest request parameter to create namespace in cluster
type CreateClusterNamespaceResponse ¶ added in v1.2.0
type CreateClusterNamespaceResponse struct {
Exists bool `json:"exists"`
}
CreateClusterNamespaceResponse response parameter for created namespace in cluster
type CreateClusterRequest ¶
type CreateClusterRequest struct { Name string `json:"name" validate:"checkname"` Alias string `json:"alias" validate:"checkalias" optional:"true"` Description string `json:"description,omitempty"` Icon string `json:"icon"` KubeConfig string `json:"kubeConfig,omitempty" validate:"required_without=KubeConfigSecret"` KubeConfigSecret string `json:"kubeConfigSecret,omitempty" validate:"required_without=KubeConfig"` Labels map[string]string `json:"labels,omitempty"` DashboardURL string `json:"dashboardURL,omitempty"` }
CreateClusterRequest request parameters to create a cluster
type CreateComponentRequest ¶
type CreateComponentRequest struct { Name string `json:"name" validate:"checkname"` Alias string `json:"alias" validate:"checkalias" optional:"true"` Description string `json:"description" optional:"true"` Icon string `json:"icon" optional:"true"` Labels map[string]string `json:"labels,omitempty"` ComponentType string `json:"componentType" validate:"checkname"` Properties string `json:"properties,omitempty"` DependsOn []string `json:"dependsOn" optional:"true"` Traits []*CreateApplicationTraitRequest `json:"traits,omitempty" optional:"true"` }
CreateComponentRequest create component request model
type CreateDeliveryTargetRequest ¶
type CreateDeliveryTargetRequest struct { Name string `json:"name" validate:"checkname"` Namespace string `json:"namespace" validate:"checkname"` Alias string `json:"alias,omitempty" validate:"checkalias" optional:"true"` Description string `json:"description,omitempty" optional:"true"` Cluster *ClusterTarget `json:"cluster,omitempty"` Variable map[string]interface{} `json:"variable,omitempty"` }
CreateDeliveryTargetRequest create delivery target request body
type CreateNamespaceRequest ¶
type CreateNamespaceRequest struct { Name string `json:"name" validate:"checkname"` Description string `json:"description"` }
CreateNamespaceRequest create namespace request body
type CreatePolicyRequest ¶ added in v1.2.0
type CreatePolicyRequest struct { // Name is the unique name of the policy. Name string `json:"name" validate:"checkname"` Description string `json:"description"` Type string `json:"type" validate:"checkname"` // Properties json data Properties string `json:"properties"` }
CreatePolicyRequest create app policy
type CreateWorkflowRequest ¶ added in v1.2.0
type CreateWorkflowRequest struct { Name string `json:"name" validate:"checkname"` Alias string `json:"alias" validate:"checkalias" optional:"true"` Description string `json:"description" optional:"true"` Steps []WorkflowStep `json:"steps,omitempty"` Default *bool `json:"default"` EnvName string `json:"envName"` }
CreateWorkflowRequest create workflow request
type DefinitionBase ¶ added in v1.2.0
type DefinitionBase struct { Name string `json:"name"` Description string `json:"description"` WorkloadType string `json:"workloadType,omitempty"` Icon string `json:"icon"` }
DefinitionBase is the definition base model
type DeliveryTargetBase ¶
type DeliveryTargetBase struct { Name string `json:"name" validate:"checkname"` Namespace string `json:"namespace" validate:"checkname"` Alias string `json:"alias,omitempty" validate:"checkalias" optional:"true"` Description string `json:"description,omitempty" optional:"true"` Cluster *ClusterTarget `json:"cluster,omitempty"` Variable map[string]interface{} `json:"variable,omitempty"` CreateTime time.Time `json:"createTime"` UpdateTime time.Time `json:"updateTime"` AppNum int64 `json:"appNum,omitempty"` }
DeliveryTargetBase deliveryTarget base model
type DetailAddonResponse ¶
type DetailAddonResponse struct { types.AddonMeta APISchema *openapi3.Schema `json:"schema"` UISchema []*utils.UIParameter `json:"uiSchema"` // More details about the addon, e.g. README Detail string `json:"detail,omitempty"` Definitions []*AddonDefinition `json:"definitions"` }
DetailAddonResponse defines the format for showing the addon details
type DetailApplicationResponse ¶
type DetailApplicationResponse struct { ApplicationBase Policies []string `json:"policies"` EnvBindings []string `json:"envBindings"` Status string `json:"status"` ApplicationType string `json:"applicationType"` ResourceInfo ApplicationResourceInfo `json:"resourceInfo"` }
DetailApplicationResponse application detail
type DetailClusterResponse ¶
type DetailClusterResponse struct { model.Cluster ResourceInfo ClusterResourceInfo `json:"resourceInfo"` }
DetailClusterResponse cluster detail information model
type DetailComponentResponse ¶ added in v1.2.0
type DetailComponentResponse struct {
model.ApplicationComponent
}
DetailComponentResponse detail component response body
type DetailDefinitionResponse ¶ added in v1.2.0
type DetailDefinitionResponse struct { APISchema *openapi3.Schema `json:"schema"` UISchema []*utils.UIParameter `json:"uiSchema"` }
DetailDefinitionResponse get definition detail
type DetailDeliveryTargetResponse ¶
type DetailDeliveryTargetResponse struct {
DeliveryTargetBase
}
DetailDeliveryTargetResponse detail deliveryTarget response
type DetailEnvBindingResponse ¶ added in v1.2.0
type DetailEnvBindingResponse struct {
EnvBindingBase
}
DetailEnvBindingResponse defines the response of env-binding details
type DetailPolicyResponse ¶ added in v1.2.0
type DetailPolicyResponse struct {
PolicyBase
}
DetailPolicyResponse app policy detail model
type DetailRevisionResponse ¶ added in v1.2.0
type DetailRevisionResponse struct {
model.ApplicationRevision
}
DetailRevisionResponse get application revision detail
type DetailWorkflowRecordResponse ¶ added in v1.2.0
type DetailWorkflowRecordResponse struct { WorkflowRecord DeployTime time.Time `json:"deployTime"` DeployUser string `json:"deployUser"` Note string `json:"note"` // TriggerType the event trigger source, Web or API TriggerType string `json:"triggerType"` }
DetailWorkflowRecordResponse get workflow record detail
type DetailWorkflowResponse ¶ added in v1.2.0
type DetailWorkflowResponse struct {
WorkflowBase
}
DetailWorkflowResponse detail workflow response
type EmptyResponse ¶ added in v1.2.0
type EmptyResponse struct{}
EmptyResponse empty response, it will used for delete api
type EnableAddonRequest ¶ added in v1.2.0
type EnableAddonRequest struct { // Args is the key-value environment variables, e.g. AK/SK credentials. Args map[string]interface{} `json:"args,omitempty"` }
EnableAddonRequest defines the format for enable addon request
type EnablingProgress ¶ added in v1.2.0
type EnablingProgress struct { EnabledComponents int `json:"enabled_components"` TotalComponents int `json:"total_components"` }
EnablingProgress defines the progress of enabling an addon
type EnvBinding ¶ added in v1.2.0
type EnvBinding struct { Name string `json:"name" validate:"checkname"` Alias string `json:"alias" validate:"checkalias" optional:"true"` Description string `json:"description,omitempty" optional:"true"` TargetNames []string `json:"targetNames"` ComponentSelector *ComponentSelector `json:"componentSelector" optional:"true"` }
EnvBinding application env binding
type EnvBindingBase ¶ added in v1.2.0
type EnvBindingBase struct { Name string `json:"name" validate:"checkname"` Alias string `json:"alias" validate:"checkalias" optional:"true"` Description string `json:"description,omitempty" optional:"true"` TargetNames []string `json:"targetNames"` Targets []DeliveryTargetBase `json:"deliveryTargets,omitempty"` ComponentSelector *ComponentSelector `json:"componentSelector" optional:"true"` CreateTime time.Time `json:"createTime"` UpdateTime time.Time `json:"updateTime"` AppDeployName string `json:"appDeployName"` }
EnvBindingBase application env binding
type EnvBindingList ¶ added in v1.2.0
type EnvBindingList []*EnvBinding
EnvBindingList env binding list
func (EnvBindingList) ContainTarget ¶
func (e EnvBindingList) ContainTarget(name string) bool
ContainTarget contain cluster name
type ListAddonRegistryResponse ¶ added in v1.2.0
type ListAddonRegistryResponse struct {
Registrys []*AddonRegistryMeta `json:"registrys"`
}
ListAddonRegistryResponse list addon registry
type ListAddonResponse ¶
ListAddonResponse defines the format for addon list response
type ListApplicatioOptions ¶
type ListApplicatioOptions struct { Namespace string `json:"namespace"` TargetName string `json:"targetName"` Query string `json:"query"` }
ListApplicatioOptions list application query options
type ListApplicationComponentOptions ¶ added in v1.2.0
type ListApplicationComponentOptions struct {
EnvName string `json:"envName"`
}
ListApplicationComponentOptions list app component list
type ListApplicationEnvBinding ¶ added in v1.2.0
type ListApplicationEnvBinding struct {
EnvBindings []*EnvBindingBase `json:"envBindings"`
}
ListApplicationEnvBinding list app envBindings
type ListApplicationPolicy ¶ added in v1.2.0
type ListApplicationPolicy struct {
Policies []*PolicyBase `json:"policies"`
}
ListApplicationPolicy list app policies
type ListApplicationResponse ¶
type ListApplicationResponse struct {
Applications []*ApplicationBase `json:"applications"`
}
ListApplicationResponse list applications by query params
type ListCloudClusterCreationResponse ¶ added in v1.2.0
type ListCloudClusterCreationResponse struct {
Creations []CreateCloudClusterResponse `json:"creations"`
}
ListCloudClusterCreationResponse return the cluster names of creation process of cloud clusters
type ListCloudClusterResponse ¶ added in v1.2.0
type ListCloudClusterResponse struct { Clusters []cloudprovider.CloudCluster `json:"clusters"` Total int `json:"total"` }
ListCloudClusterResponse list cloud clusters
type ListClusterResponse ¶
type ListClusterResponse struct { Clusters []ClusterBase `json:"clusters"` Total int64 `json:"total"` }
ListClusterResponse list cluster
type ListDefinitionResponse ¶ added in v1.2.0
type ListDefinitionResponse struct {
Definitions []*DefinitionBase `json:"definitions"`
}
ListDefinitionResponse list definition response model
type ListDeliveryTargetResponse ¶
type ListDeliveryTargetResponse struct { DeliveryTargets []DeliveryTargetBase `json:"deliveryTargets"` Total int64 `json:"total"` }
ListDeliveryTargetResponse list delivery target response body
type ListEnabledAddonResponse ¶ added in v1.2.0
type ListEnabledAddonResponse struct {
EnabledAddons []*AddonStatusResponse
}
ListEnabledAddonResponse defines the format for enabled addon list response
type ListNamespaceResponse ¶
type ListNamespaceResponse struct {
Namespaces []NamespaceBase `json:"namespaces"`
}
ListNamespaceResponse namesace list model
type ListPolicyDefinitionResponse ¶ added in v1.2.0
type ListPolicyDefinitionResponse struct {
PolicyDefinitions []PolicyDefinition `json:"policyDefinitions"`
}
ListPolicyDefinitionResponse list available
type ListRevisionsResponse ¶ added in v1.2.0
type ListRevisionsResponse struct { Revisions []ApplicationRevisionBase `json:"revisions"` Total int64 `json:"total"` }
ListRevisionsResponse list application revisions
type ListWorkflowRecordsResponse ¶ added in v1.2.0
type ListWorkflowRecordsResponse struct { Records []WorkflowRecord `json:"records"` Total int64 `json:"total"` }
ListWorkflowRecordsResponse list workflow execution record
type ListWorkflowResponse ¶ added in v1.2.0
type ListWorkflowResponse struct {
Workflows []*WorkflowBase `json:"workflows"`
}
ListWorkflowResponse list application workflows
type NamespaceBase ¶
type NamespaceBase struct { Name string `json:"name"` Description string `json:"description"` CreateTime time.Time `json:"createTime"` UpdateTime time.Time `json:"updateTime"` }
NamespaceBase namespace base model
type NamespaceDetailResponse ¶
type NamespaceDetailResponse struct {
NamespaceBase
}
NamespaceDetailResponse namespace detail response
type PolicyBase ¶ added in v1.2.0
type PolicyBase struct { // Name is the unique name of the policy. Name string `json:"name"` Type string `json:"type"` Description string `json:"description"` Creator string `json:"creator"` // Properties json data Properties *model.JSONStruct `json:"properties"` CreateTime time.Time `json:"createTime"` UpdateTime time.Time `json:"updateTime"` }
PolicyBase application policy base info
type PolicyDefinition ¶ added in v1.2.0
type PolicyDefinition struct { Name string `json:"name"` Description string `json:"description"` Parameters []types.Parameter `json:"parameters"` }
PolicyDefinition application policy definition
type PutApplicationEnvRequest ¶
type PutApplicationEnvRequest struct { ComponentSelector *ComponentSelector `json:"componentSelector,omitempty"` Alias string `json:"alias,omitempty" validate:"checkalias" optional:"true"` Description string `json:"description,omitempty" optional:"true"` TargetNames []string `json:"targetNames"` }
PutApplicationEnvRequest set diff request
type UpdateAddonRegistryRequest ¶ added in v1.2.0
type UpdateAddonRegistryRequest struct { Git *addon.GitAddonSource `json:"git,omitempty"` Oss *addon.OSSAddonSource `json:"oss,omitempty"` }
UpdateAddonRegistryRequest defines the format for addon registry update request
type UpdateApplicationComponentRequest ¶ added in v1.2.0
type UpdateApplicationComponentRequest struct { Alias *string `json:"alias" optional:"true"` Description *string `json:"description" optional:"true"` Icon *string `json:"icon" optional:"true"` Labels *map[string]string `json:"labels,omitempty"` Properties *string `json:"properties,omitempty"` DependsOn *[]string `json:"dependsOn" optional:"true"` }
UpdateApplicationComponentRequest update component request body
type UpdateApplicationRequest ¶ added in v1.2.0
type UpdateApplicationRequest struct { Alias string `json:"alias" validate:"checkalias" optional:"true"` Description string `json:"description" optional:"true"` Icon string `json:"icon" optional:"true"` Labels map[string]string `json:"labels,omitempty"` }
UpdateApplicationRequest update application base config
type UpdateApplicationTraitRequest ¶ added in v1.2.0
type UpdateApplicationTraitRequest struct { Alias string `json:"alias,omitempty" validate:"checkalias" optional:"true"` Description string `json:"description,omitempty" optional:"true"` Properties string `json:"properties"` }
UpdateApplicationTraitRequest update application trait req
type UpdateDeliveryTargetRequest ¶
type UpdateDeliveryTargetRequest struct { Alias string `json:"alias,omitempty" validate:"checkalias" optional:"true"` Description string `json:"description,omitempty" optional:"true"` Cluster *ClusterTarget `json:"cluster,omitempty"` Variable map[string]interface{} `json:"variable,omitempty"` }
UpdateDeliveryTargetRequest only support full quantity update
type UpdatePolicyRequest ¶ added in v1.2.0
type UpdatePolicyRequest struct { Description string `json:"description"` Type string `json:"type" validate:"checkname"` // Properties json data Properties string `json:"properties"` }
UpdatePolicyRequest update policy
type UpdateWorkflowRequest ¶ added in v1.2.0
type UpdateWorkflowRequest struct { Alias string `json:"alias" validate:"checkalias" optional:"true"` Description string `json:"description" optional:"true"` Steps []WorkflowStep `json:"steps,omitempty"` Enable bool `json:"enable"` Default bool `json:"default"` }
UpdateWorkflowRequest update or create application workflow
type VelaQLViewResponse ¶ added in v1.2.0
type VelaQLViewResponse map[string]interface{}
VelaQLViewResponse query response
type WorkflowBase ¶ added in v1.2.0
type WorkflowBase struct { Name string `json:"name"` Alias string `json:"alias"` Description string `json:"description"` Enable bool `json:"enable"` Default bool `json:"default"` EnvName string `json:"envName"` CreateTime time.Time `json:"createTime"` UpdateTime time.Time `json:"updateTime"` Steps []WorkflowStep `json:"steps,omitempty"` }
WorkflowBase workflow base model
type WorkflowRecord ¶ added in v1.2.0
type WorkflowRecord struct { Name string `json:"name"` Namespace string `json:"namespace"` WorkflowName string `json:"workflowName"` WorkflowAlias string `json:"workflowAlias"` ApplicationRevision string `json:"applicationRevision"` StartTime time.Time `json:"startTime,omitempty"` Status string `json:"status"` Steps []model.WorkflowStepStatus `json:"steps,omitempty"` }
WorkflowRecord workflow record
type WorkflowStep ¶ added in v1.2.0
type WorkflowStep struct { // Name is the unique name of the workflow step. Name string `json:"name" validate:"checkname"` Alias string `json:"alias" validate:"checkalias" optional:"true"` Type string `json:"type" validate:"checkname"` Description string `json:"description" optional:"true"` DependsOn []string `json:"dependsOn" optional:"true"` Properties string `json:"properties,omitempty"` Inputs common.StepInputs `json:"inputs,omitempty" optional:"true"` Outputs common.StepOutputs `json:"outputs,omitempty" optional:"true"` }
WorkflowStep workflow step config