ContainerTable

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2021 License: Apache-2.0 Imports: 14 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 {
	Width     int    `json:"width"`
	DataIndex string `json:"dataIndex"`
	Title     string `json:"title"`
	Fixed     string `json:"fixed,omitempty"`
}

type ContainerTable

type ContainerTable struct {
	base.DefaultProvider

	Type  string            `json:"type,omitempty"`
	Props Props             `json:"props"`
	Data  map[string][]Data `json:"data"`
	State State             `json:"state,omitempty"`
}

func (*ContainerTable) GenComponentState

func (containerTable *ContainerTable) GenComponentState(c *cptype.Component) error

func (*ContainerTable) Init

func (containerTable *ContainerTable) Init(ctx servicehub.Context) error

func (*ContainerTable) Render

func (*ContainerTable) Transfer

func (containerTable *ContainerTable) Transfer(component *cptype.Component)

type Data

type Data struct {
	Status       Status      `json:"status"`
	Ready        string      `json:"ready"`
	Name         string      `json:"name"`
	Images       Images      `json:"images"`
	RestartCount interface{} `json:"restartCount"`
	Operate      Operate     `json:"operate"`
}

type Images

type Images struct {
	RenderType string `json:"renderType"`
	Value      Value  `json:"value"`
}

type Operate

type Operate struct {
	Operations map[string]Operation `json:"operations"`
	RenderType string               `json:"renderType"`
}

type Operation

type Operation struct {
	Key    string                 `json:"key"`
	Text   string                 `json:"text"`
	Reload bool                   `json:"reload"`
	Meta   map[string]interface{} `json:"meta,omitempty"`
}

type Props

type Props struct {
	RequestIgnore  []string `json:"requestIgnore,omitempty"`
	RowKey         string   `json:"rowKey"`
	Pagination     bool     `json:"pagination"`
	Scroll         Scroll   `json:"scroll"`
	Columns        []Column `json:"columns"`
	SortDirections []string `json:"sortDirections,omitempty"`
}

type Scroll

type Scroll struct {
	X int `json:"x"`
}

type State

type State struct {
	ClusterName string `json:"clusterName,omitempty"`
	PodID       string `json:"podId,omitempty"`
}

type Status

type Status struct {
	RenderType string      `json:"renderType"`
	Size       string      `json:"size,omitempty"`
	Value      StatusValue `json:"value,omitempty"`
}

type StatusValue

type StatusValue struct {
	Label string `json:"label,omitempty"`
	Color string `json:"color,omitempty"`
}

type StyleConfig

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

type Value

type Value struct {
	Text string `json:"text"`
}

Jump to

Keyboard shortcuts

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