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(c *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 Link
- type LinkOperation
- type Multiple
- type Operate
- type Operation
- type Percent
- type Props
- type Sorter
- type State
- type Status
- type StyleConfig
- type TextWithIcon
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 { base.DefaultProvider Type string `json:"type,omitempty"` State State `json:"state,omitempty"` Data Data `json:"data,omitempty"` Props Props `json:"props,omitempty"` Operations map[string]interface{} `json:"operations,omitempty"` // contains filtered or unexported fields }
func (*ComponentPodsTable) DecodeURLQuery ¶
func (p *ComponentPodsTable) DecodeURLQuery() error
func (*ComponentPodsTable) DeletePod ¶ added in v1.5.0
func (p *ComponentPodsTable) DeletePod(podID string) error
func (*ComponentPodsTable) EncodeURLQuery ¶
func (p *ComponentPodsTable) EncodeURLQuery() error
func (*ComponentPodsTable) GenComponentState ¶
func (p *ComponentPodsTable) GenComponentState(c *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, _ *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,omitempty"` Name Multiple `json:"name,omitempty"` PodName string `json:"podName,omitempty"` Namespace string `json:"namespace,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,omitempty"` CPULimitsNum int64 `json:"CPULimitsNum,omitempty"` MemoryRequests Multiple `json:"memoryRequests,omitempty"` MemoryRequestsNum int64 `json:"MemoryRequestsNum,omitempty"` MemoryPercent Percent `json:"memoryPercent,omitempty"` MemoryLimits Multiple `json:"memoryLimits,omitempty"` MemoryLimitsNum int64 `json:"MemoryLimitsNum,omitempty"` Ready string `json:"ready,omitempty"` Node Operate `json:"node"` Operate Operate `json:"operate"` }
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"` PageSizeOptions []string `json:"pageSizeOptions,omitempty"` Columns []Column `json:"columns,omitempty"` RowKey string `json:"rowKey,omitempty"` Operations map[string]interface{} `json:"operations,omitempty"` SortDirections []string `json:"sortDirections,omitempty"` }
type State ¶
type State struct { ClusterName string `json:"clusterName,omitempty"` WorkloadID string `json:"workloadId,omitempty"` PageNo int `json:"pageNo"` PageSize int `json:"pageSize"` Sorter Sorter `json:"sorterData,omitempty"` Total int `json:"total"` PodsTableURLQuery string `json:"podsTableURLQuery,omitempty"` }
type StyleConfig ¶
type StyleConfig struct {
Color string `json:"color,omitempty"`
}
Click to show internal directories.
Click to hide internal directories.