workloadInfo

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: 11 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 ComponentWorkloadInfo

type ComponentWorkloadInfo struct {
	base.DefaultProvider

	Type  string `json:"type,omitempty"`
	Data  Data   `json:"data,omitempty"`
	State State  `json:"state,omitempty"`
	Props Props  `json:"props,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(component *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 {
	IsLoadMore bool    `json:"isLoadMore,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