workloadTotal

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: 7 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 ComponentWorkloadTotal

type ComponentWorkloadTotal struct {
	base.DefaultProvider

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

func (*ComponentWorkloadTotal) GenComponentState

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

func (*ComponentWorkloadTotal) Render

func (*ComponentWorkloadTotal) Transfer

func (w *ComponentWorkloadTotal) 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

type Data struct {
	Data DataInData `json:"data"`
}

type DataInData

type DataInData struct {
	Main string `json:"main,omitempty"`
	Desc string `json:"desc,omitempty"`
}

type State

type State struct {
	Values Values `json:"values,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