summary

package
v0.8.3 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package summary provides a summary of a bundle's state.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetDeploymentState

func GetDeploymentState(bundleDeployment *fleet.BundleDeployment) fleet.BundleState

GetDeploymentState calculates a fleet.BundleState from bundleDeployment (pure function)

func GetSummaryState

func GetSummaryState(summary fleet.BundleSummary) fleet.BundleState

func Increment

func Increment(left *fleet.BundleSummary, right fleet.BundleSummary)

func IncrementResourceCounts

func IncrementResourceCounts(left *fleet.GitRepoResourceCounts, right fleet.GitRepoResourceCounts)

func IncrementState

func IncrementState(summary *fleet.BundleSummary, name string, state fleet.BundleState, message string, modified []fleet.ModifiedStatus, nonReady []fleet.NonReadyStatus)

func IsReady

func IsReady(summary fleet.BundleSummary) bool

func MessageFromCondition

func MessageFromCondition(conditionType string, conds []genericcondition.GenericCondition) string

func MessageFromDeployment

func MessageFromDeployment(deployment *fleet.BundleDeployment) string

MessageFromDeployment returns a relevant message from the deployment conditions (pure function)

func ReadyMessage

func ReadyMessage(summary fleet.BundleSummary, referencedKind string) string

func SetReadyConditions

func SetReadyConditions(obj interface{}, referencedKind string, summary fleet.BundleSummary)

SetReadyConditions expects a status object as obj and updates its ready conditions according to summary as per ReadyMessage

Types

This section is empty.

Jump to

Keyboard shortcuts

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