workloadTable

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: 18 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"`
	Sorter    bool   `json:"sorter,omitempty"`
}

type Command

type Command struct {
	Key     string       `json:"key,omitempty"`
	Target  string       `json:"target,omitempty"`
	State   CommandState `json:"state,omitempty"`
	JumpOut bool         `json:"jumpOut"`
}

type CommandState

type CommandState struct {
	Params map[string]string `json:"params,omitempty"`
	Query  map[string]string `json:"query,omitempty"`
}

type ComponentWorkloadTable

type ComponentWorkloadTable struct {
	base.DefaultProvider

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

func (*ComponentWorkloadTable) DecodeURLQuery

func (w *ComponentWorkloadTable) DecodeURLQuery() error

func (*ComponentWorkloadTable) EncodeURLQuery

func (w *ComponentWorkloadTable) EncodeURLQuery() error

func (*ComponentWorkloadTable) GenComponentState

func (w *ComponentWorkloadTable) GenComponentState(c *cptype.Component) error

func (*ComponentWorkloadTable) Init

func (*ComponentWorkloadTable) InitComponent

func (w *ComponentWorkloadTable) InitComponent(ctx context.Context)

func (*ComponentWorkloadTable) Render

func (*ComponentWorkloadTable) RenderTable

func (w *ComponentWorkloadTable) RenderTable() error

func (*ComponentWorkloadTable) SetComponentValue

func (w *ComponentWorkloadTable) SetComponentValue(ctx context.Context)

func (*ComponentWorkloadTable) Transfer

func (w *ComponentWorkloadTable) Transfer(component *cptype.Component)

type Count

type Count struct {
	Active    int `json:"active"`
	Error     int `json:"error"`
	Succeeded int `json:"succeeded"`
	Failed    int `json:"failed"`
}

type CountValues

type CountValues struct {
	DeploymentsCount Count `json:"deploymentsCount,omitempty"`
	DaemonSetCount   Count `json:"daemonSetCount,omitempty"`
	StatefulSetCount Count `json:"statefulSetCount,omitempty"`
	JobCount         Count `json:"jobCount,omitempty"`
	CronJobCount     Count `json:"cronJobCount,omitempty"`
}

type Data

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

type Item

type Item struct {
	ID           string `json:"id,omitempty"`
	Status       Status `json:"status,omitempty"`
	Name         Link   `json:"name,omitempty"`
	Namespace    string `json:"namespace,omitempty"`
	Kind         string `json:"kind,omitempty"`
	Age          string `json:"age,omitempty"`
	Ready        string `json:"ready,omitempty"`
	UpToDate     string `json:"upToDate,omitempty"`
	Available    string `json:"available,omitempty"`
	Desired      string `json:"desired,omitempty"`
	Current      string `json:"current,omitempty"`
	Completions  string `json:"completions,omitempty"`
	Duration     string `json:"duration,omitempty"`
	Schedule     string `json:"schedule,omitempty"`
	LastSchedule string `json:"lastSchedule,omitempty"`
}
type Link struct {
	RenderType string                 `json:"renderType,omitempty"`
	Value      string                 `json:"value,omitempty"`
	Operations map[string]interface{} `json:"operations,omitempty"`
}

type LinkOperation

type LinkOperation struct {
	Command Command `json:"command,omitempty"`
	Reload  bool    `json:"reload"`
}

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"`
	RowKey          string   `json:"rowKey,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"`
	CountValues           CountValues `json:"countValues,omitempty"`
	PageNo                uint64      `json:"pageNo"`
	PageSize              uint64      `json:"pageSize"`
	Sorter                Sorter      `json:"sorterData,omitempty"`
	Total                 uint64      `json:"total"`
	Values                Values      `json:"values,omitempty"`
	WorkloadTableURLQuery string      `json:"workloadTable__urlQuery,omitempty"`
}

type Status

type Status struct {
	RenderType  string      `json:"renderType,omitempty"`
	Value       string      `json:"value,omitempty"`
	StyleConfig StyleConfig `json:"styleConfig,omitempty"`
}

type StyleConfig

type StyleConfig struct {
	Color string `json:"color,omitempty"`
}

type Values

type Values struct {
	Namespace []string `json:"namespace,omitempty"`
	Kind      []string `json:"kind,omitempty"`
	Status    []string `json:"status,omitempty"`
	Search    string   `json:"search,omitempty"`
}

Jump to

Keyboard shortcuts

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