matcher

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2024 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AllPDBs added in v1.0.0

func AllPDBs(namespace string) func() ([]policyv1.PodDisruptionBudget, error)

func AllVMIs

func AllVMIs(namespace string) func() ([]virtv1.VirtualMachineInstance, error)

AllVMI fetches the latest state of all VMIs in a namespace.

func BeGone

func BeGone() types.GomegaMatcher

func BeInPhase

func BeInPhase(phase interface{}) types.GomegaMatcher

func BeOwned added in v0.46.0

func BeOwned() types.GomegaMatcher

func BePresent

func BePresent() types.GomegaMatcher

func BeRunning added in v0.46.0

func BeRunning() types.GomegaMatcher

func Exist

func Exist() types.GomegaMatcher

func HaveConditionFalse added in v0.59.0

func HaveConditionFalse(conditionType interface{}) types.GomegaMatcher

func HaveConditionMissingOrFalse added in v0.59.0

func HaveConditionMissingOrFalse(conditionType interface{}) types.GomegaMatcher

func HaveConditionTrue added in v0.59.0

func HaveConditionTrue(conditionType interface{}) types.GomegaMatcher

func HaveOwners added in v0.46.0

func HaveOwners() types.GomegaMatcher

func HavePhase

func HavePhase(phase interface{}) types.GomegaMatcher

func HavePrintableStatus added in v1.2.0

func HavePrintableStatus(status v1.VirtualMachinePrintableStatus) types.GomegaMatcher

func HaveReadyReplicas added in v0.49.1

func HaveReadyReplicas(comparator types.GomegaMatcher) *readiness

func HaveReadyReplicasNumerically added in v0.49.1

func HaveReadyReplicasNumerically(comparator string, compareTo ...interface{}) types.GomegaMatcher

func HaveSucceeded added in v0.46.0

func HaveSucceeded() types.GomegaMatcher

func ThisDV

func ThisDV(dv *v1beta1.DataVolume) func() (*v1beta1.DataVolume, error)

ThisDV fetches the latest state of the DataVolume. If the object does not exist, nil is returned.

func ThisDVWith added in v0.46.0

func ThisDVWith(namespace string, name string) func() (*v1beta1.DataVolume, error)

ThisDVWith fetches the latest state of the DataVolume based on namespace and name. If the object does not exist, nil is returned.

func ThisDeploymentWith added in v0.49.1

func ThisDeploymentWith(namespace string, name string) func() (*k8sv1.Deployment, error)

ThisDeploymentWith fetches the latest state of the Deployment based on namespace and name. If the object does not exist, nil is returned.

func ThisMigration added in v0.46.0

ThisMigration fetches the latest state of the Migration. If the object does not exist, nil is returned.

func ThisMigrationWith added in v0.46.0

func ThisMigrationWith(namespace string, name string) func() (*virtv1.VirtualMachineInstanceMigration, error)

ThisMigrationWith fetches the latest state of the Migration based on namespace and name. If the object does not exist, nil is returned.

func ThisPVC added in v0.46.0

func ThisPVC(pvc *v1.PersistentVolumeClaim) func() (*v1.PersistentVolumeClaim, error)

ThisPVC fetches the latest state of the PVC. If the object does not exist, nil is returned.

func ThisPVCWith added in v0.46.0

func ThisPVCWith(namespace string, name string) func() (*v1.PersistentVolumeClaim, error)

ThisPVCWith fetches the latest state of the PersistentVolumeClaim based on namespace and name. If the object does not exist, nil is returned.

func ThisPod

func ThisPod(pod *v1.Pod) func() (*v1.Pod, error)

ThisPod fetches the latest state of the pod. If the object does not exist, nil is returned.

func ThisPodWith added in v0.46.0

func ThisPodWith(namespace string, name string) func() (*v1.Pod, error)

ThisPodWith fetches the latest state of the pod based on namespace and name. If the object does not exist, nil is returned.

func ThisVM added in v0.46.0

func ThisVM(vm *virtv1.VirtualMachine) func() (*virtv1.VirtualMachine, error)

ThisVM fetches the latest state of the VirtualMachine. If the object does not exist, nil is returned.

func ThisVMI

ThisVMI fetches the latest state of the VirtualMachineInstance. If the object does not exist, nil is returned.

func ThisVMIWith added in v0.46.0

func ThisVMIWith(namespace string, name string) func() (*virtv1.VirtualMachineInstance, error)

ThisVMIWith fetches the latest state of the VirtualMachineInstance based on namespace and name. If the object does not exist, nil is returned.

func ThisVMWith added in v0.46.0

func ThisVMWith(namespace string, name string) func() (*virtv1.VirtualMachine, error)

ThisVMWith fetches the latest state of the VirtualMachine based on namespace and name. If the object does not exist, nil is returned.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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