Documentation
¶
Index ¶
- type MockStreamDefinitionApplyConfiguration
- func (b *MockStreamDefinitionApplyConfiguration) GetAPIVersion() *string
- func (b *MockStreamDefinitionApplyConfiguration) GetKind() *string
- func (b *MockStreamDefinitionApplyConfiguration) GetName() *string
- func (b *MockStreamDefinitionApplyConfiguration) GetNamespace() *string
- func (b MockStreamDefinitionApplyConfiguration) IsApplyConfiguration()
- func (b *MockStreamDefinitionApplyConfiguration) WithAPIVersion(value string) *MockStreamDefinitionApplyConfiguration
- func (b *MockStreamDefinitionApplyConfiguration) WithAnnotations(entries map[string]string) *MockStreamDefinitionApplyConfiguration
- func (b *MockStreamDefinitionApplyConfiguration) WithCreationTimestamp(value apismetav1.Time) *MockStreamDefinitionApplyConfiguration
- func (b *MockStreamDefinitionApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) *MockStreamDefinitionApplyConfiguration
- func (b *MockStreamDefinitionApplyConfiguration) WithDeletionTimestamp(value apismetav1.Time) *MockStreamDefinitionApplyConfiguration
- func (b *MockStreamDefinitionApplyConfiguration) WithFinalizers(values ...string) *MockStreamDefinitionApplyConfiguration
- func (b *MockStreamDefinitionApplyConfiguration) WithGenerateName(value string) *MockStreamDefinitionApplyConfiguration
- func (b *MockStreamDefinitionApplyConfiguration) WithGeneration(value int64) *MockStreamDefinitionApplyConfiguration
- func (b *MockStreamDefinitionApplyConfiguration) WithKind(value string) *MockStreamDefinitionApplyConfiguration
- func (b *MockStreamDefinitionApplyConfiguration) WithLabels(entries map[string]string) *MockStreamDefinitionApplyConfiguration
- func (b *MockStreamDefinitionApplyConfiguration) WithName(value string) *MockStreamDefinitionApplyConfiguration
- func (b *MockStreamDefinitionApplyConfiguration) WithNamespace(value string) *MockStreamDefinitionApplyConfiguration
- func (b *MockStreamDefinitionApplyConfiguration) WithOwnerReferences(values ...*metav1.OwnerReferenceApplyConfiguration) *MockStreamDefinitionApplyConfiguration
- func (b *MockStreamDefinitionApplyConfiguration) WithResourceVersion(value string) *MockStreamDefinitionApplyConfiguration
- func (b *MockStreamDefinitionApplyConfiguration) WithSpec(value *MockStreamDefinitionSpecApplyConfiguration) *MockStreamDefinitionApplyConfiguration
- func (b *MockStreamDefinitionApplyConfiguration) WithStatus(value *MockStreamDefinitionStatusApplyConfiguration) *MockStreamDefinitionApplyConfiguration
- func (b *MockStreamDefinitionApplyConfiguration) WithUID(value types.UID) *MockStreamDefinitionApplyConfiguration
- type MockStreamDefinitionSpecApplyConfiguration
- func (b *MockStreamDefinitionSpecApplyConfiguration) WithBackfillJobTemplateRef(value corev1.ObjectReference) *MockStreamDefinitionSpecApplyConfiguration
- func (b *MockStreamDefinitionSpecApplyConfiguration) WithDestination(value string) *MockStreamDefinitionSpecApplyConfiguration
- func (b *MockStreamDefinitionSpecApplyConfiguration) WithJobTemplateRef(value corev1.ObjectReference) *MockStreamDefinitionSpecApplyConfiguration
- func (b *MockStreamDefinitionSpecApplyConfiguration) WithSecretRef(value corev1.LocalObjectReference) *MockStreamDefinitionSpecApplyConfiguration
- func (b *MockStreamDefinitionSpecApplyConfiguration) WithSource(value string) *MockStreamDefinitionSpecApplyConfiguration
- func (b *MockStreamDefinitionSpecApplyConfiguration) WithSuspended(value bool) *MockStreamDefinitionSpecApplyConfiguration
- type MockStreamDefinitionStatusApplyConfiguration
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockStreamDefinitionApplyConfiguration ¶
type MockStreamDefinitionApplyConfiguration struct {
metav1.TypeMetaApplyConfiguration `json:",inline"`
*metav1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
Spec *MockStreamDefinitionSpecApplyConfiguration `json:"spec,omitempty"`
Status *MockStreamDefinitionStatusApplyConfiguration `json:"status,omitempty"`
}
MockStreamDefinitionApplyConfiguration represents a declarative configuration of the MockStreamDefinition type for use with apply.
MockStreamDefinition is a mock implementation of the StreamDefinition for testing purposes.
func MockStreamDefinition ¶
func MockStreamDefinition(name, namespace string) *MockStreamDefinitionApplyConfiguration
MockStreamDefinition constructs a declarative configuration of the MockStreamDefinition type for use with apply.
func (*MockStreamDefinitionApplyConfiguration) GetAPIVersion ¶
func (b *MockStreamDefinitionApplyConfiguration) GetAPIVersion() *string
GetAPIVersion retrieves the value of the APIVersion field in the declarative configuration.
func (*MockStreamDefinitionApplyConfiguration) GetKind ¶
func (b *MockStreamDefinitionApplyConfiguration) GetKind() *string
GetKind retrieves the value of the Kind field in the declarative configuration.
func (*MockStreamDefinitionApplyConfiguration) GetName ¶
func (b *MockStreamDefinitionApplyConfiguration) GetName() *string
GetName retrieves the value of the Name field in the declarative configuration.
func (*MockStreamDefinitionApplyConfiguration) GetNamespace ¶
func (b *MockStreamDefinitionApplyConfiguration) GetNamespace() *string
GetNamespace retrieves the value of the Namespace field in the declarative configuration.
func (MockStreamDefinitionApplyConfiguration) IsApplyConfiguration ¶
func (b MockStreamDefinitionApplyConfiguration) IsApplyConfiguration()
func (*MockStreamDefinitionApplyConfiguration) WithAPIVersion ¶
func (b *MockStreamDefinitionApplyConfiguration) WithAPIVersion(value string) *MockStreamDefinitionApplyConfiguration
WithAPIVersion sets the APIVersion field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the APIVersion field is set to the value of the last call.
func (*MockStreamDefinitionApplyConfiguration) WithAnnotations ¶
func (b *MockStreamDefinitionApplyConfiguration) WithAnnotations(entries map[string]string) *MockStreamDefinitionApplyConfiguration
WithAnnotations puts the entries into the Annotations field in the declarative configuration and returns the receiver, so that objects can be build by chaining "With" function invocations. If called multiple times, the entries provided by each call will be put on the Annotations field, overwriting an existing map entries in Annotations field with the same key.
func (*MockStreamDefinitionApplyConfiguration) WithCreationTimestamp ¶
func (b *MockStreamDefinitionApplyConfiguration) WithCreationTimestamp(value apismetav1.Time) *MockStreamDefinitionApplyConfiguration
WithCreationTimestamp sets the CreationTimestamp field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the CreationTimestamp field is set to the value of the last call.
func (*MockStreamDefinitionApplyConfiguration) WithDeletionGracePeriodSeconds ¶
func (b *MockStreamDefinitionApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) *MockStreamDefinitionApplyConfiguration
WithDeletionGracePeriodSeconds sets the DeletionGracePeriodSeconds field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the DeletionGracePeriodSeconds field is set to the value of the last call.
func (*MockStreamDefinitionApplyConfiguration) WithDeletionTimestamp ¶
func (b *MockStreamDefinitionApplyConfiguration) WithDeletionTimestamp(value apismetav1.Time) *MockStreamDefinitionApplyConfiguration
WithDeletionTimestamp sets the DeletionTimestamp field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the DeletionTimestamp field is set to the value of the last call.
func (*MockStreamDefinitionApplyConfiguration) WithFinalizers ¶
func (b *MockStreamDefinitionApplyConfiguration) WithFinalizers(values ...string) *MockStreamDefinitionApplyConfiguration
WithFinalizers adds the given value to the Finalizers field in the declarative configuration and returns the receiver, so that objects can be build by chaining "With" function invocations. If called multiple times, values provided by each call will be appended to the Finalizers field.
func (*MockStreamDefinitionApplyConfiguration) WithGenerateName ¶
func (b *MockStreamDefinitionApplyConfiguration) WithGenerateName(value string) *MockStreamDefinitionApplyConfiguration
WithGenerateName sets the GenerateName field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the GenerateName field is set to the value of the last call.
func (*MockStreamDefinitionApplyConfiguration) WithGeneration ¶
func (b *MockStreamDefinitionApplyConfiguration) WithGeneration(value int64) *MockStreamDefinitionApplyConfiguration
WithGeneration sets the Generation field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Generation field is set to the value of the last call.
func (*MockStreamDefinitionApplyConfiguration) WithKind ¶
func (b *MockStreamDefinitionApplyConfiguration) WithKind(value string) *MockStreamDefinitionApplyConfiguration
WithKind sets the Kind field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Kind field is set to the value of the last call.
func (*MockStreamDefinitionApplyConfiguration) WithLabels ¶
func (b *MockStreamDefinitionApplyConfiguration) WithLabels(entries map[string]string) *MockStreamDefinitionApplyConfiguration
WithLabels puts the entries into the Labels field in the declarative configuration and returns the receiver, so that objects can be build by chaining "With" function invocations. If called multiple times, the entries provided by each call will be put on the Labels field, overwriting an existing map entries in Labels field with the same key.
func (*MockStreamDefinitionApplyConfiguration) WithName ¶
func (b *MockStreamDefinitionApplyConfiguration) WithName(value string) *MockStreamDefinitionApplyConfiguration
WithName sets the Name field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Name field is set to the value of the last call.
func (*MockStreamDefinitionApplyConfiguration) WithNamespace ¶
func (b *MockStreamDefinitionApplyConfiguration) WithNamespace(value string) *MockStreamDefinitionApplyConfiguration
WithNamespace sets the Namespace field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Namespace field is set to the value of the last call.
func (*MockStreamDefinitionApplyConfiguration) WithOwnerReferences ¶
func (b *MockStreamDefinitionApplyConfiguration) WithOwnerReferences(values ...*metav1.OwnerReferenceApplyConfiguration) *MockStreamDefinitionApplyConfiguration
WithOwnerReferences adds the given value to the OwnerReferences field in the declarative configuration and returns the receiver, so that objects can be build by chaining "With" function invocations. If called multiple times, values provided by each call will be appended to the OwnerReferences field.
func (*MockStreamDefinitionApplyConfiguration) WithResourceVersion ¶
func (b *MockStreamDefinitionApplyConfiguration) WithResourceVersion(value string) *MockStreamDefinitionApplyConfiguration
WithResourceVersion sets the ResourceVersion field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the ResourceVersion field is set to the value of the last call.
func (*MockStreamDefinitionApplyConfiguration) WithSpec ¶
func (b *MockStreamDefinitionApplyConfiguration) WithSpec(value *MockStreamDefinitionSpecApplyConfiguration) *MockStreamDefinitionApplyConfiguration
WithSpec sets the Spec field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Spec field is set to the value of the last call.
func (*MockStreamDefinitionApplyConfiguration) WithStatus ¶
func (b *MockStreamDefinitionApplyConfiguration) WithStatus(value *MockStreamDefinitionStatusApplyConfiguration) *MockStreamDefinitionApplyConfiguration
WithStatus sets the Status field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Status field is set to the value of the last call.
func (*MockStreamDefinitionApplyConfiguration) WithUID ¶
func (b *MockStreamDefinitionApplyConfiguration) WithUID(value types.UID) *MockStreamDefinitionApplyConfiguration
WithUID sets the UID field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the UID field is set to the value of the last call.
type MockStreamDefinitionSpecApplyConfiguration ¶
type MockStreamDefinitionSpecApplyConfiguration struct {
// Source represents the source of the stream.
Source *string `json:"source,omitempty"`
// Destination represents the destination of the stream.
Destination *string `json:"destination,omitempty"`
// Suspended indicates whether the stream is suspended.
Suspended *bool `json:"suspended,omitempty"`
// JobTemplateRef represents a reference to the job template.
JobTemplateRef *corev1.ObjectReference `json:"jobTemplateRef,omitempty"`
// BackfillJobTemplateRef represents a reference to the job template.
BackfillJobTemplateRef *corev1.ObjectReference `json:"backfillJobTemplateRef,omitempty"`
// SecretRef
SecretRef *corev1.LocalObjectReference `json:"secretRef,omitempty"`
}
MockStreamDefinitionSpecApplyConfiguration represents a declarative configuration of the MockStreamDefinitionSpec type for use with apply.
MockStreamDefinitionSpec is a mock implementation of the StreamDefinitionSpec for testing purposes.
func MockStreamDefinitionSpec ¶
func MockStreamDefinitionSpec() *MockStreamDefinitionSpecApplyConfiguration
MockStreamDefinitionSpecApplyConfiguration constructs a declarative configuration of the MockStreamDefinitionSpec type for use with apply.
func (*MockStreamDefinitionSpecApplyConfiguration) WithBackfillJobTemplateRef ¶
func (b *MockStreamDefinitionSpecApplyConfiguration) WithBackfillJobTemplateRef(value corev1.ObjectReference) *MockStreamDefinitionSpecApplyConfiguration
WithBackfillJobTemplateRef sets the BackfillJobTemplateRef field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the BackfillJobTemplateRef field is set to the value of the last call.
func (*MockStreamDefinitionSpecApplyConfiguration) WithDestination ¶
func (b *MockStreamDefinitionSpecApplyConfiguration) WithDestination(value string) *MockStreamDefinitionSpecApplyConfiguration
WithDestination sets the Destination field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Destination field is set to the value of the last call.
func (*MockStreamDefinitionSpecApplyConfiguration) WithJobTemplateRef ¶
func (b *MockStreamDefinitionSpecApplyConfiguration) WithJobTemplateRef(value corev1.ObjectReference) *MockStreamDefinitionSpecApplyConfiguration
WithJobTemplateRef sets the JobTemplateRef field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the JobTemplateRef field is set to the value of the last call.
func (*MockStreamDefinitionSpecApplyConfiguration) WithSecretRef ¶ added in v1.1.0
func (b *MockStreamDefinitionSpecApplyConfiguration) WithSecretRef(value corev1.LocalObjectReference) *MockStreamDefinitionSpecApplyConfiguration
WithSecretRef sets the SecretRef field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the SecretRef field is set to the value of the last call.
func (*MockStreamDefinitionSpecApplyConfiguration) WithSource ¶
func (b *MockStreamDefinitionSpecApplyConfiguration) WithSource(value string) *MockStreamDefinitionSpecApplyConfiguration
WithSource sets the Source field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Source field is set to the value of the last call.
func (*MockStreamDefinitionSpecApplyConfiguration) WithSuspended ¶
func (b *MockStreamDefinitionSpecApplyConfiguration) WithSuspended(value bool) *MockStreamDefinitionSpecApplyConfiguration
WithSuspended sets the Suspended field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Suspended field is set to the value of the last call.
type MockStreamDefinitionStatusApplyConfiguration ¶
type MockStreamDefinitionStatusApplyConfiguration struct {
// Phase represents the current phase of the stream.
Phase *string `json:"phase,omitempty"`
// ConfigurationHash represents the hash of the current configuration.
ConfigurationHash *string `json:"configurationHash,omitempty"`
}
MockStreamDefinitionStatusApplyConfiguration represents a declarative configuration of the MockStreamDefinitionStatus type for use with apply.
func MockStreamDefinitionStatus ¶
func MockStreamDefinitionStatus() *MockStreamDefinitionStatusApplyConfiguration
MockStreamDefinitionStatusApplyConfiguration constructs a declarative configuration of the MockStreamDefinitionStatus type for use with apply.
func (*MockStreamDefinitionStatusApplyConfiguration) WithConfigurationHash ¶
func (b *MockStreamDefinitionStatusApplyConfiguration) WithConfigurationHash(value string) *MockStreamDefinitionStatusApplyConfiguration
WithConfigurationHash sets the ConfigurationHash field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the ConfigurationHash field is set to the value of the last call.
func (*MockStreamDefinitionStatusApplyConfiguration) WithPhase ¶
func (b *MockStreamDefinitionStatusApplyConfiguration) WithPhase(value string) *MockStreamDefinitionStatusApplyConfiguration
WithPhase sets the Phase field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Phase field is set to the value of the last call.