Documentation
¶
Overview ¶
secrets contains assertions for Kubernetes Secrets.
Index ¶
- type SecretAssertion
- func (sa SecretAssertion) AtLeastNExist(count int) SecretAssertion
- func (sa SecretAssertion) AtLeastNHaveContent(count int, content map[string]string) SecretAssertion
- func (sa SecretAssertion) ExactlyNExist(count int) SecretAssertion
- func (sa SecretAssertion) ExactlyNHaveContent(count int, content map[string]string) SecretAssertion
- func (sa SecretAssertion) Exists() SecretAssertion
- func (sa SecretAssertion) HasContent(content map[string]string) SecretAssertion
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SecretAssertion ¶
SecretAssertion is a wrapper around the assertion.Assertion type and provides a set of assertions for Kubernetes Secrets.
func NewSecretAssertion ¶
func NewSecretAssertion(opts ...assertion.Option) SecretAssertion
NewSecretAssertion creates a new SecretAssertion with the provided options.
func (SecretAssertion) AtLeastNExist ¶
func (sa SecretAssertion) AtLeastNExist(count int) SecretAssertion
AtLeastNExist asserts that at least N Secrets exist in the cluster that match the provided options.
func (SecretAssertion) AtLeastNHaveContent ¶
func (sa SecretAssertion) AtLeastNHaveContent(count int, content map[string]string) SecretAssertion
AtLeastNHaveContent asserts that at least N Secrets in the cluster contain the provided content. This match is not exclusive meaning that the Secrets can contain additional content.
func (SecretAssertion) ExactlyNExist ¶
func (sa SecretAssertion) ExactlyNExist(count int) SecretAssertion
ExactlyNExist asserts that exactly N Secrets exist in the cluster that match the provided options.
func (SecretAssertion) ExactlyNHaveContent ¶
func (sa SecretAssertion) ExactlyNHaveContent(count int, content map[string]string) SecretAssertion
ExactlyNHaveContent asserts that exactly N Secrets in the cluster contain the provided content. This match is not exclusive meaning that the Secrets can contain additional content.
func (SecretAssertion) Exists ¶
func (sa SecretAssertion) Exists() SecretAssertion
Exists asserts that exactly one Secret exists in the cluster that matches the provided options.
func (SecretAssertion) HasContent ¶
func (sa SecretAssertion) HasContent(content map[string]string) SecretAssertion
HasContent asserts that exactly one Secret in the cluster contains the provided content. This match is not exclusive meaning that the Secret can contain additional content.