matchers

package
v0.0.0-...-dddc735 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetDecoder

func GetDecoder() runtime.Decoder

Kubernetes CRDs should have a scheme that can be added here.

Types

type NamespaceMatcher

type NamespaceMatcher struct {
	// contains filtered or unexported fields
}

func RepresentingNamespace

func RepresentingNamespace() *NamespaceMatcher

func (*NamespaceMatcher) FailureMessage

func (matcher *NamespaceMatcher) FailureMessage(actual interface{}) string

func (*NamespaceMatcher) Match

func (matcher *NamespaceMatcher) Match(actual interface{}) (success bool, err error)

func (*NamespaceMatcher) NegatedFailureMessage

func (matcher *NamespaceMatcher) NegatedFailureMessage(actual interface{}) string

func (*NamespaceMatcher) WithName

func (matcher *NamespaceMatcher) WithName(name string) *NamespaceMatcher

type ObjectMetaMatcher

type ObjectMetaMatcher struct {
	// contains filtered or unexported fields
}

func NewObjectMetaMatcher

func NewObjectMetaMatcher() *ObjectMetaMatcher

func (*ObjectMetaMatcher) FailureMessage

func (matcher *ObjectMetaMatcher) FailureMessage(actual interface{}) string

func (*ObjectMetaMatcher) Match

func (matcher *ObjectMetaMatcher) Match(actual interface{}) (bool, error)

func (*ObjectMetaMatcher) NegatedFailureMessage

func (matcher *ObjectMetaMatcher) NegatedFailureMessage(actual interface{}) string

func (*ObjectMetaMatcher) WithLabels

func (matcher *ObjectMetaMatcher) WithLabels(labels map[string]string) *ObjectMetaMatcher

func (*ObjectMetaMatcher) WithName

func (matcher *ObjectMetaMatcher) WithName(name string) *ObjectMetaMatcher

func (*ObjectMetaMatcher) WithNamespace

func (matcher *ObjectMetaMatcher) WithNamespace(namespace string) *ObjectMetaMatcher

type ProduceYAMLMatcher

type ProduceYAMLMatcher struct {
	// contains filtered or unexported fields
}

func ProduceYAML

func ProduceYAML(matcher types.GomegaMatcher) *ProduceYAMLMatcher

func (*ProduceYAMLMatcher) FailureMessage

func (matcher *ProduceYAMLMatcher) FailureMessage(actual interface{}) string

func (*ProduceYAMLMatcher) Match

func (matcher *ProduceYAMLMatcher) Match(actual interface{}) (bool, error)

func (*ProduceYAMLMatcher) NegatedFailureMessage

func (matcher *ProduceYAMLMatcher) NegatedFailureMessage(actual interface{}) string

type QuarksSecretMatcher

type QuarksSecretMatcher struct {
	// contains filtered or unexported fields
}

func RepresentingAQuarksSecret

func RepresentingAQuarksSecret() *QuarksSecretMatcher

func (*QuarksSecretMatcher) FailureMessage

func (matcher *QuarksSecretMatcher) FailureMessage(actual interface{}) string

func (*QuarksSecretMatcher) Match

func (matcher *QuarksSecretMatcher) Match(actual interface{}) (success bool, err error)

func (*QuarksSecretMatcher) NegatedFailureMessage

func (matcher *QuarksSecretMatcher) NegatedFailureMessage(actual interface{}) string

func (*QuarksSecretMatcher) WithData

func (matcher *QuarksSecretMatcher) WithData(name string, value []byte) *QuarksSecretMatcher

func (*QuarksSecretMatcher) WithName

func (matcher *QuarksSecretMatcher) WithName(name string) *QuarksSecretMatcher

func (*QuarksSecretMatcher) WithStringData

func (matcher *QuarksSecretMatcher) WithStringData(name string, value string) *QuarksSecretMatcher

type RenderingContext

type RenderingContext struct {
	// contains filtered or unexported fields
}

func NewRenderingContext

func NewRenderingContext(opts ...RenderingContextOption) (RenderingContext, error)

type RenderingContextOption

type RenderingContextOption func(RenderingContext) (RenderingContext, error)

func WithData

func WithData(data map[string]interface{}) RenderingContextOption

func WithTargetDir

func WithTargetDir(targetDir string) RenderingContextOption

func WithTemplateFiles

func WithTemplateFiles(templateFiles ...string) RenderingContextOption

func WithValueFiles

func WithValueFiles(valueFiles ...string) RenderingContextOption

type SecretMatcher

type SecretMatcher struct {
	// contains filtered or unexported fields
}

func RepresentingASecret

func RepresentingASecret() *SecretMatcher

func (*SecretMatcher) FailureMessage

func (matcher *SecretMatcher) FailureMessage(actual interface{}) string

func (*SecretMatcher) Match

func (matcher *SecretMatcher) Match(actual interface{}) (success bool, err error)

func (*SecretMatcher) NegatedFailureMessage

func (matcher *SecretMatcher) NegatedFailureMessage(actual interface{}) string

func (*SecretMatcher) WithData

func (matcher *SecretMatcher) WithData(name string, value []byte) *SecretMatcher

func (*SecretMatcher) WithName

func (matcher *SecretMatcher) WithName(name string) *SecretMatcher

func (*SecretMatcher) WithStringData

func (matcher *SecretMatcher) WithStringData(name string, value string) *SecretMatcher

type ServiceMatcher

type ServiceMatcher struct {
	// contains filtered or unexported fields
}

func RepresentingAService

func RepresentingAService() *ServiceMatcher

func (*ServiceMatcher) FailureMessage

func (matcher *ServiceMatcher) FailureMessage(actual interface{}) string

func (*ServiceMatcher) Match

func (matcher *ServiceMatcher) Match(actual interface{}) (success bool, err error)

func (*ServiceMatcher) NegatedFailureMessage

func (matcher *ServiceMatcher) NegatedFailureMessage(actual interface{}) string

func (*ServiceMatcher) WithType

func (matcher *ServiceMatcher) WithType(value string) *ServiceMatcher

type ServiceSpecMatcher

type ServiceSpecMatcher struct {
	// contains filtered or unexported fields
}

func NewServiceSpecMatcher

func NewServiceSpecMatcher() *ServiceSpecMatcher

func (*ServiceSpecMatcher) FailureMessage

func (matcher *ServiceSpecMatcher) FailureMessage(actual interface{}) string

func (*ServiceSpecMatcher) Match

func (matcher *ServiceSpecMatcher) Match(actual interface{}) (bool, error)

func (*ServiceSpecMatcher) NegatedFailureMessage

func (matcher *ServiceSpecMatcher) NegatedFailureMessage(actual interface{}) string

func (*ServiceSpecMatcher) WithType

func (matcher *ServiceSpecMatcher) WithType(value string) *ServiceSpecMatcher

type ThrowErrorMatcher

type ThrowErrorMatcher struct {
	// contains filtered or unexported fields
}

func ThrowError

func ThrowError(text string) *ThrowErrorMatcher

func (*ThrowErrorMatcher) FailureMessage

func (matcher *ThrowErrorMatcher) FailureMessage(actual interface{}) string

func (*ThrowErrorMatcher) Match

func (matcher *ThrowErrorMatcher) Match(actual interface{}) (bool, error)

func (*ThrowErrorMatcher) NegatedFailureMessage

func (matcher *ThrowErrorMatcher) NegatedFailureMessage(actual interface{}) string

type WithConfigMapMatcher

type WithConfigMapMatcher struct {
	// contains filtered or unexported fields
}

func WithConfigMap

func WithConfigMap(name, ns string) *WithConfigMapMatcher

func (*WithConfigMapMatcher) FailureMessage

func (matcher *WithConfigMapMatcher) FailureMessage(actual interface{}) string

func (*WithConfigMapMatcher) Match

func (matcher *WithConfigMapMatcher) Match(actual interface{}) (bool, error)

func (*WithConfigMapMatcher) NegatedFailureMessage

func (matcher *WithConfigMapMatcher) NegatedFailureMessage(actual interface{}) string

func (*WithConfigMapMatcher) WithData

func (matcher *WithConfigMapMatcher) WithData(dm gstruct.Keys) *WithConfigMapMatcher

type WithDaemonSetMatcher

type WithDaemonSetMatcher struct {
	// contains filtered or unexported fields
}

func WithDaemonSet

func WithDaemonSet(name, ns string) *WithDaemonSetMatcher

func (*WithDaemonSetMatcher) FailureMessage

func (matcher *WithDaemonSetMatcher) FailureMessage(actual interface{}) string

func (*WithDaemonSetMatcher) Match

func (matcher *WithDaemonSetMatcher) Match(actual interface{}) (bool, error)

func (*WithDaemonSetMatcher) NegatedFailureMessage

func (matcher *WithDaemonSetMatcher) NegatedFailureMessage(actual interface{}) string

func (*WithDaemonSetMatcher) WithSpecYaml

func (matcher *WithDaemonSetMatcher) WithSpecYaml(yaml string) *WithDaemonSetMatcher

type WithDeploymentMatcher

type WithDeploymentMatcher struct {
	// contains filtered or unexported fields
}

func WithDeployment

func WithDeployment(name, ns string) *WithDeploymentMatcher

func (*WithDeploymentMatcher) FailureMessage

func (matcher *WithDeploymentMatcher) FailureMessage(actual interface{}) string

func (*WithDeploymentMatcher) Match

func (matcher *WithDeploymentMatcher) Match(actual interface{}) (bool, error)

func (*WithDeploymentMatcher) NegatedFailureMessage

func (matcher *WithDeploymentMatcher) NegatedFailureMessage(actual interface{}) string

func (*WithDeploymentMatcher) WithSpecYaml

func (matcher *WithDeploymentMatcher) WithSpecYaml(yaml string) *WithDeploymentMatcher

type WithGatewayMatcher

type WithGatewayMatcher struct {
	// contains filtered or unexported fields
}

func WithGateway

func WithGateway(name, ns string) *WithGatewayMatcher

func (*WithGatewayMatcher) FailureMessage

func (matcher *WithGatewayMatcher) FailureMessage(actual interface{}) string

func (*WithGatewayMatcher) Match

func (matcher *WithGatewayMatcher) Match(actual interface{}) (bool, error)

func (*WithGatewayMatcher) NegatedFailureMessage

func (matcher *WithGatewayMatcher) NegatedFailureMessage(actual interface{}) string

type WithNamespaceMatcher

type WithNamespaceMatcher struct {
	// contains filtered or unexported fields
}

func WithNamespace

func WithNamespace(name string) *WithNamespaceMatcher

func (*WithNamespaceMatcher) FailureMessage

func (matcher *WithNamespaceMatcher) FailureMessage(actual interface{}) string

func (*WithNamespaceMatcher) Match

func (matcher *WithNamespaceMatcher) Match(actual interface{}) (bool, error)

func (*WithNamespaceMatcher) NegatedFailureMessage

func (matcher *WithNamespaceMatcher) NegatedFailureMessage(actual interface{}) string

type WithQuarksSecretMatcher

type WithQuarksSecretMatcher struct {
	// contains filtered or unexported fields
}

func WithQuarksSecret

func WithQuarksSecret(name, ns string) *WithQuarksSecretMatcher

func (*WithQuarksSecretMatcher) FailureMessage

func (matcher *WithQuarksSecretMatcher) FailureMessage(actual interface{}) string

func (*WithQuarksSecretMatcher) Match

func (matcher *WithQuarksSecretMatcher) Match(actual interface{}) (bool, error)

func (*WithQuarksSecretMatcher) NegatedFailureMessage

func (matcher *WithQuarksSecretMatcher) NegatedFailureMessage(actual interface{}) string

type WithSecretMatcher

type WithSecretMatcher struct {
	// contains filtered or unexported fields
}

func WithSecret

func WithSecret(name string, ns string) *WithSecretMatcher

func (*WithSecretMatcher) FailureMessage

func (matcher *WithSecretMatcher) FailureMessage(actual interface{}) string

func (*WithSecretMatcher) Match

func (matcher *WithSecretMatcher) Match(actual interface{}) (bool, error)

func (*WithSecretMatcher) NegatedFailureMessage

func (matcher *WithSecretMatcher) NegatedFailureMessage(actual interface{}) string

func (*WithSecretMatcher) WithDataValue

func (matcher *WithSecretMatcher) WithDataValue(key string, expectedBase64DecodedValue []byte) types.GomegaMatcher

func (*WithSecretMatcher) WithStringDataValue

func (matcher *WithSecretMatcher) WithStringDataValue(key string, secretValue string) types.GomegaMatcher

type WithServiceMatcher

type WithServiceMatcher struct {
	// contains filtered or unexported fields
}

func WithService

func WithService(name string) *WithServiceMatcher

func (*WithServiceMatcher) FailureMessage

func (matcher *WithServiceMatcher) FailureMessage(actual interface{}) string

func (*WithServiceMatcher) Match

func (matcher *WithServiceMatcher) Match(actual interface{}) (bool, error)

func (*WithServiceMatcher) NegatedFailureMessage

func (matcher *WithServiceMatcher) NegatedFailureMessage(actual interface{}) string

func (*WithServiceMatcher) WithData

func (matcher *WithServiceMatcher) WithData(dm gstruct.Keys) *WithServiceMatcher

func (*WithServiceMatcher) WithExactSpecYaml

func (matcher *WithServiceMatcher) WithExactSpecYaml(yaml string) *WithServiceMatcher

func (*WithServiceMatcher) WithSpecYaml

func (matcher *WithServiceMatcher) WithSpecYaml(yaml string) *WithServiceMatcher

func (*WithServiceMatcher) WithType

func (matcher *WithServiceMatcher) WithType(value string) types.GomegaMatcher

type WithStatefulSetMatcher

type WithStatefulSetMatcher struct {
	// contains filtered or unexported fields
}

func WithStatefulSet

func WithStatefulSet(name, ns string) *WithStatefulSetMatcher

func (*WithStatefulSetMatcher) FailureMessage

func (matcher *WithStatefulSetMatcher) FailureMessage(actual interface{}) string

func (*WithStatefulSetMatcher) Match

func (matcher *WithStatefulSetMatcher) Match(actual interface{}) (bool, error)

func (*WithStatefulSetMatcher) NegatedFailureMessage

func (matcher *WithStatefulSetMatcher) NegatedFailureMessage(actual interface{}) string

type WithoutNamespaceMatcher

type WithoutNamespaceMatcher struct {
	// contains filtered or unexported fields
}

func WithoutNamespace

func WithoutNamespace(name string) *WithoutNamespaceMatcher

func (*WithoutNamespaceMatcher) FailureMessage

func (matcher *WithoutNamespaceMatcher) FailureMessage(actual interface{}) string

func (*WithoutNamespaceMatcher) Match

func (matcher *WithoutNamespaceMatcher) Match(actual interface{}) (bool, error)

func (*WithoutNamespaceMatcher) NegatedFailureMessage

func (matcher *WithoutNamespaceMatcher) NegatedFailureMessage(actual interface{}) string

type WithoutSecretMatcher

type WithoutSecretMatcher struct {
	// contains filtered or unexported fields
}

func WithoutSecret

func WithoutSecret(name string) *WithoutSecretMatcher

func (*WithoutSecretMatcher) FailureMessage

func (matcher *WithoutSecretMatcher) FailureMessage(actual interface{}) string

func (*WithoutSecretMatcher) Match

func (matcher *WithoutSecretMatcher) Match(actual interface{}) (bool, error)

func (*WithoutSecretMatcher) NegatedFailureMessage

func (matcher *WithoutSecretMatcher) NegatedFailureMessage(actual interface{}) string

type WithoutServiceMatcher

type WithoutServiceMatcher struct {
	// contains filtered or unexported fields
}

func WithoutService

func WithoutService(name string) *WithoutServiceMatcher

func (*WithoutServiceMatcher) FailureMessage

func (matcher *WithoutServiceMatcher) FailureMessage(actual interface{}) string

func (*WithoutServiceMatcher) Match

func (matcher *WithoutServiceMatcher) Match(actual interface{}) (bool, error)

func (*WithoutServiceMatcher) NegatedFailureMessage

func (matcher *WithoutServiceMatcher) NegatedFailureMessage(actual interface{}) string

Jump to

Keyboard shortcuts

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