batchOperationTipModal

package
v1.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 15, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

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 (*BatchOperationTipModal) OfflineNode

func (bot *BatchOperationTipModal) OfflineNode(nodeIDs []string) error

func (*BatchOperationTipModal) OnlineNode

func (bot *BatchOperationTipModal) OnlineNode(nodeIDs []string) error

func (*BatchOperationTipModal) Render

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"`
}

type Operation

type Operation struct {
	Key        string `json:"key"`
	Reload     bool   `json:"reload"`
	Meta       Meta   `json:"meta"`
	SuccessMsg string `json:"successMsg"`
}

type Props

type Props struct {
	Status  string `json:"status"`
	Content string `json:"content"`
	Title   string `json:"title"`
}

type State

type State struct {
	Visible         bool     `json:"visible"`
	SelectedRowKeys []string `json:"selectedRowKeys"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL