podsCharts

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

View Source
var PrimaryColor = []string{"primary8", "primary7", "primary6", "primary5", "primary4", "primary3", "primary2", "primary1"}

Functions

This section is empty.

Types

type Data

type Data struct {
	Group [][][]Pie `json:"group,omitempty"`
}

type Info

type Info struct {
	Main string `json:"main,omitempty"`
	Sub  string `json:"sub,omitempty"`
	Desc string `json:"desc,omitempty"`
}

type Pie

type Pie struct {
	Name  string `json:"name,omitempty"`
	Value int    `json:"value"`
	Color string `json:"color,omitempty"`
	Total int    `json:"total"`
	Infos []Info `json:"info,omitempty"`
}

type PodsCharts

type PodsCharts struct {
	base.DefaultProvider

	Type string `json:"type,omitempty"`
	Data Data   `json:"data"`
}

func (*PodsCharts) ParsePodStatus

func (p *PodsCharts) ParsePodStatus(ctx context.Context, state string, count, total int) []Pie

func (*PodsCharts) Render

func (*PodsCharts) Transfer

func (p *PodsCharts) Transfer(component *cptype.Component)

Jump to

Keyboard shortcuts

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