workloadTitle

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2021 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 ComponentWorkloadTitle

type ComponentWorkloadTitle struct {
	base.DefaultProvider

	Type  string `json:"type,omitempty"`
	Props Props  `json:"props,omitempty"`
	State State  `json:"state,omitempty"`
}

func (*ComponentWorkloadTitle) GenComponentState

func (w *ComponentWorkloadTitle) GenComponentState(component *cptype.Component) error

func (*ComponentWorkloadTitle) Render

func (*ComponentWorkloadTitle) Transfer

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

type Count

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

type Props

type Props struct {
	Title string `json:"title,omitempty"`
	Size  string `json:"size,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