eventTable

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2024 License: Apache-2.0 Imports: 19 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,omitempty"`
	Title     string `json:"title,omitempty"`
	Sorter    bool   `json:"sorter,omitempty"`
	Align     string `json:"align,omitempty"`
	Hidden    bool   `json:"hidden"`
}

type ComponentEventTable

type ComponentEventTable struct {
	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(c *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"`
	RequestIgnore   []string `json:"RequestIgnore"`
	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