Documentation ¶
Index ¶
- func ExecLifecyclePreStart(handler Handler) error
- func HandleP0(ctx context.Context, handler ...HandleP0Func) (bool, error)
- func HandleP0WithCondition(ctx context.Context, conditions *api.ConditionList, ...) (bool, error)
- func HandleP0WithStop(ctx context.Context, handler ...HandleP0Func) (bool, error)
- func HandleP1[P1 any](ctx context.Context, p1 P1, handler ...HandleP1Func[P1]) (bool, error)
- func HandleP1WithCondition[P1 any](ctx context.Context, conditions *api.ConditionList, ...) (bool, error)
- func HandleP1WithStop[P1 any](ctx context.Context, p1 P1, handler ...HandleP1Func[P1]) (bool, error)
- func HandleP2[P1, P2 any](ctx context.Context, p1 P1, p2 P2, handler ...HandleP2Func[P1, P2]) (bool, error)
- func HandleP2WithCondition[P1, P2 any](ctx context.Context, conditions *api.ConditionList, ...) (bool, error)
- func HandleP2WithStop[P1, P2 any](ctx context.Context, p1 P1, p2 P2, handler ...HandleP2Func[P1, P2]) (bool, error)
- func HandleP3[P1, P2, P3 any](ctx context.Context, p1 P1, p2 P2, p3 P3, handler ...HandleP3Func[P1, P2, P3]) (bool, error)
- func HandleP3WithCondition[P1, P2, P3 any](ctx context.Context, conditions *api.ConditionList, ...) (bool, error)
- func HandleP3WithStop[P1, P2, P3 any](ctx context.Context, p1 P1, p2 P2, p3 P3, handler ...HandleP3Func[P1, P2, P3]) (bool, error)
- func HandleP4[P1, P2, P3, P4 any](ctx context.Context, p1 P1, p2 P2, p3 P3, p4 P4, ...) (bool, error)
- func HandleP4WithCondition[P1, P2, P3, P4 any](ctx context.Context, conditions *api.ConditionList, ...) (bool, error)
- func HandleP4WithStop[P1, P2, P3, P4 any](ctx context.Context, p1 P1, p2 P2, p3 P3, p4 P4, ...) (bool, error)
- func HandleP5[P1, P2, P3, P4, P5 any](ctx context.Context, p1 P1, p2 P2, p3 P3, p4 P4, p5 P5, ...) (bool, error)
- func HandleP5WithCondition[P1, P2, P3, P4, P5 any](ctx context.Context, conditions *api.ConditionList, ...) (bool, error)
- func HandleP5WithStop[P1, P2, P3, P4, P5 any](ctx context.Context, p1 P1, p2 P2, p3 P3, p4 P4, p5 P5, ...) (bool, error)
- func HandleP6[P1, P2, P3, P4, P5, P6 any](ctx context.Context, p1 P1, p2 P2, p3 P3, p4 P4, p5 P5, p6 P6, ...) (bool, error)
- func HandleP6WithCondition[P1, P2, P3, P4, P5, P6 any](ctx context.Context, conditions *api.ConditionList, ...) (bool, error)
- func HandleP6WithStop[P1, P2, P3, P4, P5, P6 any](ctx context.Context, p1 P1, p2 P2, p3 P3, p4 P4, p5 P5, p6 P6, ...) (bool, error)
- func HandleP7[P1, P2, P3, P4, P5, P6, P7 any](ctx context.Context, p1 P1, p2 P2, p3 P3, p4 P4, p5 P5, p6 P6, p7 P7, ...) (bool, error)
- func HandleP7WithCondition[P1, P2, P3, P4, P5, P6, P7 any](ctx context.Context, conditions *api.ConditionList, ...) (bool, error)
- func HandleP7WithStop[P1, P2, P3, P4, P5, P6, P7 any](ctx context.Context, p1 P1, p2 P2, p3 P3, p4 P4, p5 P5, p6 P6, p7 P7, ...) (bool, error)
- func HandleP8[P1, P2, P3, P4, P5, P6, P7, P8 any](ctx context.Context, p1 P1, p2 P2, p3 P3, p4 P4, p5 P5, p6 P6, p7 P7, p8 P8, ...) (bool, error)
- func HandleP8WithCondition[P1, P2, P3, P4, P5, P6, P7, P8 any](ctx context.Context, conditions *api.ConditionList, ...) (bool, error)
- func HandleP8WithStop[P1, P2, P3, P4, P5, P6, P7, P8 any](ctx context.Context, p1 P1, p2 P2, p3 P3, p4 P4, p5 P5, p6 P6, p7 P7, p8 P8, ...) (bool, error)
- func HandleP9[P1, P2, P3, P4, P5, P6, P7, P8, P9 any](ctx context.Context, p1 P1, p2 P2, p3 P3, p4 P4, p5 P5, p6 P6, p7 P7, p8 P8, ...) (bool, error)
- func HandleP9WithCondition[P1, P2, P3, P4, P5, P6, P7, P8, P9 any](ctx context.Context, conditions *api.ConditionList, ...) (bool, error)
- func HandleP9WithStop[P1, P2, P3, P4, P5, P6, P7, P8, P9 any](ctx context.Context, p1 P1, p2 P2, p3 P3, p4 P4, p5 P5, p6 P6, p7 P7, p8 P8, ...) (bool, error)
- func IsReconcile(err error) bool
- func IsStop(err error) bool
- func Reconcile(msg string, args ...interface{}) error
- func Stop(msg string, args ...interface{}) error
- func WithAnalyticsGAEUpdateStatusInterfaceRetry(ctx context.Context, ...) (*analyticsApi.GraphAnalyticsEngine, error)
- func WithArangoBackupUpdateStatusInterfaceRetry(ctx context.Context, ...) (*backupApi.ArangoBackup, error)
- func WithArangoBatchJobUpdateStatusInterfaceRetry(ctx context.Context, ...) (*mlApiv1alpha1.ArangoMLBatchJob, error)
- func WithArangoCronJobUpdateStatusInterfaceRetry(ctx context.Context, ...) (*mlApiv1alpha1.ArangoMLCronJob, error)
- func WithArangoExtensionUpdateStatusInterfaceRetry(ctx context.Context, ...) (*mlApi.ArangoMLExtension, error)
- func WithArangoPlatformChartUpdateStatusInterfaceRetry(ctx context.Context, ...) (*platformApi.ArangoPlatformChart, error)
- func WithArangoPlatformStorageUpdateStatusInterfaceRetry(ctx context.Context, ...) (*platformApi.ArangoPlatformStorage, error)
- func WithArangoStorageUpdateStatusInterfaceRetry(ctx context.Context, ...) (*mlApi.ArangoMLStorage, error)
- func WithCondition(conditions *api.ConditionList, condition api.ConditionType, changed bool, ...) (bool, error)
- func WithConditionChange(conditions *api.ConditionList, condition api.ConditionType, c *Condition, ...) (bool, error)
- func WithNetworkingArangoRouteUpdateStatusInterfaceRetry(ctx context.Context, ...) (*networkingApi.ArangoRoute, error)
- func WithSchedulerArangoProfileUpdateStatusInterfaceRetry(ctx context.Context, ...) (*schedulerApi.ArangoProfile, error)
- func WithSchedulerBatchJobUpdateStatusInterfaceRetry(ctx context.Context, ...) (*schedulerApi.ArangoSchedulerBatchJob, error)
- func WithSchedulerCronJobUpdateStatusInterfaceRetry(ctx context.Context, ...) (*schedulerApi.ArangoSchedulerCronJob, error)
- func WithSchedulerDeploymentUpdateStatusInterfaceRetry(ctx context.Context, ...) (*schedulerApi.ArangoSchedulerDeployment, error)
- func WithSchedulerPodUpdateStatusInterfaceRetry(ctx context.Context, ...) (*schedulerApi.ArangoSchedulerPod, error)
- func WithUpdateStatusInterface[S interface{}, T Object[S]](ctx context.Context, client UpdateStatusInterface[S, T], obj T, status S, ...) (T, error)
- func WithUpdateStatusInterfaceRetry[S interface{}, T Object[S]](ctx context.Context, client UpdateStatusInterface[S, T], obj T, status S, ...) (T, error)
- type Condition
- type GetInterface
- type HandleP0ConditionExtract
- type HandleP0ConditionFunc
- type HandleP0Func
- type HandleP1ConditionExtract
- type HandleP1ConditionFunc
- type HandleP1Func
- type HandleP2ConditionExtract
- type HandleP2ConditionFunc
- type HandleP2Func
- type HandleP3ConditionExtract
- type HandleP3ConditionFunc
- type HandleP3Func
- type HandleP4ConditionExtract
- type HandleP4ConditionFunc
- type HandleP4Func
- type HandleP5ConditionExtract
- type HandleP5ConditionFunc
- type HandleP5Func
- type HandleP6ConditionExtract
- type HandleP6ConditionFunc
- type HandleP6Func
- type HandleP7ConditionExtract
- type HandleP7ConditionFunc
- type HandleP7Func
- type HandleP8ConditionExtract
- type HandleP8ConditionFunc
- type HandleP8Func
- type HandleP9ConditionExtract
- type HandleP9ConditionFunc
- type HandleP9Func
- type Handler
- type InformerFilter
- type LifecyclePreStart
- type Object
- type Operator
- type Starter
- type UpdateStatusInterface
- type UpdateStatusInterfaceClient
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExecLifecyclePreStart ¶
ExecLifecyclePreStart execute PreStart step on handler if interface is implemented
func HandleP0WithCondition ¶
func HandleP0WithCondition(ctx context.Context, conditions *api.ConditionList, condition api.ConditionType, handler ...HandleP0Func) (bool, error)
func HandleP0WithStop ¶
func HandleP0WithStop(ctx context.Context, handler ...HandleP0Func) (bool, error)
func HandleP1WithCondition ¶
func HandleP1WithCondition[P1 any](ctx context.Context, conditions *api.ConditionList, condition api.ConditionType, p1 P1, handler ...HandleP1Func[P1]) (bool, error)
func HandleP1WithStop ¶
func HandleP2WithCondition ¶
func HandleP2WithCondition[P1, P2 any](ctx context.Context, conditions *api.ConditionList, condition api.ConditionType, p1 P1, p2 P2, handler ...HandleP2Func[P1, P2]) (bool, error)
func HandleP2WithStop ¶
func HandleP3WithCondition ¶
func HandleP3WithCondition[P1, P2, P3 any](ctx context.Context, conditions *api.ConditionList, condition api.ConditionType, p1 P1, p2 P2, p3 P3, handler ...HandleP3Func[P1, P2, P3]) (bool, error)
func HandleP3WithStop ¶
func HandleP4WithCondition ¶
func HandleP4WithCondition[P1, P2, P3, P4 any](ctx context.Context, conditions *api.ConditionList, condition api.ConditionType, p1 P1, p2 P2, p3 P3, p4 P4, handler ...HandleP4Func[P1, P2, P3, P4]) (bool, error)
func HandleP4WithStop ¶
func HandleP5WithCondition ¶
func HandleP5WithCondition[P1, P2, P3, P4, P5 any](ctx context.Context, conditions *api.ConditionList, condition api.ConditionType, p1 P1, p2 P2, p3 P3, p4 P4, p5 P5, handler ...HandleP5Func[P1, P2, P3, P4, P5]) (bool, error)
func HandleP5WithStop ¶
func HandleP6WithCondition ¶
func HandleP6WithCondition[P1, P2, P3, P4, P5, P6 any](ctx context.Context, conditions *api.ConditionList, condition api.ConditionType, p1 P1, p2 P2, p3 P3, p4 P4, p5 P5, p6 P6, handler ...HandleP6Func[P1, P2, P3, P4, P5, P6]) (bool, error)
func HandleP6WithStop ¶
func HandleP7WithCondition ¶
func HandleP7WithCondition[P1, P2, P3, P4, P5, P6, P7 any](ctx context.Context, conditions *api.ConditionList, condition api.ConditionType, p1 P1, p2 P2, p3 P3, p4 P4, p5 P5, p6 P6, p7 P7, handler ...HandleP7Func[P1, P2, P3, P4, P5, P6, P7]) (bool, error)
func HandleP7WithStop ¶
func HandleP8WithCondition ¶
func HandleP8WithCondition[P1, P2, P3, P4, P5, P6, P7, P8 any](ctx context.Context, conditions *api.ConditionList, condition api.ConditionType, p1 P1, p2 P2, p3 P3, p4 P4, p5 P5, p6 P6, p7 P7, p8 P8, handler ...HandleP8Func[P1, P2, P3, P4, P5, P6, P7, P8]) (bool, error)
func HandleP8WithStop ¶
func HandleP9WithCondition ¶
func HandleP9WithCondition[P1, P2, P3, P4, P5, P6, P7, P8, P9 any](ctx context.Context, conditions *api.ConditionList, condition api.ConditionType, p1 P1, p2 P2, p3 P3, p4 P4, p5 P5, p6 P6, p7 P7, p8 P8, p9 P9, handler ...HandleP9Func[P1, P2, P3, P4, P5, P6, P7, P8, P9]) (bool, error)
func HandleP9WithStop ¶
func IsReconcile ¶
func WithAnalyticsGAEUpdateStatusInterfaceRetry ¶
func WithAnalyticsGAEUpdateStatusInterfaceRetry(ctx context.Context, client UpdateStatusInterface[analyticsApi.GraphAnalyticsEngineStatus, *analyticsApi.GraphAnalyticsEngine], obj *analyticsApi.GraphAnalyticsEngine, status analyticsApi.GraphAnalyticsEngineStatus, opts meta.UpdateOptions) (*analyticsApi.GraphAnalyticsEngine, error)
func WithArangoBackupUpdateStatusInterfaceRetry ¶
func WithArangoBackupUpdateStatusInterfaceRetry(ctx context.Context, client UpdateStatusInterface[backupApi.ArangoBackupStatus, *backupApi.ArangoBackup], obj *backupApi.ArangoBackup, status backupApi.ArangoBackupStatus, opts meta.UpdateOptions) (*backupApi.ArangoBackup, error)
func WithArangoBatchJobUpdateStatusInterfaceRetry ¶
func WithArangoBatchJobUpdateStatusInterfaceRetry(ctx context.Context, client UpdateStatusInterface[mlApiv1alpha1.ArangoMLBatchJobStatus, *mlApiv1alpha1.ArangoMLBatchJob], obj *mlApiv1alpha1.ArangoMLBatchJob, status mlApiv1alpha1.ArangoMLBatchJobStatus, opts meta.UpdateOptions) (*mlApiv1alpha1.ArangoMLBatchJob, error)
func WithArangoCronJobUpdateStatusInterfaceRetry ¶
func WithArangoCronJobUpdateStatusInterfaceRetry(ctx context.Context, client UpdateStatusInterface[mlApiv1alpha1.ArangoMLCronJobStatus, *mlApiv1alpha1.ArangoMLCronJob], obj *mlApiv1alpha1.ArangoMLCronJob, status mlApiv1alpha1.ArangoMLCronJobStatus, opts meta.UpdateOptions) (*mlApiv1alpha1.ArangoMLCronJob, error)
func WithArangoExtensionUpdateStatusInterfaceRetry ¶
func WithArangoExtensionUpdateStatusInterfaceRetry(ctx context.Context, client UpdateStatusInterface[mlApi.ArangoMLExtensionStatus, *mlApi.ArangoMLExtension], obj *mlApi.ArangoMLExtension, status mlApi.ArangoMLExtensionStatus, opts meta.UpdateOptions) (*mlApi.ArangoMLExtension, error)
func WithArangoPlatformChartUpdateStatusInterfaceRetry ¶
func WithArangoPlatformChartUpdateStatusInterfaceRetry(ctx context.Context, client UpdateStatusInterface[platformApi.ArangoPlatformChartStatus, *platformApi.ArangoPlatformChart], obj *platformApi.ArangoPlatformChart, status platformApi.ArangoPlatformChartStatus, opts meta.UpdateOptions) (*platformApi.ArangoPlatformChart, error)
func WithArangoPlatformStorageUpdateStatusInterfaceRetry ¶
func WithArangoPlatformStorageUpdateStatusInterfaceRetry(ctx context.Context, client UpdateStatusInterface[platformApi.ArangoPlatformStorageStatus, *platformApi.ArangoPlatformStorage], obj *platformApi.ArangoPlatformStorage, status platformApi.ArangoPlatformStorageStatus, opts meta.UpdateOptions) (*platformApi.ArangoPlatformStorage, error)
func WithArangoStorageUpdateStatusInterfaceRetry ¶
func WithArangoStorageUpdateStatusInterfaceRetry(ctx context.Context, client UpdateStatusInterface[mlApi.ArangoMLStorageStatus, *mlApi.ArangoMLStorage], obj *mlApi.ArangoMLStorage, status mlApi.ArangoMLStorageStatus, opts meta.UpdateOptions) (*mlApi.ArangoMLStorage, error)
func WithCondition ¶
func WithCondition(conditions *api.ConditionList, condition api.ConditionType, changed bool, err error) (bool, error)
func WithConditionChange ¶
func WithConditionChange(conditions *api.ConditionList, condition api.ConditionType, c *Condition, changed bool, err error) (bool, error)
func WithNetworkingArangoRouteUpdateStatusInterfaceRetry ¶
func WithNetworkingArangoRouteUpdateStatusInterfaceRetry(ctx context.Context, client UpdateStatusInterface[networkingApi.ArangoRouteStatus, *networkingApi.ArangoRoute], obj *networkingApi.ArangoRoute, status networkingApi.ArangoRouteStatus, opts meta.UpdateOptions) (*networkingApi.ArangoRoute, error)
func WithSchedulerArangoProfileUpdateStatusInterfaceRetry ¶
func WithSchedulerArangoProfileUpdateStatusInterfaceRetry(ctx context.Context, client UpdateStatusInterface[schedulerApi.ProfileStatus, *schedulerApi.ArangoProfile], obj *schedulerApi.ArangoProfile, status schedulerApi.ProfileStatus, opts meta.UpdateOptions) (*schedulerApi.ArangoProfile, error)
func WithSchedulerBatchJobUpdateStatusInterfaceRetry ¶
func WithSchedulerBatchJobUpdateStatusInterfaceRetry(ctx context.Context, client UpdateStatusInterface[schedulerApi.ArangoSchedulerBatchJobStatus, *schedulerApi.ArangoSchedulerBatchJob], obj *schedulerApi.ArangoSchedulerBatchJob, status schedulerApi.ArangoSchedulerBatchJobStatus, opts meta.UpdateOptions) (*schedulerApi.ArangoSchedulerBatchJob, error)
func WithSchedulerCronJobUpdateStatusInterfaceRetry ¶
func WithSchedulerCronJobUpdateStatusInterfaceRetry(ctx context.Context, client UpdateStatusInterface[schedulerApi.ArangoSchedulerCronJobStatus, *schedulerApi.ArangoSchedulerCronJob], obj *schedulerApi.ArangoSchedulerCronJob, status schedulerApi.ArangoSchedulerCronJobStatus, opts meta.UpdateOptions) (*schedulerApi.ArangoSchedulerCronJob, error)
func WithSchedulerDeploymentUpdateStatusInterfaceRetry ¶
func WithSchedulerDeploymentUpdateStatusInterfaceRetry(ctx context.Context, client UpdateStatusInterface[schedulerApi.ArangoSchedulerDeploymentStatus, *schedulerApi.ArangoSchedulerDeployment], obj *schedulerApi.ArangoSchedulerDeployment, status schedulerApi.ArangoSchedulerDeploymentStatus, opts meta.UpdateOptions) (*schedulerApi.ArangoSchedulerDeployment, error)
func WithSchedulerPodUpdateStatusInterfaceRetry ¶
func WithSchedulerPodUpdateStatusInterfaceRetry(ctx context.Context, client UpdateStatusInterface[schedulerApi.ArangoSchedulerPodStatus, *schedulerApi.ArangoSchedulerPod], obj *schedulerApi.ArangoSchedulerPod, status schedulerApi.ArangoSchedulerPodStatus, opts meta.UpdateOptions) (*schedulerApi.ArangoSchedulerPod, error)
func WithUpdateStatusInterface ¶
func WithUpdateStatusInterface[S interface{}, T Object[S]](ctx context.Context, client UpdateStatusInterface[S, T], obj T, status S, opts meta.UpdateOptions) (T, error)
func WithUpdateStatusInterfaceRetry ¶
func WithUpdateStatusInterfaceRetry[S interface{}, T Object[S]](ctx context.Context, client UpdateStatusInterface[S, T], obj T, status S, opts meta.UpdateOptions) (T, error)
Types ¶
type GetInterface ¶
type GetInterface[S interface{}, T Object[S]] interface { generic.GetInterface[T] }
type HandleP0ConditionExtract ¶
type HandleP0ConditionExtract func(ctx context.Context) *api.ConditionList
type HandleP0ConditionFunc ¶
type HandleP0Func ¶
func HandleP0Condition ¶
func HandleP0Condition(extract HandleP0ConditionExtract, condition api.ConditionType, handler HandleP0ConditionFunc) HandleP0Func
type HandleP1ConditionExtract ¶
type HandleP1ConditionExtract[P1 any] func(ctx context.Context, p1 P1) *api.ConditionList
type HandleP1ConditionFunc ¶
type HandleP1Func ¶
func HandleP1Condition ¶
func HandleP1Condition[P1 any](extract HandleP1ConditionExtract[P1], condition api.ConditionType, handler HandleP1ConditionFunc[P1]) HandleP1Func[P1]
type HandleP2ConditionExtract ¶
type HandleP2ConditionExtract[P1, P2 any] func(ctx context.Context, p1 P1, p2 P2) *api.ConditionList
type HandleP2ConditionFunc ¶
type HandleP2Func ¶
func HandleP2Condition ¶
func HandleP2Condition[P1, P2 any](extract HandleP2ConditionExtract[P1, P2], condition api.ConditionType, handler HandleP2ConditionFunc[P1, P2]) HandleP2Func[P1, P2]
type HandleP3ConditionExtract ¶
type HandleP3ConditionExtract[P1, P2, P3 any] func(ctx context.Context, p1 P1, p2 P2, p3 P3) *api.ConditionList
type HandleP3ConditionFunc ¶
type HandleP3Func ¶
func HandleP3Condition ¶
func HandleP3Condition[P1, P2, P3 any](extract HandleP3ConditionExtract[P1, P2, P3], condition api.ConditionType, handler HandleP3ConditionFunc[P1, P2, P3]) HandleP3Func[P1, P2, P3]
type HandleP4ConditionExtract ¶
type HandleP4ConditionExtract[P1, P2, P3, P4 any] func(ctx context.Context, p1 P1, p2 P2, p3 P3, p4 P4) *api.ConditionList
type HandleP4ConditionFunc ¶
type HandleP4Func ¶
type HandleP4Func[P1, P2, P3, P4 any] func(ctx context.Context, p1 P1, p2 P2, p3 P3, p4 P4) (bool, error)
func HandleP4Condition ¶
func HandleP4Condition[P1, P2, P3, P4 any](extract HandleP4ConditionExtract[P1, P2, P3, P4], condition api.ConditionType, handler HandleP4ConditionFunc[P1, P2, P3, P4]) HandleP4Func[P1, P2, P3, P4]
type HandleP5ConditionExtract ¶
type HandleP5ConditionExtract[P1, P2, P3, P4, P5 any] func(ctx context.Context, p1 P1, p2 P2, p3 P3, p4 P4, p5 P5) *api.ConditionList
type HandleP5ConditionFunc ¶
type HandleP5Func ¶
type HandleP5Func[P1, P2, P3, P4, P5 any] func(ctx context.Context, p1 P1, p2 P2, p3 P3, p4 P4, p5 P5) (bool, error)
func HandleP5Condition ¶
func HandleP5Condition[P1, P2, P3, P4, P5 any](extract HandleP5ConditionExtract[P1, P2, P3, P4, P5], condition api.ConditionType, handler HandleP5ConditionFunc[P1, P2, P3, P4, P5]) HandleP5Func[P1, P2, P3, P4, P5]
type HandleP6ConditionExtract ¶
type HandleP6ConditionExtract[P1, P2, P3, P4, P5, P6 any] func(ctx context.Context, p1 P1, p2 P2, p3 P3, p4 P4, p5 P5, p6 P6) *api.ConditionList
type HandleP6ConditionFunc ¶
type HandleP6Func ¶
type HandleP6Func[P1, P2, P3, P4, P5, P6 any] func(ctx context.Context, p1 P1, p2 P2, p3 P3, p4 P4, p5 P5, p6 P6) (bool, error)
func HandleP6Condition ¶
func HandleP6Condition[P1, P2, P3, P4, P5, P6 any](extract HandleP6ConditionExtract[P1, P2, P3, P4, P5, P6], condition api.ConditionType, handler HandleP6ConditionFunc[P1, P2, P3, P4, P5, P6]) HandleP6Func[P1, P2, P3, P4, P5, P6]
type HandleP7ConditionExtract ¶
type HandleP7ConditionExtract[P1, P2, P3, P4, P5, P6, P7 any] func(ctx context.Context, p1 P1, p2 P2, p3 P3, p4 P4, p5 P5, p6 P6, p7 P7) *api.ConditionList
type HandleP7ConditionFunc ¶
type HandleP7Func ¶
type HandleP7Func[P1, P2, P3, P4, P5, P6, P7 any] func(ctx context.Context, p1 P1, p2 P2, p3 P3, p4 P4, p5 P5, p6 P6, p7 P7) (bool, error)
func HandleP7Condition ¶
func HandleP7Condition[P1, P2, P3, P4, P5, P6, P7 any](extract HandleP7ConditionExtract[P1, P2, P3, P4, P5, P6, P7], condition api.ConditionType, handler HandleP7ConditionFunc[P1, P2, P3, P4, P5, P6, P7]) HandleP7Func[P1, P2, P3, P4, P5, P6, P7]
type HandleP8ConditionExtract ¶
type HandleP8ConditionExtract[P1, P2, P3, P4, P5, P6, P7, P8 any] func(ctx context.Context, p1 P1, p2 P2, p3 P3, p4 P4, p5 P5, p6 P6, p7 P7, p8 P8) *api.ConditionList
type HandleP8ConditionFunc ¶
type HandleP8Func ¶
type HandleP8Func[P1, P2, P3, P4, P5, P6, P7, P8 any] func(ctx context.Context, p1 P1, p2 P2, p3 P3, p4 P4, p5 P5, p6 P6, p7 P7, p8 P8) (bool, error)
func HandleP8Condition ¶
func HandleP8Condition[P1, P2, P3, P4, P5, P6, P7, P8 any](extract HandleP8ConditionExtract[P1, P2, P3, P4, P5, P6, P7, P8], condition api.ConditionType, handler HandleP8ConditionFunc[P1, P2, P3, P4, P5, P6, P7, P8]) HandleP8Func[P1, P2, P3, P4, P5, P6, P7, P8]
type HandleP9ConditionExtract ¶
type HandleP9ConditionExtract[P1, P2, P3, P4, P5, P6, P7, P8, P9 any] func(ctx context.Context, p1 P1, p2 P2, p3 P3, p4 P4, p5 P5, p6 P6, p7 P7, p8 P8, p9 P9) *api.ConditionList
type HandleP9ConditionFunc ¶
type HandleP9Func ¶
type HandleP9Func[P1, P2, P3, P4, P5, P6, P7, P8, P9 any] func(ctx context.Context, p1 P1, p2 P2, p3 P3, p4 P4, p5 P5, p6 P6, p7 P7, p8 P8, p9 P9) (bool, error)
func HandleP9Condition ¶
func HandleP9Condition[P1, P2, P3, P4, P5, P6, P7, P8, P9 any](extract HandleP9ConditionExtract[P1, P2, P3, P4, P5, P6, P7, P8, P9], condition api.ConditionType, handler HandleP9ConditionFunc[P1, P2, P3, P4, P5, P6, P7, P8, P9]) HandleP9Func[P1, P2, P3, P4, P5, P6, P7, P8, P9]
type Handler ¶
type Handler interface { Name() string Handle(ctx context.Context, item operation.Item) error CanBeHandled(item operation.Item) bool }
Handler define interface for operator actions
type InformerFilter ¶
type LifecyclePreStart ¶
LifecyclePreStart interface executed before operator starts
type Operator ¶
type Operator interface { // Define prometheus collector interface prometheus.Collector Name() string Namespace() string Image() string Start(threadiness int, stopCh <-chan struct{}) error RegisterInformer(informer cache.SharedIndexInformer, group, version, kind string, filters ...InformerFilter) error RegisterStarter(starter Starter) error RegisterHandler(handler Handler) error EnqueueItem(item operation.Item) ProcessItem(item operation.Item) error }
Operator interface for operator core functionality
func NewOperator ¶
NewOperator creates new operator
type Starter ¶
type Starter interface {
Start(stopCh <-chan struct{})
}
Starter interface used by Operator to start new GoRoutines
type UpdateStatusInterface ¶
type UpdateStatusInterface[S interface{}, T Object[S]] interface { generic.GetInterface[T] generic.UpdateStatusInterface[T] }
type UpdateStatusInterfaceClient ¶
type UpdateStatusInterfaceClient[S interface{}, T Object[S]] func(namespace string) UpdateStatusInterface[S, T]
Source Files ¶
- errors_reconcile.go
- errors_stop.go
- filter.go
- handle.go
- handler.go
- handler_p0.generated.go
- handler_p1.generated.go
- handler_p2.generated.go
- handler_p3.generated.go
- handler_p4.generated.go
- handler_p5.generated.go
- handler_p6.generated.go
- handler_p7.generated.go
- handler_p8.generated.go
- handler_p9.generated.go
- informer.go
- lifecycle.go
- logger.go
- operator.go
- operator_worker.go
- prometheus.go
- update.go
- update_wraps.go
Click to show internal directories.
Click to hide internal directories.