PodInfo

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: 13 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 Command

type Command struct {
	Key     string       `json:"key"`
	Target  string       `json:"target"`
	State   CommandState `json:"state"`
	JumpOut bool         `json:"jumpOut"`
}

type CommandState

type CommandState struct {
	Params map[string]string `json:"params"`
}

type Data

type Data struct {
	Namespace   string `json:"namespace"`
	Age         string `json:"age"`
	Ip          string `json:"ip"`
	Workload    string `json:"workload"`
	Node        string `json:"node"`
	Labels      []Tag  `json:"labels"`
	Annotations []Tag  `json:"annotations"`
}

type Field

type Field struct {
	Label      string               `json:"label"`
	ValueKey   string               `json:"valueKey"`
	RenderType string               `json:"renderType,omitempty"`
	Operations map[string]Operation `json:"operations,omitempty"`
	SpaceNum   int                  `json:"spaceNum,omitempty"`
}

type Operation

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

type PodInfo

type PodInfo struct {
	base.DefaultProvider
	SDK *cptype.SDK `json:"-"`

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

func (*PodInfo) GenComponentState

func (podInfo *PodInfo) GenComponentState(component *cptype.Component) error

func (*PodInfo) Init

func (podInfo *PodInfo) Init(ctx servicehub.Context) error

func (*PodInfo) Render

func (*PodInfo) Transfer

func (podInfo *PodInfo) Transfer(component *cptype.Component)

type Props

type Props struct {
	IsLoadMore bool    `json:"isLoadMore,omitempty"`
	ColumnNum  int     `json:"columnNum"`
	Fields     []Field `json:"fields"`
}

type State

type State struct {
	ClusterName string `json:"clusterName,omitempty"`
	PodID       string `json:"podId,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