deployments

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DeploymentStats

type DeploymentStats struct {
	Bad     int `json:"bad"`
	Good    int `json:"good"`
	Unknown int `json:"unknown"`
}

DeploymentStats is a simple slice/list of deployment pod numbers

type FinalPieChart

type FinalPieChart struct {
	ChartOpts chart.Opts `json:"chartOptions"`
	Series    []int64    `json:"series"`
	Total     int64      `json:"total"`
}

func AssembleDeploymentPieChart

func AssembleDeploymentPieChart(
	logger *log.Logger,
	clientSet *kubernetes.Clientset,
) (FinalPieChart, error)

AssembleDeploymentPieChart is used to assemble data to be returned to the API

type MetaDataDeploymentsTable

type MetaDataDeploymentsTable struct {
	Name              string      `json:"name"`
	Namespace         string      `json:"ns"`
	Ready             bool        `json:"ready"`
	Progressing       bool        `json:"progressing"`
	ReplicasDesired   int32       `json:"replicas"`
	ReplicasAvailable int32       `json:"replicas_available"`
	Tag               string      `json:"tag"`
	Changed           metav1.Time `json:"lastChangedTimestamp"`
}

MetaDataDeploymentsTable is some metadata to be used to represent traffic

func AssembleDeploymentsTable

func AssembleDeploymentsTable(
	logger *log.Logger,
	clientSet *kubernetes.Clientset,
	filteredTags []TagFilters,
) []MetaDataDeploymentsTable

AssembleDeploymentsTable preps some data about deployments

type TagFilters

type TagFilters struct {
	Registry string
	Name     string
}

func ParseShowTagsFor

func ParseShowTagsFor(input string) (result []TagFilters)

Jump to

Keyboard shortcuts

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