Documentation ¶
Overview ¶
Package types contains all type specific processing.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HasSensitiveInfo ¶
func HasSensitiveInfo(obj *unstructured.Unstructured) bool
HasSensitiveInfo returns true if the supplied object has sensitive data that might need to be hidden.
func HideSensitiveInfo ¶
func HideSensitiveInfo(obj *unstructured.Unstructured) (*unstructured.Unstructured, bool)
HideSensitiveInfo creates a new object for secrets where secret values have been replaced with stable strings that can still be diff-ed. It returns a boolean to indicate that the return value was modified from the original object. When no modifications are needed, the original object is returned as-is.
func HideSensitiveLocalInfo ¶
func HideSensitiveLocalInfo(in model.K8sLocalObject) (model.K8sLocalObject, bool)
HideSensitiveLocalInfo is like HideSensitiveInfo but for local objects.
Types ¶
type RolloutStatus ¶
type RolloutStatus struct { Description string // the description of status for display Done bool // indicator if the status is "ready" }
RolloutStatus is the opaque rollout status of an object.
type RolloutStatusFunc ¶
type RolloutStatusFunc func(obj *unstructured.Unstructured, revision int64) (status *RolloutStatus, err error)
RolloutStatusFunc returns the rollout status for the supplied object.
func StatusFuncFor ¶
func StatusFuncFor(obj model.K8sMeta) RolloutStatusFunc
StatusFuncFor returns the status function for the specified object or nil if a status function does not exist for it.