eventTable

package
v1.3.0-rc Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2021 License: Apache-2.0 Imports: 15 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 {
	DataIndex string `json:"dataIndex"`
	Title     string `json:"title"`
	Width     int    `json:"width"`
}

type ComponentEventTable

type ComponentEventTable struct {
	base.DefaultProvider

	SDK *cptype.SDK

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

func (*ComponentEventTable) GenComponentState

func (t *ComponentEventTable) GenComponentState(component *cptype.Component) 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) SetCtxBundle

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

type Data

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

type Item

type Item struct {
	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 {
	Pagination bool     `json:"pagination"`
	Columns    []Column `json:"columns"`
}

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