Documentation ¶
Index ¶
- Variables
- func DeepEqual[T any](x, y T) bool
- func FakeRisingWave() *risingwavev1alpha1.RisingWave
- func FakeRisingWaveOpenKruiseDisabled() *risingwavev1alpha1.RisingWave
- func FakeRisingWaveOpenKruiseEnabled() *risingwavev1alpha1.RisingWave
- func FakeRisingWaveWithMutate(mutate func(wave *risingwavev1alpha1.RisingWave)) *risingwavev1alpha1.RisingWave
- func GetNodeGroupName(i 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 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 GetNodeGroupName ¶ added in v0.4.0
GetNodeGroupName returns the group name for a specified index.
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.