Documentation ¶
Index ¶
- type BatchOperationTipModal
- func (bot *BatchOperationTipModal) CordonNode(nodeIDs []string) error
- func (bot *BatchOperationTipModal) DrainNode(nodeIDs []string) error
- func (bot *BatchOperationTipModal) Init(ctx servicehub.Context) error
- func (bot *BatchOperationTipModal) OfflineNode(nodeIDs []string) error
- func (bot *BatchOperationTipModal) OnlineNode(nodeIDs []string) error
- func (bot *BatchOperationTipModal) Render(ctx context.Context, c *cptype.Component, scenario cptype.Scenario, ...) error
- func (bot *BatchOperationTipModal) SetComponent(c *cptype.Component) error
- func (bot *BatchOperationTipModal) UncordonNode(nodeIDs []string) error
- type Meta
- type Operation
- type Props
- type State
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BatchOperationTipModal ¶
type BatchOperationTipModal struct { Type string `json:"type"` Props Props `json:"props"` State State `json:"state"` Operations map[string]interface{} `json:"operations"` SDK *cptype.SDK CtxBdl *bundle.Bundle // contains filtered or unexported fields }
batchOperationTipModal: { type: 'Modal', props: { status: 'warning', content: '您将解冻以下节点:\n cn-hongkong.172.15.3.3 \ncn-hongkong.172.15.3.3', title: '提示', }, state: { visible: true }, operations: { onOk: { key: 'submit', reload: true, meta: { type: 'uncordon', }, }, }, },
func (*BatchOperationTipModal) CordonNode ¶
func (bot *BatchOperationTipModal) CordonNode(nodeIDs []string) error
func (*BatchOperationTipModal) DrainNode ¶
func (bot *BatchOperationTipModal) DrainNode(nodeIDs []string) error
func (*BatchOperationTipModal) Init ¶
func (bot *BatchOperationTipModal) Init(ctx servicehub.Context) error
func (*BatchOperationTipModal) OfflineNode ¶
func (bot *BatchOperationTipModal) OfflineNode(nodeIDs []string) error
func (*BatchOperationTipModal) OnlineNode ¶
func (bot *BatchOperationTipModal) OnlineNode(nodeIDs []string) error
func (*BatchOperationTipModal) Render ¶
func (bot *BatchOperationTipModal) Render(ctx context.Context, c *cptype.Component, scenario cptype.Scenario, event cptype.ComponentEvent, gs *cptype.GlobalStateData) error
func (*BatchOperationTipModal) SetComponent ¶
func (bot *BatchOperationTipModal) SetComponent(c *cptype.Component) error
func (*BatchOperationTipModal) UncordonNode ¶
func (bot *BatchOperationTipModal) UncordonNode(nodeIDs []string) error
type Meta ¶
type Meta struct {
Type cptype.OperationKey `json:"type"`
}
Click to show internal directories.
Click to hide internal directories.