PodInfo

package
v1.4.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 16, 2021 License: Apache-2.0 Imports: 13 Imported by: 0

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(c *cptype.Component) error

func (*PodInfo) Init

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

func (*PodInfo) Render

func (*PodInfo) Transfer

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

type Props

type Props struct {
	RequestIgnore []string `json:"requestIgnore,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