Help us shape the future of Go! Take the 2026 Go Developer Survey

v1

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 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 *testv1.MockStreamDefinition objects in tests.

func NewMockStreamDefinitionBuilder

func NewMockStreamDefinitionBuilder(objectName types.NamespacedName) *MockStreamDefinitionBuilder

NewMockStreamDefinitionBuilder creates a new builder pre-populated with defaults used by the v1 test setup.

func (*MockStreamDefinitionBuilder) Apply

Apply runs an arbitrary mutation function on the underlying definition.

func (*MockStreamDefinitionBuilder) Build

Build returns the constructed *testv1.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) WithPhase

WithPhase sets the status phase of the stream definition.

func (*MockStreamDefinitionBuilder) WithSuspendedSpec

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

WithSuspendedSpec sets the Suspended flag on the spec.

Jump to

Keyboard shortcuts

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