workloadInfo

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: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ComponentWorkloadInfo

type ComponentWorkloadInfo struct {
	base.DefaultProvider

	Type  string `json:"type,omitempty"`
	Props Props  `json:"props,omitempty"`
	Data  Data   `json:"data,omitempty"`
	State State  `json:"state,omitempty"`
	// contains filtered or unexported fields
}

func (*ComponentWorkloadInfo) GenComponentState

func (i *ComponentWorkloadInfo) GenComponentState(c *cptype.Component) error

func (*ComponentWorkloadInfo) Init

func (*ComponentWorkloadInfo) InitComponent

func (i *ComponentWorkloadInfo) InitComponent(ctx context.Context)

func (*ComponentWorkloadInfo) Render

func (*ComponentWorkloadInfo) SetComponentValue

func (i *ComponentWorkloadInfo) SetComponentValue(ctx context.Context) error

func (*ComponentWorkloadInfo) Transfer

func (i *ComponentWorkloadInfo) Transfer(c *cptype.Component)

type Data

type Data struct {
	Data DataInData `json:"data,omitempty"`
}

type DataInData

type DataInData struct {
	Namespace   string `json:"namespace,omitempty"`
	Age         string `json:"age,omitempty"`
	Images      string `json:"images,omitempty"`
	Labels      []Tag  `json:"labels"`
	Annotations []Tag  `json:"annotations"`
}

type Field

type Field struct {
	Label      string `json:"label,omitempty"`
	ValueKey   string `json:"valueKey,omitempty"`
	RenderType string `json:"renderType,omitempty"`
	SpaceNum   int    `json:"spaceNum,omitempty"`
}

type Props

type Props struct {
	RequestIgnore []string `json:"requestIgnore,omitempty"`
	ColumnNum     int      `json:"columnNum"`
	Fields        []Field  `json:"fields,omitempty"`
}

type State

type State struct {
	ClusterName string `json:"clusterName,omitempty"`
	WorkloadID  string `json:"workloadId,omitempty"`
}

type Tag

type Tag struct {
	Label string `json:"label,omitempty"`
	Group string `json:"group,omitempty"`
}

Jump to

Keyboard shortcuts

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