Documentation ¶
Index ¶
- Constants
- Variables
- func RenderCreator() protocol.CompRender
- type ComponentFormModal
- 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
- type SiteFormCreate
- type SiteFormSubmitBase
Constants ¶
View Source
const (
SiteNameLength = 30
)
View Source
const (
SiteNameMatchPattern = "^[a-z][a-z0-9-]*[a-z0-9]$"
)
Variables ¶
View Source
var (
SiteNameMatchRegexp = fmt.Sprintf("/%v/", SiteNameMatchPattern)
)
View Source
var ( SiteNameReservedWordMap = map[string]bool{ "public": true, } )
Functions ¶
func RenderCreator ¶
func RenderCreator() protocol.CompRender
Types ¶
type ComponentFormModal ¶
type ComponentFormModal struct {
// contains filtered or unexported fields
}
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
type SiteFormCreate ¶
type SiteFormCreate struct { SiteFormSubmitBase RelatedCluster int64 `json:"relatedCluster"` }
type SiteFormSubmitBase ¶
Click to show internal directories.
Click to hide internal directories.