Documentation ¶
Index ¶
- func HandleIntegrationEvents(ctx context.Context, c client.Client, integration *v1.Integration, ...) error
- func HandleIntegrationPlatformEvents(ctx context.Context, c client.Client, p *v1.IntegrationPlatform, ...) error
- func HandleIntegrationStateChanges(ctx context.Context, c client.Client, integration *v1.Integration, ...) (*v1.IntegrationPhase, error)
- func HandlePlatformStateChanges(ctx context.Context, c client.Client, platform *v1.IntegrationPlatform, ...) error
- func WaitPodToTerminate(ctx context.Context, c client.Client, pod *corev1.Pod) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HandleIntegrationEvents ¶
func HandleIntegrationEvents(ctx context.Context, c client.Client, integration *v1.Integration, handler func(event *corev1.Event) bool) error
HandleIntegrationEvents watches all events related to the given integration. This function blocks until the handler function returns true or either the events channel or the context is closed.
func HandleIntegrationPlatformEvents ¶
func HandleIntegrationPlatformEvents(ctx context.Context, c client.Client, p *v1.IntegrationPlatform, handler func(event *corev1.Event) bool) error
HandleIntegrationPlatformEvents watches all events related to the given integration platform. This function blocks until the handler function returns true or either the events channel or the context is closed.
func HandleIntegrationStateChanges ¶
func HandleIntegrationStateChanges(ctx context.Context, c client.Client, integration *v1.Integration, handler func(integration *v1.Integration) bool) (*v1.IntegrationPhase, error)
HandleIntegrationStateChanges watches an Integration resource and invoke the given handler when its status changes. This function blocks until the handler function returns true or either the events channel or the context is closed.
func HandlePlatformStateChanges ¶
func HandlePlatformStateChanges(ctx context.Context, c client.Client, platform *v1.IntegrationPlatform, handler func(platform *v1.IntegrationPlatform) bool) error
HandlePlatformStateChanges watches a platform resource and invoke the given handler when its status changes. This function blocks until the handler function returns true or either the events channel or the context is closed.
Types ¶
This section is empty.