workloadTable

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: 28 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"`
}

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) DeleteWorkload added in v1.5.0

func (w *ComponentWorkloadTable) DeleteWorkload(workloadID string) error

func (*ComponentWorkloadTable) EncodeURLQuery

func (w *ComponentWorkloadTable) EncodeURLQuery() error

func (*ComponentWorkloadTable) GenComponentState

func (w *ComponentWorkloadTable) GenComponentState(component *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) RestartWorkload added in v1.5.0

func (w *ComponentWorkloadTable) RestartWorkload(workloadID string) error

func (*ComponentWorkloadTable) SetComponentValue

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

func (*ComponentWorkloadTable) Transfer

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

type Count

type Count struct {
	Active    int `json:"active"`
	Abnormal  int `json:"abnormal"`
	Succeeded int `json:"succeeded"`
	Failed    int `json:"failed"`
	Updating  int `json:"updating"`
	Stopped   int `json:"stopped"`
}

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         Multiple `json:"name,omitempty"`
	WorkloadName string   `json:"workloadName,omitempty"`
	Namespace    string   `json:"namespace,omitempty"`
	Kind         Kind     `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"`
	Operations   Operate  `json:"operations"`
}

type Kind added in v1.5.0

type Kind struct {
	RenderType string    `json:"renderType,omitempty"`
	Size       string    `json:"size,omitempty"`
	Value      KindValue `json:"value"`
}

type KindValue added in v1.5.0

type KindValue struct {
	Label string `json:"label,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 {
	Reload      bool                   `json:"reload"`
	Key         string                 `json:"key,omitempty"`
	Text        string                 `json:"text,omitempty"`
	Meta        map[string]interface{} `json:"meta,omitempty"`
	Confirm     string                 `json:"confirm,omitempty"`
	SuccessMsg  string                 `json:"successMsg,omitempty"`
	Disabled    bool                   `json:"disabled"`
	DisabledTip string                 `json:"disabledTip,omitempty"`
}

type Multiple added in v1.5.0

type Multiple struct {
	RenderType string        `json:"renderType,omitempty"`
	Direction  string        `json:"direction,omitempty"`
	Renders    []interface{} `json:"renders,omitempty"`
}

type Operate added in v1.5.0

type Operate struct {
	RenderType string                 `json:"renderType,omitempty"`
	Operations map[string]interface{} `json:"operations,omitempty"`
}

type Operation

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

type Props

type Props struct {
	RequestIgnore   []string `json:"requestIgnore,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"`
	Status     string `json:"status,omitempty"`
	Breathing  bool   `json:"breathing,omitempty"`
}

type TextWithIcon added in v1.5.0

type TextWithIcon struct {
	RenderType string `json:"renderType,omitempty"`
	Icon       string `json:"icon,omitempty"`
	Value      string `json:"value,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