v2

package
v1.1.4 Latest Latest
Warning

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

Go to latest
Published: Jun 8, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockStreamDefinitionBuilder

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

MockStreamDefinitionBuilder provides a fluent builder for constructing *testv2.MockStreamDefinition objects in tests.

func NewMockStreamDefinitionBuilder

func NewMockStreamDefinitionBuilder(objectName types.NamespacedName) *MockStreamDefinitionBuilder

NewMockStreamDefinitionBuilder creates a new builder pre-populated with the same defaults used by SetupClient.

func (*MockStreamDefinitionBuilder) Apply

Apply runs an arbitrary mutation function on the underlying definition. This allows composing the builder with the existing functional-option style helpers in this package.

func (*MockStreamDefinitionBuilder) Build

Build returns the constructed *testv2.MockStreamDefinition. The result is computed on the first call and the same pointer is returned on subsequent calls.

func (*MockStreamDefinitionBuilder) WithName

WithName sets the name and namespace of the stream definition.

func (*MockStreamDefinitionBuilder) WithNoBackend added in v1.1.4

WithNoBackend configures the stream definition with an empty backend, clearing both the batch job and cron job backends.

func (*MockStreamDefinitionBuilder) WithPhase

WithPhase sets the status phase of the stream definition.

func (*MockStreamDefinitionBuilder) WithSchedule

WithSchedule configures the stream definition with a cron job backend using the provided schedule, clearing the batch job backend.

func (*MockStreamDefinitionBuilder) WithSuspendedSpec

func (b *MockStreamDefinitionBuilder) WithSuspendedSpec(spec bool) *MockStreamDefinitionBuilder

WithSuspendedSpec sets the Suspended flag on the execution settings.

Jump to

Keyboard shortcuts

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