Documentation ¶
Index ¶
- func BeBoundToNamespaces(namespaces ...string) types.GomegaMatcher
- func BeBoundToServiceAccounts(serviceAccounts ...string) types.GomegaMatcher
- func BeStableFor(duration time.Duration) types.GomegaMatcher
- func HaveAuthType(value auth.Type) types.GomegaMatcher
- func HaveConfig(config interface{}) types.GomegaMatcher
- func HaveKeyType(value transit.KeyType) types.GomegaMatcher
- func HaveKvSecretField(field string) types.GomegaMatcher
- func HaveKvSecretFieldFieldWithLength(field string, length int) types.GomegaMatcher
- func HaveKvSecretFieldWithValue(field string, value string) types.GomegaMatcher
- func HaveKvSecretFields(fields map[string]string) types.GomegaMatcher
- func HaveMountType(value mount.Type) types.GomegaMatcher
- func HaveName(name string) types.GomegaMatcher
- func HavePath(path string) types.GomegaMatcher
- func HavePolicies(policies ...core.PolicyNameEntity) types.GomegaMatcher
- func HaveRules(rules ...*policy.Rule) types.GomegaMatcher
- type TypeMismatchError
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
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
Source Files ¶
- boundserviceaccountmatcher.go
- boundserviceaccountnamespacematcher.go
- configmatcher.go
- kvsecretfieldlengthmatcher.go
- kvsecretfieldmapmatcher.go
- kvsecretfieldmatcher.go
- kvsecretfieldvaluematcher.go
- matchers.go
- namematcher.go
- pathmatcher.go
- policymatcher.go
- policyrulematcher.go
- stabilitymatcher.go
- typematcher.go
Click to show internal directories.
Click to hide internal directories.