eventTable

package
v1.3.2 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2021 License: Apache-2.0 Imports: 17 Imported by: 1 module, 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,omitempty"`
	Title     string `json:"title,omitempty"`
	Width     int    `json:"width,omitempty"`
	Sorter    bool   `json:"sorter,omitempty"`
}

type ComponentEventTable

type ComponentEventTable struct {
	base.DefaultProvider

	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) DecodeURLQuery

func (t *ComponentEventTable) DecodeURLQuery() error

func (*ComponentEventTable) EncodeURLQuery

func (t *ComponentEventTable) EncodeURLQuery() error

func (*ComponentEventTable) GenComponentState

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

func (*ComponentEventTable) Init

func (*ComponentEventTable) InitComponent

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

func (*ComponentEventTable) Render

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(c *cptype.Component)

type Data

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

type FilterValues

type FilterValues struct {
	Namespace []string `json:"namespace,omitempty"`
	Type      []string `json:"type,omitempty"`
	Search    string   `json:"search,omitempty"`
}

type Item

type Item struct {
	LastSeen          string `json:"lastSeen,omitempty"`
	LastSeenTimestamp int64  `json:"lastSeenTimestamp,omitempty"`
	Type              string `json:"type,omitempty"`
	Reason            string `json:"reason,omitempty"`
	Object            string `json:"object,omitempty"`
	Source            string `json:"source,omitempty"`
	Message           string `json:"message,omitempty"`
	Count             string `json:"count,omitempty"`
	CountNum          int64  `json:"countNum"`
	Name              string `json:"name,omitempty"`
	Namespace         string `json:"namespace,omitempty"`
}

type Operation

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

type Props

type Props struct {
	IsLoadMore      bool     `json:"isLoadMore,omitempty"`
	PageSizeOptions []string `json:"pageSizeOptions,omitempty"`
	Columns         []Column `json:"columns,omitempty"`
	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"`
	EventTableUQLQuery string       `json:"eventTable__urlQuery,omitempty"`
	FilterValues       FilterValues `json:"filterValues,omitempty"`
	PageNo             uint64       `json:"pageNo,omitempty"`
	PageSize           uint64       `json:"pageSize,omitempty"`
	Sorter             Sorter       `json:"sorterData,omitempty"`
	Total              uint64       `json:"total"`
}

Jump to

Keyboard shortcuts

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