podsTable

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2022 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Column

type Column struct {
	DataIndex string `json:"dataIndex,omitempty"`
	Title     string `json:"title,omitempty"`
	Sorter    bool   `json:"sorter"`
	Fixed     string `json:"fixed,omitempty"`
	Align     string `json:"align"`
}

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 CommandState struct {
	Params map[string]string `json:"params,omitempty"`
	Query  map[string]string `json:"query,omitempty"`
}

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 (*ComponentPodsTable) InitComponent

func (p *ComponentPodsTable) InitComponent(ctx context.Context)

func (*ComponentPodsTable) Render

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 Data

type Data struct {
	List []Item `json:"list,omitempty"`
}

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 Link struct {
	RenderType string                 `json:"renderType,omitempty"`
	Value      string                 `json:"value,omitempty"`
	Operations map[string]interface{} `json:"operations,omitempty"`
}

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 Multiple added in v1.5.0

type Multiple struct {
	RenderType string        `json:"renderType,omitempty"`
	Direction  string        `json:"direction,omitempty"`
	Renders    []interface{} `json:"renders,omitempty"`
}

type Operate added in v1.5.0

type Operate struct {
	Value      string                 `json:"value,omitempty"`
	Operations map[string]interface{} `json:"operations"`
	RenderType string                 `json:"renderType"`
}

type Operation

type Operation struct {
	Key    string `json:"key,omitempty"`
	Reload bool   `json:"reload"`
}

type Percent

type Percent struct {
	RenderType string `json:"renderType,omitempty"`
	Value      string `json:"value,omitempty"`
	Tip        string `json:"tip,omitempty"`
	Status     string `json:"status,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 Sorter

type Sorter struct {
	Field string `json:"field,omitempty"`
	Order string `json:"order,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 Status

type Status struct {
	RenderType string `json:"renderType,omitempty"`
	Value      string `json:"value,omitempty"`
	Status     string `json:"status,omitempty"`
	Breathing  bool   `json:"breathing"`
}

type StyleConfig

type StyleConfig struct {
	Color string `json:"color,omitempty"`
}

type TextWithIcon added in v1.5.0

type TextWithIcon struct {
	RenderType string `json:"renderType,omitempty"`
	Icon       string `json:"icon,omitempty"`
	Value      string `json:"value,omitempty"`
	Size       string `json:"size,omitempty"`
}

Jump to

Keyboard shortcuts

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