workloadChart

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2021 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,omitempty"`
	Props Props  `json:"props,omitempty"`
}

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

type Count

type Count struct {
	Active    int `json:"active"`
	Error     int `json:"error"`
	Succeeded int `json:"succeeded"`
	Failed    int `json:"failed"`
}

type Grid

type Grid struct {
	Left         string `json:"left,omitempty"`
	Right        string `json:"right,omitempty"`
	Bottom       string `json:"bottom,omitempty"`
	Top          string `json:"top,omitempty"`
	ContainLabel bool   `json:"containLabel,omitempty"`
}

type Label

type Label struct {
	Show     bool   `json:"show,omitempty"`
	Position string `json:"position,omitempty"`
}

type Legend

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

type Option

type Option struct {
	Tooltip Tooltip  `json:"tooltip,omitempty"`
	Grid    Grid     `json:"grid,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 Props

type Props struct {
	Option Option `json:"option,omitempty"`
}

type Series

type Series struct {
	Name     string `json:"name,omitempty"`
	Type     string `json:"type,omitempty"`
	Stack    string `json:"stack,omitempty"`
	BarWidth string `json:"barWidth,omitempty"`
	Label    Label  `json:"label,omitempty"`
	Data     []*int `json:"data,omitempty"`
}

type State

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

type Tooltip

type Tooltip struct {
	Trigger     string      `json:"trigger,omitempty"`
	AxisPointer AxisPointer `json:"axisPointer,omitempty"`
}

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