recordTable

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: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RenderCreator

func RenderCreator() protocol.CompRender

Types

type Column

type Column struct {
	DataIndex string `json:"dataIndex"`
	Title     string `json:"title"`
	Width     uint64 `json:"width,omitempty"`
}

type Data

type Data struct {
	List []DataItem `json:"list"`
}

type DataItem

type DataItem struct {
	ID       string `json:"id"`
	Type     string `json:"type"`
	Operator string `json:"operator"`
	Time     string `json:"time"`
	Desc     string `json:"desc"`
	Status   Status `json:"status"`
	Result   Result `json:"result"`
}

type Props

type Props struct {
	Columns []Column `json:"columns"`
}

type RecordTable

type RecordTable struct {
	Type  string `json:"type"`
	Props Props  `json:"props"`
	Data  Data   `json:"data"`
	State State  `json:"state"`
	// contains filtered or unexported fields
}

func (*RecordTable) GenComponentState

func (r *RecordTable) GenComponentState(c *apistructs.Component) error

func (*RecordTable) SetCtxBundle

func (r *RecordTable) SetCtxBundle(ctx context.Context) error

type Result

type Result struct {
	RenderType string `json:"renderType"`
	URL        string `json:"url"`
	Value      string `json:"value"`
}

type State

type State struct {
	AutoRefresh bool `json:"autoRefresh"`
	Visible     bool `json:"visible"`
}

type Status

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

Jump to

Keyboard shortcuts

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