Documentation ¶
Index ¶
- func RenderCreator() protocol.CompRender
- type Command
- type CommonList
- type ComponentList
- func (i *ComponentList) CountActiveTime(ActiveTimeStr string) (string, error)
- func (i *ComponentList) GenComponentState(c *apistructs.Component) error
- func (i *ComponentList) RenItem(pro apistructs.ProjectDTO, orgDomain string) (ProItem, error)
- func (i *ComponentList) Render(ctx context.Context, c *apistructs.Component, ...) (err error)
- func (i *ComponentList) RenderChangePageNo(ops interface{}) error
- func (i *ComponentList) RenderChangePageSize(ops interface{}) error
- func (i *ComponentList) RenderExist(ops interface{}) error
- func (i *ComponentList) RenderList() error
- func (i *ComponentList) RenderProtocol(c *apistructs.Component, g *apistructs.GlobalStateData) error
- func (i *ComponentList) SetComponentValue()
- func (i *ComponentList) SetCtxBundle(b protocol.ContextBundle) error
- type Data
- type ExtraInfos
- type Meta
- type Operation
- type PageSizeNo
- type ProItem
- type Props
- type State
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RenderCreator ¶
func RenderCreator() protocol.CompRender
Types ¶
type CommonList ¶
type CommonList 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"` Data Data `json:"data,omitempty"` }
type ComponentList ¶
type ComponentList struct { CommonList // contains filtered or unexported fields }
func (*ComponentList) CountActiveTime ¶ added in v1.2.1
func (i *ComponentList) CountActiveTime(ActiveTimeStr string) (string, error)
func (*ComponentList) GenComponentState ¶
func (i *ComponentList) GenComponentState(c *apistructs.Component) error
GenComponentState 获取state
func (*ComponentList) RenItem ¶ added in v1.2.1
func (i *ComponentList) RenItem(pro apistructs.ProjectDTO, orgDomain string) (ProItem, error)
func (*ComponentList) Render ¶
func (i *ComponentList) Render(ctx context.Context, c *apistructs.Component, _ apistructs.ComponentProtocolScenario, event apistructs.ComponentEvent, gs *apistructs.GlobalStateData) (err error)
func (*ComponentList) RenderChangePageNo ¶
func (i *ComponentList) RenderChangePageNo(ops interface{}) error
func (*ComponentList) RenderChangePageSize ¶
func (i *ComponentList) RenderChangePageSize(ops interface{}) error
func (*ComponentList) RenderExist ¶
func (i *ComponentList) RenderExist(ops interface{}) error
func (*ComponentList) RenderList ¶
func (i *ComponentList) RenderList() error
func (*ComponentList) RenderProtocol ¶
func (i *ComponentList) RenderProtocol(c *apistructs.Component, g *apistructs.GlobalStateData) error
RenderProtocol 渲染组件
func (*ComponentList) SetComponentValue ¶
func (i *ComponentList) SetComponentValue()
func (*ComponentList) SetCtxBundle ¶
func (i *ComponentList) SetCtxBundle(b protocol.ContextBundle) error
SetCtxBundle 设置bundle
type ExtraInfos ¶
type Meta ¶
type Meta struct { ID uint64 `json:"id,omitempty"` PageSize PageSizeNo `json:"pageSize,omitempty"` PageNo PageSizeNo `json:"pageNo,omitempty"` ProjectId uint64 `json:"projectId,omitempty"` ProjectName string `json:"projectName,omitempty"` }
func GetOpsInfo ¶
type Operation ¶
type Operation struct { Key string `json:"key,omitempty"` Reload bool `json:"reload"` FillMeta string `json:"fillMeta,omitempty"` Text string `json:"text,omitempty"` Show bool `json:"show,omitempty"` Command Command `json:"command,omitempty"` Confirm string `json:"confirm,omitempty"` Meta Meta `json:"meta,omitempty"` }
type PageSizeNo ¶
Click to show internal directories.
Click to hide internal directories.