Documentation ¶
Index ¶
- type Column
- type Command
- type CommandState
- type ComponentPodsTable
- func (p *ComponentPodsTable) DecodeURLQuery() error
- func (p *ComponentPodsTable) DeletePod(podID string) error
- func (p *ComponentPodsTable) EncodeURLQuery() error
- func (p *ComponentPodsTable) GenComponentState(component *cptype.Component) error
- func (p *ComponentPodsTable) Init(ctx servicehub.Context) error
- func (p *ComponentPodsTable) InitComponent(ctx context.Context)
- func (p *ComponentPodsTable) Render(ctx context.Context, component *cptype.Component, _ cptype.Scenario, ...) error
- func (p *ComponentPodsTable) RenderTable() error
- func (p *ComponentPodsTable) SetComponentValue(ctx context.Context)
- func (p *ComponentPodsTable) Transfer(c *cptype.Component)
- type Data
- type Item
- type LinkOperation
- type Multiple
- type Operate
- type Operation
- type Percent
- type Props
- type Sorter
- type State
- type Status
- type TextWithIcon
- type Values
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"` JumpOut bool `json:"jumpOut"` }
type CommandState ¶
type ComponentPodsTable ¶
type ComponentPodsTable struct { Type string `json:"type,omitempty"` Props Props `json:"props,omitempty"` Data Data `json:"data,omitempty"` State State `json:"state,omitempty"` Operations map[string]interface{} `json:"operations,omitempty"` // contains filtered or unexported fields }
func (*ComponentPodsTable) DecodeURLQuery ¶
func (p *ComponentPodsTable) DecodeURLQuery() error
func (*ComponentPodsTable) DeletePod ¶
func (p *ComponentPodsTable) DeletePod(podID string) error
func (*ComponentPodsTable) EncodeURLQuery ¶
func (p *ComponentPodsTable) EncodeURLQuery() error
func (*ComponentPodsTable) GenComponentState ¶
func (p *ComponentPodsTable) GenComponentState(component *cptype.Component) error
func (*ComponentPodsTable) Init ¶
func (p *ComponentPodsTable) Init(ctx servicehub.Context) error
func (*ComponentPodsTable) InitComponent ¶
func (p *ComponentPodsTable) InitComponent(ctx context.Context)
func (*ComponentPodsTable) Render ¶
func (p *ComponentPodsTable) Render(ctx context.Context, component *cptype.Component, _ cptype.Scenario, event cptype.ComponentEvent, gs *cptype.GlobalStateData) error
func (*ComponentPodsTable) RenderTable ¶
func (p *ComponentPodsTable) RenderTable() error
func (*ComponentPodsTable) SetComponentValue ¶
func (p *ComponentPodsTable) SetComponentValue(ctx context.Context)
func (*ComponentPodsTable) Transfer ¶
func (p *ComponentPodsTable) Transfer(c *cptype.Component)
type Item ¶
type Item struct { ID string `json:"id,omitempty"` Status Status `json:"status"` Name Multiple `json:"name"` Namespace string `json:"namespace,omitempty"` PodName string `json:"podName,omitempty"` IP string `json:"ip,omitempty"` Age string `json:"age,omitempty"` CPURequests Multiple `json:"cpuRequests,omitempty"` CPURequestsNum int64 `json:"CPURequestsNum,omitempty"` CPUPercent Percent `json:"cpuPercent,omitempty"` CPULimits Multiple `json:"cpuLimits"` CPULimitsNum int64 `json:"CPULimitsNum,omitempty"` MemoryRequests Multiple `json:"memoryRequests"` MemoryRequestsNum int64 `json:"MemoryRequestsNum,omitempty"` MemoryPercent Percent `json:"memoryPercent"` MemoryLimits Multiple `json:"memoryLimits"` MemoryLimitsNum int64 `json:"MemoryLimitsNum,omitempty"` Ready string `json:"ready,omitempty"` Node Operate `json:"node,omitempty"` Operations Operate `json:"operations"` }
type LinkOperation ¶
type LinkOperation struct { Command *Command `json:"command,omitempty"` Reload bool `json:"reload"` Key string `json:"key,omitempty"` Text string `json:"text,omitempty"` Meta map[string]interface{} `json:"meta,omitempty"` Confirm string `json:"confirm,omitempty"` SuccessMsg string `json:"successMsg,omitempty"` }
type Props ¶
type Props struct { RequestIgnore []string `json:"requestIgnore,omitempty"` RowKey string `json:"rowKey,omitempty"` PageSizeOptions []string `json:"pageSizeOptions,omitempty"` Columns []Column `json:"columns,omitempty"` Operations map[string]interface{} `json:"operations,omitempty"` SortDirections []string `json:"sortDirections,omitempty"` }
type State ¶
type State struct { ActiveKey string `json:"activeKey,omitempty"` ClusterName string `json:"clusterName,omitempty"` CountValues map[string]int `json:"countValues"` PageNo int `json:"pageNo"` PageSize int `json:"pageSize"` PodsTableURLQuery string `json:"podsTable__urlQuery,omitempty"` Sorter Sorter `json:"sorterData,omitempty"` Total int `json:"total"` Values Values `json:"values,omitempty"` }
type TextWithIcon ¶
Click to show internal directories.
Click to hide internal directories.