Documentation ¶
Index ¶
- type TestUtil
- func (f *TestUtil) Cleanup()
- func (f *TestUtil) CreateCRD() error
- func (f *TestUtil) CreateFlinkApplication(application *flinkapp.FlinkApplication) error
- func (f *TestUtil) CreateOperator() error
- func (f *TestUtil) FlinkAPIGet(app *flinkapp.FlinkApplication, endpoint string) (interface{}, error)
- func (f *TestUtil) FlinkAPIPatch(app *flinkapp.FlinkApplication, endpoint string) (interface{}, error)
- func (f *TestUtil) FlinkApps() client.FlinkApplicationInterface
- func (f *TestUtil) GetCurrentStatusIndex(app *flinkapp.FlinkApplication) int32
- func (f *TestUtil) GetFlinkApplication(name string) (*flinkapp.FlinkApplication, error)
- func (f *TestUtil) GetJobID(app *flinkapp.FlinkApplication) string
- func (f *TestUtil) GetJobManagerPod() (string, error)
- func (f *TestUtil) GetJobOverview(app *flinkapp.FlinkApplication) map[string]interface{}
- func (f *TestUtil) GetLogs(podName string, lines *int64) error
- func (f *TestUtil) GetTaskManagerPods() ([]string, error)
- func (f *TestUtil) Min(x, y int32) int32
- func (f *TestUtil) ReadFlinkApplication(path string) (*flinkapp.FlinkApplication, error)
- func (f *TestUtil) TailOperatorLogs() error
- func (f *TestUtil) Update(name string, updateFn func(app *flinkapp.FlinkApplication)) (*flinkapp.FlinkApplication, error)
- func (f *TestUtil) WaitForAllTasksRunning(name string) error
- func (f *TestUtil) WaitForPhase(name string, phase flinkapp.FlinkApplicationPhase, ...) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TestUtil ¶
type TestUtil struct { KubeClient kubernetes.Interface FlinkApplicationClient clientset.Interface APIExtensionsClient apiextensionsClientset.Interface Namespace *v1.Namespace Image string CheckpointDir string }
func (*TestUtil) CreateFlinkApplication ¶
func (f *TestUtil) CreateFlinkApplication(application *flinkapp.FlinkApplication) error
func (*TestUtil) CreateOperator ¶
func (*TestUtil) FlinkAPIGet ¶
func (f *TestUtil) FlinkAPIGet(app *flinkapp.FlinkApplication, endpoint string) (interface{}, error)
func (*TestUtil) FlinkAPIPatch ¶ added in v0.5.0
func (f *TestUtil) FlinkAPIPatch(app *flinkapp.FlinkApplication, endpoint string) (interface{}, error)
func (*TestUtil) FlinkApps ¶
func (f *TestUtil) FlinkApps() client.FlinkApplicationInterface
func (*TestUtil) GetCurrentStatusIndex ¶ added in v0.5.0
func (f *TestUtil) GetCurrentStatusIndex(app *flinkapp.FlinkApplication) int32
func (*TestUtil) GetFlinkApplication ¶
func (f *TestUtil) GetFlinkApplication(name string) (*flinkapp.FlinkApplication, error)
func (*TestUtil) GetJobID ¶ added in v0.5.0
func (f *TestUtil) GetJobID(app *flinkapp.FlinkApplication) string
func (*TestUtil) GetJobManagerPod ¶
func (*TestUtil) GetJobOverview ¶ added in v0.5.0
func (f *TestUtil) GetJobOverview(app *flinkapp.FlinkApplication) map[string]interface{}
func (*TestUtil) GetTaskManagerPods ¶
func (*TestUtil) ReadFlinkApplication ¶
func (f *TestUtil) ReadFlinkApplication(path string) (*flinkapp.FlinkApplication, error)
func (*TestUtil) TailOperatorLogs ¶
func (*TestUtil) Update ¶ added in v0.3.0
func (f *TestUtil) Update(name string, updateFn func(app *flinkapp.FlinkApplication)) (*flinkapp.FlinkApplication, error)
func (*TestUtil) WaitForAllTasksRunning ¶ added in v0.3.0
func (*TestUtil) WaitForPhase ¶
func (f *TestUtil) WaitForPhase(name string, phase flinkapp.FlinkApplicationPhase, failurePhases ...flinkapp.FlinkApplicationPhase) error
Click to show internal directories.
Click to hide internal directories.