workloadChart

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: 8 Imported by: ? modules, 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 Axis

type Axis struct {
	Type string   `json:"type,omitempty"`
	Data []string `json:"data,omitempty"`
}

type AxisPointer

type AxisPointer struct {
	Type string `json:"type,omitempty"`
}

type ComponentWorkloadChart

type ComponentWorkloadChart struct {
	base.DefaultProvider

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

func (*ComponentWorkloadChart) GenComponentState

func (w *ComponentWorkloadChart) GenComponentState(c *cptype.Component) error

func (*ComponentWorkloadChart) Render

func (*ComponentWorkloadChart) SetComponentValue

func (w *ComponentWorkloadChart) SetComponentValue(ctx context.Context) error

func (*ComponentWorkloadChart) Transfer

func (w *ComponentWorkloadChart) Transfer(c *cptype.Component)

type Count

type Count struct {
	Active    int `json:"active"`
	Abnormal  int `json:"abnormal"`
	Succeeded int `json:"succeeded"`
	Failed    int `json:"failed"`
	Updating  int `json:"updating"`
	Stopped   int `json:"stopped"`
}

type Data added in v1.5.0

type Data struct {
	Option Option `json:"option"`
}

type Legend

type Legend struct {
	Data []string `json:"data,omitempty"`
}

type Option

type Option struct {
	Tooltip Tooltip  `json:"tooltip,omitempty"`
	Color   []string `json:"color,omitempty"`
	Legend  Legend   `json:"legend,omitempty"`
	XAxis   Axis     `json:"xAxis,omitempty"`
	YAxis   Axis     `json:"yAxis,omitempty"`
	Series  []Series `json:"series,omitempty"`
}

type Series

type Series struct {
	Name     string `json:"name,omitempty"`
	Type     string `json:"type,omitempty"`
	BarGap   string `json:"barGap,omitempty"`
	BarWidth int    `json:"barWidth,omitempty"`
	Data     []*int `json:"data,omitempty"`
}

type State

type State struct {
	Values Values `json:"values,omitempty"`
}

type Tooltip

type Tooltip struct {
	Show bool `json:"show"`
}

type Values

type Values struct {
	DeploymentsCount Count `json:"deploymentsCount,omitempty"`
	DaemonSetCount   Count `json:"daemonSetCount,omitempty"`
	StatefulSetCount Count `json:"statefulSetCount,omitempty"`
	JobCount         Count `json:"jobCount,omitempty"`
	CronJobCount     Count `json:"cronJobCount,omitempty"`
}

Jump to

Keyboard shortcuts

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