namespaces

package
v0.0.0-...-10c3143 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2025 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

namespace contains assertions for Kubernetes Namespaces.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NamespaceAssertion

type NamespaceAssertion struct {
	assertion.Assertion
}

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

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳