eventTable

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: 15 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"`
	Title     string `json:"title"`
	Width     int    `json:"width"`
}

type ComponentEventTable

type ComponentEventTable struct {
	base.DefaultProvider
	SDK *cptype.SDK `json:"-"`

	Type       string                 `json:"type,omitempty"`
	Props      Props                  `json:"props,omitempty"`
	Data       Data                   `json:"data,omitempty"`
	State      State                  `json:"state,omitempty"`
	Operations map[string]interface{} `json:"operations,omitempty"`
	// contains filtered or unexported fields
}

func (*ComponentEventTable) GenComponentState

func (t *ComponentEventTable) GenComponentState(c *cptype.Component) error

func (*ComponentEventTable) Init

func (*ComponentEventTable) InitComponent

func (t *ComponentEventTable) InitComponent(ctx context.Context) error

func (*ComponentEventTable) Render

func (t *ComponentEventTable) Render(ctx context.Context, component *cptype.Component, _ cptype.Scenario,
	event cptype.ComponentEvent, globalStateData *cptype.GlobalStateData) error

func (*ComponentEventTable) RenderList

func (t *ComponentEventTable) RenderList() error

func (*ComponentEventTable) SetComponentValue

func (t *ComponentEventTable) SetComponentValue(ctx context.Context)

func (*ComponentEventTable) Transfer

func (t *ComponentEventTable) Transfer(component *cptype.Component)

type Data

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

type Item

type Item struct {
	ID                string `json:"id,omitempty"`
	LastSeen          string `json:"lastSeen"`
	LastSeenTimestamp int64  `json:"lastSeenTimestamp"`
	Type              string `json:"type"`
	Reason            string `json:"reason"`
	Message           string `json:"message"`
}

type Operation

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

type Props

type Props struct {
	RequestIgnore  []string `json:"requestIgnore,omitempty"`
	RowKey         string   `json:"rowKey,omitempty''"`
	Pagination     bool     `json:"pagination"`
	Columns        []Column `json:"columns"`
	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"`
	PodID       string `json:"podId,omitempty"`
}

Jump to

Keyboard shortcuts

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