ContainerTable

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2021 License: Apache-2.0 Imports: 13 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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(component *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 string  `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]string `json:"meta,omitempty"`
}

type Props

type Props struct {
	IsLoadMore     bool     `json:"isLoadMore,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