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

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