Documentation
¶
Overview ¶
pods contains assertions for Kubernetes Pods.
Index ¶
- type PodAssertion
- func (pa PodAssertion) AtLeastNAreReady(count int) PodAssertion
- func (pa PodAssertion) AtLeastNExist(count int) PodAssertion
- func (pa PodAssertion) ExactlyNAreReady(count int) PodAssertion
- func (pa PodAssertion) ExactlyNExist(count int) PodAssertion
- func (pa PodAssertion) Exists() PodAssertion
- func (pa PodAssertion) IsReady() PodAssertion
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PodAssertion ¶
PodAssertion is a wrapper around the assertion.Assertion type and provides a set of assertions for Kubernetes Pods.
func NewPodAssertion ¶
func NewPodAssertion(opts ...assertion.Option) PodAssertion
NewPodAssertion creates a new PodAssertion with the provided options.
func (PodAssertion) AtLeastNAreReady ¶
func (pa PodAssertion) AtLeastNAreReady(count int) PodAssertion
AtLeastNAreReady asserts that at least N Pods are ready in the cluster that match the provided options.
func (PodAssertion) AtLeastNExist ¶
func (pa PodAssertion) AtLeastNExist(count int) PodAssertion
AtLeastNExist asserts that at least N Pods exist in the cluster that match the provided options.
func (PodAssertion) ExactlyNAreReady ¶
func (pa PodAssertion) ExactlyNAreReady(count int) PodAssertion
ExactlyNAreReady asserts that exactly N Pods are ready in the cluster that match the provided options.
func (PodAssertion) ExactlyNExist ¶
func (pa PodAssertion) ExactlyNExist(count int) PodAssertion
ExactlyNExist asserts that exactly N Pods exist in the cluster that match the provided options.
func (PodAssertion) Exists ¶
func (pa PodAssertion) Exists() PodAssertion
Exists asserts that exactly one Pod exists in the cluster that matches the provided options.
func (PodAssertion) IsReady ¶
func (pa PodAssertion) IsReady() PodAssertion
IsReady asserts that exactly one Pod is ready in the cluster that matches the provided options.