Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RenderCreator ¶
func RenderCreator() protocol.CompRender
Types ¶
type ComponentProjectCreation ¶
type ComponentProjectCreation struct {
Version string `json:"version,omitempty"`
Name string `json:"name,omitempty"`
Type string `json:"type,omitempty"`
Props Props `json:"props,omitempty"`
State State `json:"state,omitempty"`
Operations map[string]interface{} `json:"operations,omitempty"`
// contains filtered or unexported fields
}
func (*ComponentProjectCreation) GenComponentState ¶
func (i *ComponentProjectCreation) GenComponentState(c *apistructs.Component) error
GenComponentState 获取state
func (*ComponentProjectCreation) Render ¶
func (i *ComponentProjectCreation) Render(ctx context.Context, c *apistructs.Component, _ apistructs.ComponentProtocolScenario, event apistructs.ComponentEvent, gs *apistructs.GlobalStateData) (err error)
func (*ComponentProjectCreation) SetCtxBundle ¶
func (i *ComponentProjectCreation) SetCtxBundle(b protocol.ContextBundle) error
SetCtxBundle 设置bundle
Click to show internal directories.
Click to hide internal directories.