Documentation ¶
Index ¶
- type ChangePageNo
- type ChangeSort
- type Columns
- type Command
- type CommandState
- type CpuTable
- type Data
- type Distribution
- type DistributionValue
- type Meta
- type Name
- type Operation
- type Params
- type Percent
- type Props
- type RowItem
- type SorterData
- type State
- type Status
- type StyleConfig
- type Table
- func (t *Table) GetIp(node data.Object) string
- func (t *Table) GetItemStatus(percent float64) *Status
- func (t *Table) GetResourceReq(pod data.Object, resourceKind string, resourceType v1.ResourceName) string
- func (t *Table) GetRole(labels []string) string
- func (t *Table) GetUsageValue(metricsData metrics.MetricsData) *DistributionValue
- func (t *Table) SetComponentValue(c *cptype.Component) error
- type TableInterface
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ChangePageNo ¶
type ChangeSort ¶
type Command ¶
type Command struct { Key string `json:"key"` State CommandState `json:"state"` Target string `json:"target"` JumpOut bool `json:"jumpOut"` }
type CommandState ¶
type CommandState struct {
Params Params `json:"params"`
}
type Distribution ¶
type Distribution struct { RenderType string `json:"renderType"` Value DistributionValue `json:"value"` Status common.UsageStatusEnum }
type DistributionValue ¶
type SorterData ¶
type State ¶
type State struct { PageNo int `json:"pageNo"` PageSize int `json:"pageSize"` Total int `json:"total"` SorterData SorterData `json:"sorterData"` }
type Status ¶
type Status struct { RenderType string `json:"renderType"` Value string `json:"value"` StyleConfig StyleConfig `json:"styleConfig"` Tip string `json:"tip,omitempty"` }
type StyleConfig ¶
type StyleConfig struct {
Color string `json:"color"`
}
type Table ¶
type Table struct { base.DefaultProvider TableInterface Ctx context.Context CtxBdl *bundle.Bundle SDK *cptype.SDK Type string `json:"type"` Props map[string]interface{} `json:"props"` Operations map[string]interface{} `json:"operations"` State State `json:"state"` }
func (*Table) GetItemStatus ¶
func (*Table) GetResourceReq ¶
func (*Table) GetUsageValue ¶
func (t *Table) GetUsageValue(metricsData metrics.MetricsData) *DistributionValue
type TableInterface ¶
type TableInterface interface {
SetData(object data.Object, resName v1.ResourceName) error
}
Click to show internal directories.
Click to hide internal directories.