conditions

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FindConditionOfType

FindConditionOfType finds condition of a conditionType type in the conditions slice

func HasSucceededConditionOfReason

func HasSucceededConditionOfReason(conditions []v2vv1.VirtualMachineImportCondition, conditionReason ...v2vv1.SucceededConditionReason) bool

HasSucceededConditionOfReason finds condition of a Succeeded type with conditionReason reason in the conditions slice

func NewCondition

NewCondition creates condition of a given type in the conditions list with given reason, message and status

func NewProcessingCondition

func NewProcessingCondition(reason string, message string, status v1.ConditionStatus) v2vv1.VirtualMachineImportCondition

NewProcessingCondition create a condition of type Processing of specific reason and message

func NewSucceededCondition

func NewSucceededCondition(reason string, message string, status v1.ConditionStatus) v2vv1.VirtualMachineImportCondition

NewSucceededCondition creates a condition of type Succeeded of specific reason, message and status

func UpsertCondition

func UpsertCondition(vmi *v2vv1.VirtualMachineImport, condition v2vv1.VirtualMachineImportCondition)

UpsertCondition updates or creates condition in the virtualMachineImportStatus

Types

This section is empty.

Jump to

Keyboard shortcuts

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