Documentation ¶
Index ¶
- Constants
- Variables
- func ConvertDeployResource(typeInDB string) string
- func RenderCreator() protocol.CompRender
- type Application
- type ApplicationHealthCheckConfig
- type ApplicationMirror
- type ApplicationPortMap
- type ApplicationPortMapData
- type ApplicationStorage
- type ChangeClusterReqForm
- type ChangeClusterReqProps
- type ComponentFormModal
- func (c *ComponentFormModal) OperateChangeCluster(orgID int64, identity apistructs.Identity) error
- func (c *ComponentFormModal) OperateRendering(orgID int64, identity apistructs.Identity) error
- func (c *ComponentFormModal) OperateSubmit(orgID int64, identity apistructs.Identity) error
- func (c ComponentFormModal) Render(ctx context.Context, component *apistructs.Component, ...) error
- func (c *ComponentFormModal) SetBundle(ctxBundle protocol.ContextBundle) error
- func (c *ComponentFormModal) SetComponent(component *apistructs.Component) error
Constants ¶
View Source
const ( IMAGE = "image" ADDON = "addon" MysqlAddonName = "mysql-edge" MysqlAddonVersion = "5.7" ApplicationNameLength = 30 )
View Source
const ( MIRROR = "MIRROR" MIDDLEWARE = "MIDDLEWARE" AppNameMatchPattern = "^[a-z][a-z0-9-]*[a-z0-9]$" )
Variables ¶
View Source
var (
AppNameMatchRegexp = fmt.Sprintf("/%v/", AppNameMatchPattern)
)
Functions ¶
func ConvertDeployResource ¶
func RenderCreator ¶
func RenderCreator() protocol.CompRender
Types ¶
type Application ¶
type Application struct { ID uint64 `json:"id"` AppName string `json:"appName"` DeployResource string `json:"deployResource"` MiddlewareType string `json:"middlewareType"` Cluster string `json:"cluster"` Sites []string `json:"sites,omitempty"` ConfigSet string `json:"configSets"` Depends []string `json:"depends,omitempty"` Replicaset int32 `json:"copyNum"` Storage ApplicationStorage `json:"storage"` Mirror ApplicationMirror `json:"mirror"` HealthCheckConfig ApplicationHealthCheckConfig `json:"healthCheckConfig"` PortMap ApplicationPortMap `json:"portMap"` }
type ApplicationMirror ¶
type ApplicationPortMap ¶
type ApplicationPortMap struct {
Data []ApplicationPortMapData `json:"data"`
}
type ApplicationPortMapData ¶
type ApplicationStorage ¶
type ChangeClusterReqForm ¶
type ChangeClusterReqForm struct {
ClusterName string `json:"cluster"`
}
type ChangeClusterReqProps ¶
type ChangeClusterReqProps struct {
Fields []*apistructs.EdgeFormModalField `json:"fields"`
}
type ComponentFormModal ¶
type ComponentFormModal struct {
// contains filtered or unexported fields
}
func (*ComponentFormModal) OperateChangeCluster ¶
func (c *ComponentFormModal) OperateChangeCluster(orgID int64, identity apistructs.Identity) error
func (*ComponentFormModal) OperateRendering ¶
func (c *ComponentFormModal) OperateRendering(orgID int64, identity apistructs.Identity) error
func (*ComponentFormModal) OperateSubmit ¶
func (c *ComponentFormModal) OperateSubmit(orgID int64, identity apistructs.Identity) error
func (ComponentFormModal) Render ¶
func (c ComponentFormModal) Render(ctx context.Context, component *apistructs.Component, scenario apistructs.ComponentProtocolScenario, event apistructs.ComponentEvent, gs *apistructs.GlobalStateData) error
func (*ComponentFormModal) SetBundle ¶
func (c *ComponentFormModal) SetBundle(ctxBundle protocol.ContextBundle) error
func (*ComponentFormModal) SetComponent ¶
func (c *ComponentFormModal) SetComponent(component *apistructs.Component) error
Click to show internal directories.
Click to hide internal directories.