Documentation ¶
Index ¶
- type ClusterInfoDetail
- type Command
- type CommandState
- type DataItem
- type ExtraContent
- type ExtraData
- type ExtraDataItem
- type ExtraInfos
- type FormData
- type ItemStatus
- type List
- func (l *List) GetBgImage(c *clusterpb.ClusterInfo) string
- func (l *List) GetComponentValue() error
- func (l *List) GetData(ctx context.Context) (map[string][]DataItem, error)
- func (l *List) GetExtraContent(res *ResData) ExtraContent
- func (l *List) GetExtraInfos(clusterInfo *ClusterInfoDetail) []ExtraInfos
- func (l *List) GetNodes(clusterName string) ([]data.Object, error)
- func (l *List) GetOperations(clusterInfo *clusterpb.ClusterInfo, status string) map[string]Operation
- func (l *List) GetState() State
- func (l *List) GetVersion(clusterName string) (string, error)
- func (l *List) Init(ctx servicehub.Context) error
- func (l *List) Render(ctx context.Context, c *cptype.Component, scenario cptype.Scenario, ...) error
- func (l *List) SetComponentValue(c *cptype.Component) error
- func (l *List) WithMachine(clusterInfo *ClusterInfoDetail) string
- func (l *List) WithManage(clusterInfo *ClusterInfoDetail) string
- func (l *List) WithType(clusterInfo *ClusterInfoDetail) string
- func (l *List) WithUpdateTime(clusterInfo *ClusterInfoDetail) string
- func (l *List) WithVersion(clusterInfo *ClusterInfoDetail) string
- type Operation
- type Params
- type ResData
- type State
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClusterInfoDetail ¶
type Command ¶
type Command struct { Key string `json:"key,omitempty"` Command CommandState `json:"state,omitempty"` Target string `json:"target,omitempty"` JumpOut bool `json:"jumpOut,omitempty"` }
type CommandState ¶
type DataItem ¶
type DataItem struct { ID int `json:"id"` Title string `json:"title"` Description string `json:"description"` PrefixImg string `json:"prefixImg"` BackgroundImg string `json:"backgroundImg"` ExtraInfos []ExtraInfos `json:"extraInfos"` Status ItemStatus `json:"status"` ExtraContent ExtraContent `json:"extraContent"` Operations map[string]Operation `json:"operations"` }
type ExtraContent ¶
type ExtraDataItem ¶
type ExtraInfos ¶
type ItemStatus ¶
type List ¶
type List struct { SDK *cptype.SDK Bdl *bundle.Bundle Ctx context.Context ClusterSvc clusterpb.ClusterServiceServer Data map[string][]DataItem `json:"data"` State State `json:"state"` }
func (*List) GetBgImage ¶
func (l *List) GetBgImage(c *clusterpb.ClusterInfo) string
func (*List) GetComponentValue ¶
func (*List) GetExtraContent ¶
func (l *List) GetExtraContent(res *ResData) ExtraContent
func (*List) GetExtraInfos ¶
func (l *List) GetExtraInfos(clusterInfo *ClusterInfoDetail) []ExtraInfos
func (*List) GetOperations ¶
func (*List) SetComponentValue ¶
SetComponentValue mapping properties to Component
func (*List) WithMachine ¶
func (l *List) WithMachine(clusterInfo *ClusterInfoDetail) string
func (*List) WithManage ¶
func (l *List) WithManage(clusterInfo *ClusterInfoDetail) string
func (*List) WithType ¶
func (l *List) WithType(clusterInfo *ClusterInfoDetail) string
func (*List) WithUpdateTime ¶
func (l *List) WithUpdateTime(clusterInfo *ClusterInfoDetail) string
func (*List) WithVersion ¶
func (l *List) WithVersion(clusterInfo *ClusterInfoDetail) string
Click to show internal directories.
Click to hide internal directories.