secrets

package
v0.0.0-...-0d68d12 Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2025 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

secrets contains assertions for Kubernetes Secrets.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SecretAssertion

type SecretAssertion struct {
	assertion.Assertion
}

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.

Jump to

Keyboard shortcuts

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