target

package
v0.10.2 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ConditionsShouldDiscardTimestamps = false

Functions

func GetTargetCondition

func GetTargetCondition(conditions []shipper.TargetCondition, condType shipper.TargetConditionType) *shipper.TargetCondition

func IsReady

func IsReady(conditions []shipper.TargetCondition) (bool, string)

func NewTargetCondition

func NewTargetCondition(
	condType shipper.TargetConditionType,
	status corev1.ConditionStatus,
	reason, message string,
) shipper.TargetCondition

func SetTargetCondition

func SetTargetCondition(
	conditions []shipper.TargetCondition,
	condition shipper.TargetCondition,
) ([]shipper.TargetCondition, diff.Diff)

func TransitionToNotOperational

func TransitionToNotOperational(
	multidiff *diff.MultiDiff,
	conditions []shipper.TargetCondition,
	reason, msg string,
) []shipper.TargetCondition

func TransitionToNotReady

func TransitionToNotReady(
	multidiff *diff.MultiDiff,
	conditions []shipper.TargetCondition,
	reason, msg string,
) []shipper.TargetCondition

func TransitionToOperational

func TransitionToOperational(
	multidiff *diff.MultiDiff,
	conditions []shipper.TargetCondition,
) []shipper.TargetCondition

func TransitionToReady

func TransitionToReady(
	multidiff *diff.MultiDiff,
	conditions []shipper.TargetCondition,
) []shipper.TargetCondition

Types

type TargetConditionDiff

type TargetConditionDiff struct {
	// contains filtered or unexported fields
}

func NewTargetConditionDiff

func NewTargetConditionDiff(c1, c2 *shipper.TargetCondition) *TargetConditionDiff

func (*TargetConditionDiff) IsEmpty

func (d *TargetConditionDiff) IsEmpty() bool

func (*TargetConditionDiff) String

func (d *TargetConditionDiff) String() string

Jump to

Keyboard shortcuts

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