Documentation
¶
Overview ¶
namespace contains assertions for Kubernetes Namespaces.
Index ¶
- type NamespaceAssertion
- func (na NamespaceAssertion) AtLeastNAreRestricted(count int) NamespaceAssertion
- func (na NamespaceAssertion) AtLeastNExist(count int) NamespaceAssertion
- func (na NamespaceAssertion) ExactlyNAreRestricted(count int) NamespaceAssertion
- func (na NamespaceAssertion) ExactlyNExist(count int) NamespaceAssertion
- func (na NamespaceAssertion) Exists() NamespaceAssertion
- func (na NamespaceAssertion) IsRestricted() NamespaceAssertion
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NamespaceAssertion ¶
NamespaceAssertion is an assertion for Kubernetes Namespaces.
func NewNamespaceAssertion ¶
func NewNamespaceAssertion(opts ...assertion.Option) NamespaceAssertion
NewNamespaceAssertion creates a new NamespaceAssertion.
func (NamespaceAssertion) AtLeastNAreRestricted ¶
func (na NamespaceAssertion) AtLeastNAreRestricted(count int) NamespaceAssertion
AtLeastNAreRestricted asserts that at least N Namespaces use the default "restricted" pod security standard.
func (NamespaceAssertion) AtLeastNExist ¶
func (na NamespaceAssertion) AtLeastNExist(count int) NamespaceAssertion
AtLeastNExist asserts that at least N Namespaces exist.
func (NamespaceAssertion) ExactlyNAreRestricted ¶
func (na NamespaceAssertion) ExactlyNAreRestricted(count int) NamespaceAssertion
ExactlyNAreRestricted asserts that exactly N Namespaces use the default "restricted" pod security standard.
func (NamespaceAssertion) ExactlyNExist ¶
func (na NamespaceAssertion) ExactlyNExist(count int) NamespaceAssertion
ExactlyNExist asserts that exactly N Namespaces exist.
func (NamespaceAssertion) Exists ¶
func (na NamespaceAssertion) Exists() NamespaceAssertion
Exists asserts that exactly one Namespace exists.
func (NamespaceAssertion) IsRestricted ¶
func (na NamespaceAssertion) IsRestricted() NamespaceAssertion
IsRestricted asserts that exactly one Namespace uses the default "restricted" pod security standard.