Documentation ¶
Index ¶
- Variables
- func DeepEqual[T any](x, y T) bool
- func FakeRisingWave() *risingwavev1alpha1.RisingWave
- func FakeRisingWaveComponentOnly() *risingwavev1alpha1.RisingWave
- func FakeRisingWaveComponentOnlyOpenKruiseEnabled() *risingwavev1alpha1.RisingWave
- func FakeRisingWaveOpenKruiseDisabled() *risingwavev1alpha1.RisingWave
- func FakeRisingWaveOpenKruiseEnabled() *risingwavev1alpha1.RisingWave
- func FakeRisingWaveWithMutate(mutate func(wave *risingwavev1alpha1.RisingWave)) *risingwavev1alpha1.RisingWave
- func GetGroupName(index int) string
- func JSONMustPrettyPrint(x any) string
- func NewFakeRisingWaveScaleViewFor(risingwave *risingwavev1alpha1.RisingWave, component string, ...) *risingwavev1alpha1.RisingWaveScaleView
Constants ¶
This section is empty.
Variables ¶
var Scheme = runtime.NewScheme()
Scheme for test only.
Functions ¶
func FakeRisingWave ¶
func FakeRisingWave() *risingwavev1alpha1.RisingWave
FakeRisingWave returns a new fake Risingwave.
func FakeRisingWaveComponentOnly ¶
func FakeRisingWaveComponentOnly() *risingwavev1alpha1.RisingWave
FakeRisingWaveComponentOnly returns a new RisingWave object copied from fakeRisingWaveComponentOnly.
func FakeRisingWaveComponentOnlyOpenKruiseEnabled ¶ added in v0.2.4
func FakeRisingWaveComponentOnlyOpenKruiseEnabled() *risingwavev1alpha1.RisingWave
FakeRisingWaveComponentOnlyOpenKruiseEnabled returns a new RisingWave object with OpenKruise enabled.
func FakeRisingWaveOpenKruiseDisabled ¶ added in v0.2.4
func FakeRisingWaveOpenKruiseDisabled() *risingwavev1alpha1.RisingWave
FakeRisingWaveOpenKruiseDisabled returns a new fake RisingWave with OpenKruise disabled.
func FakeRisingWaveOpenKruiseEnabled ¶ added in v0.2.4
func FakeRisingWaveOpenKruiseEnabled() *risingwavev1alpha1.RisingWave
FakeRisingWaveOpenKruiseEnabled returns a new fake RisingWave with OpenKruise enabled.
func FakeRisingWaveWithMutate ¶ added in v0.2.2
func FakeRisingWaveWithMutate(mutate func(wave *risingwavev1alpha1.RisingWave)) *risingwavev1alpha1.RisingWave
FakeRisingWaveWithMutate creates a new fake RisingWave and applies the mutate function. It's for test purposes.
func GetGroupName ¶ added in v0.2.2
GetGroupName returns the group name used in the fake RisingWaves.
func JSONMustPrettyPrint ¶ added in v0.2.5
JSONMustPrettyPrint serializes the given object into JSON string. It will panic with error if serialization fails.
func NewFakeRisingWaveScaleViewFor ¶ added in v0.2.2
func NewFakeRisingWaveScaleViewFor(risingwave *risingwavev1alpha1.RisingWave, component string, mutates ...func(*risingwavev1alpha1.RisingWave, *risingwavev1alpha1.RisingWaveScaleView)) *risingwavev1alpha1.RisingWaveScaleView
NewFakeRisingWaveScaleViewFor creates a new fake RisingWaveScaleView object for the target RisingWave and component. It applies the given mutations before returning.
Types ¶
This section is empty.