matchers

package
v1.1.180 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2024 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BeBoundToNamespaces

func BeBoundToNamespaces(namespaces ...string) types.GomegaMatcher

func BeBoundToServiceAccounts

func BeBoundToServiceAccounts(serviceAccounts ...string) types.GomegaMatcher

func BeStableFor

func BeStableFor(duration time.Duration) types.GomegaMatcher

func HaveAuthType

func HaveAuthType(value auth.Type) types.GomegaMatcher

func HaveConfig

func HaveConfig(config interface{}) types.GomegaMatcher

func HaveKeyType

func HaveKeyType(value transit.KeyType) types.GomegaMatcher

func HaveKvSecretField

func HaveKvSecretField(field string) types.GomegaMatcher

func HaveKvSecretFieldFieldWithLength

func HaveKvSecretFieldFieldWithLength(field string, length int) types.GomegaMatcher

func HaveKvSecretFieldWithValue

func HaveKvSecretFieldWithValue(field string, value string) types.GomegaMatcher

func HaveKvSecretFields

func HaveKvSecretFields(fields map[string]string) types.GomegaMatcher

func HaveMountType

func HaveMountType(value mount.Type) types.GomegaMatcher

func HaveName

func HaveName(name string) types.GomegaMatcher

func HavePath

func HavePath(path string) types.GomegaMatcher

func HavePolicies

func HavePolicies(policies ...core.PolicyNameEntity) types.GomegaMatcher

func HaveRules

func HaveRules(rules ...*policy.Rule) types.GomegaMatcher

Types

type TypeMismatchError

type TypeMismatchError string
const ErrBoundServiceAccountMatcherTypeMismatch TypeMismatchError = "can only match against kubernetesauth.RoleEntity objects"
const ErrBoundServiceAccountNamespaceMatcherTypeMismatch TypeMismatchError = "can only match against kubernetesauth.RoleEntity objects"
const ErrConfigMatcherTypeMismatch TypeMismatchError = "can only match against objects implementing kvengine.Entity, transit.EngineEntity or transit.KeyEntity"
const ErrKvSecretFieldLengthMatcherTypeMismatch TypeMismatchError = "can only match against kvsecret.Entity objects"
const ErrKvSecretFieldMapMatcherTypeMismatch TypeMismatchError = "can only match against kvsecret.Entity objects"
const ErrKvSecretFieldPresenceMatcherTypeMismatch TypeMismatchError = "can only match against kvsecret.Entity objects"
const ErrKvSecretFieldValueMatcherTypeMismatch TypeMismatchError = "can only match against kvsecret.Entity objects"
const ErrNameMatcherTypeMismatch TypeMismatchError = "can only match against objects implementing core.RoleNameEntity, core.PolicyNameEntity or transit.KeyNameEntity"
const ErrPathMatcherTypeMismatch TypeMismatchError = "can only match against objects implementing core.MountPathEntity or core.SecretPathEntity"
const ErrPolicyRuleMatcherTypeMismatch TypeMismatchError = "can only match against objects implementing policy.Body"
const ErrRolePolicyMatcherTypeMismatch TypeMismatchError = "can only match against objects implementing core.RolePoliciesEntity"
const ErrStabilityMatcherTypeMismatch TypeMismatchError = "can only match against objects impleneting the testenv.TestSecret interface"
const ErrTypeMatcherTypeMismatch TypeMismatchError = "can only match against objects implementing auth.MethodEntity, mount.Entity or transit.KeyEntity"

func (TypeMismatchError) Error

func (t TypeMismatchError) Error() string

Jump to

Keyboard shortcuts

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