Documentation
¶
Index ¶
- type Column
- type CommandState
- type ComponentWorkloadTable
- func (w *ComponentWorkloadTable) DecodeURLQuery() error
- func (w *ComponentWorkloadTable) DeleteWorkload(workloadID string) error
- func (w *ComponentWorkloadTable) EncodeURLQuery() error
- func (w *ComponentWorkloadTable) GenComponentState(component *cptype.Component) error
- func (w *ComponentWorkloadTable) Init(ctx servicehub.Context) error
- func (w *ComponentWorkloadTable) InitComponent(ctx context.Context)
- func (w *ComponentWorkloadTable) Render(ctx context.Context, component *cptype.Component, _ cptype.Scenario, ...) error
- func (w *ComponentWorkloadTable) RenderTable() error
- func (w *ComponentWorkloadTable) RestartWorkload(workloadID string) error
- func (w *ComponentWorkloadTable) SetComponentValue(ctx context.Context)
- func (w *ComponentWorkloadTable) Transfer(c *cptype.Component)
- type Count
- type CountValues
- type Data
- type Item
- type Kind
- type KindValue
- type Link
- type LinkOperation
- type Multiple
- type Operate
- type Operation
- type Props
- type Sorter
- type State
- type Status
- type TextWithIcon
- type Values
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CommandState ¶
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 (w *ComponentWorkloadTable) Init(ctx servicehub.Context) error
func (*ComponentWorkloadTable) InitComponent ¶
func (w *ComponentWorkloadTable) InitComponent(ctx context.Context)
func (*ComponentWorkloadTable) Render ¶
func (w *ComponentWorkloadTable) Render(ctx context.Context, component *cptype.Component, _ cptype.Scenario, event cptype.ComponentEvent, gs *cptype.GlobalStateData) error
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 CountValues ¶
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 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 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 TextWithIcon ¶ added in v1.5.0
Click to show internal directories.
Click to hide internal directories.