Documentation ¶
Index ¶
- type Command
- type CommandState
- type ComponentOperationButton
- func (b *ComponentOperationButton) DeleteWorkload() error
- func (b *ComponentOperationButton) GenComponentState(component *cptype.Component) error
- func (b *ComponentOperationButton) Init(ctx servicehub.Context) error
- func (b *ComponentOperationButton) InitComponent(ctx context.Context)
- func (b *ComponentOperationButton) Render(ctx context.Context, component *cptype.Component, _ cptype.Scenario, ...) error
- func (b *ComponentOperationButton) RestartWorkload() error
- func (b *ComponentOperationButton) SetComponentValue()
- func (b *ComponentOperationButton) Transfer(component *cptype.Component)
- type Menu
- type Operation
- type Props
- type State
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Command ¶
type Command struct { Key string `json:"key,omitempty"` Target string `json:"target,omitempty"` State CommandState `json:"state,omitempty"` }
type CommandState ¶
type ComponentOperationButton ¶
type ComponentOperationButton struct { Type string `json:"type,omitempty"` Props Props `json:"props"` State State `json:"state"` // contains filtered or unexported fields }
func (*ComponentOperationButton) DeleteWorkload ¶
func (b *ComponentOperationButton) DeleteWorkload() error
func (*ComponentOperationButton) GenComponentState ¶
func (b *ComponentOperationButton) GenComponentState(component *cptype.Component) error
func (*ComponentOperationButton) Init ¶
func (b *ComponentOperationButton) Init(ctx servicehub.Context) error
func (*ComponentOperationButton) InitComponent ¶
func (b *ComponentOperationButton) InitComponent(ctx context.Context)
func (*ComponentOperationButton) Render ¶
func (b *ComponentOperationButton) Render(ctx context.Context, component *cptype.Component, _ cptype.Scenario, event cptype.ComponentEvent, gs *cptype.GlobalStateData) error
func (*ComponentOperationButton) RestartWorkload ¶
func (b *ComponentOperationButton) RestartWorkload() error
func (*ComponentOperationButton) SetComponentValue ¶
func (b *ComponentOperationButton) SetComponentValue()
func (*ComponentOperationButton) Transfer ¶
func (b *ComponentOperationButton) Transfer(component *cptype.Component)
type Operation ¶
type Operation struct { Key string `json:"key,omitempty"` Reload bool `json:"reload"` SuccessMsg string `json:"successMsg,omitempty"` Confirm string `json:"confirm,omitempty"` Command Command `json:"command,omitempty"` Disabled bool `json:"disabled"` DisabledTip string `json:"disabledTip,omitempty"` }
Click to show internal directories.
Click to hide internal directories.