Documentation ¶
Index ¶
- func Failed(ctx context.Context, r utils.Reconciler, obj client.Object, issue error) (reconcile.Result, error)
- func Pending(ctx context.Context, r utils.Reconciler, obj client.Object, reason string) (reconcile.Result, error)
- func Running(ctx context.Context, r utils.Reconciler, obj client.Object, reason string) (reconcile.Result, error)
- func Success(ctx context.Context, r utils.Reconciler, obj client.Object, reason string) (reconcile.Result, error)
- type Classifier
- func (in *Classifier) Classify(name string, obj client.Object)
- func (in *Classifier) Exclude(name string, obj client.Object)
- func (in Classifier) FailedJobs() []client.Object
- func (in Classifier) FailedJobsList() []string
- func (in Classifier) FailedJobsNum() int
- func (in Classifier) IsDeletable(jobName string) (client.Object, bool)
- func (in Classifier) IsFailed(name string) bool
- func (in Classifier) IsPending(jobName string) bool
- func (in Classifier) IsRunning(name string) bool
- func (in Classifier) IsSuccessful(name string) bool
- func (in Classifier) IsZero() bool
- func (in Classifier) PendingJobs() []client.Object
- func (in Classifier) PendingJobsList() []string
- func (in Classifier) PendingJobsNum() int
- func (in *Classifier) Reset()
- func (in Classifier) RunningJobs() []client.Object
- func (in Classifier) RunningJobsList() []string
- func (in Classifier) RunningJobsNum() int
- func (in Classifier) SuccessfulJobs() []client.Object
- func (in Classifier) SuccessfulJobsList() []string
- func (in Classifier) SuccessfulJobsNum() int
- type ClassifierReader
- type ReconcileStatusAware
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Failed ¶
func Failed(ctx context.Context, r utils.Reconciler, obj client.Object, issue error) (reconcile.Result, error)
Failed is a wrap that logs the error, updates the status, and does not requeue the request.
func Pending ¶
func Pending(ctx context.Context, r utils.Reconciler, obj client.Object, reason string) (reconcile.Result, error)
Pending is a wrapper that sets Phase to Pending and does not requeue the request.
Types ¶
type Classifier ¶
type Classifier struct {
// contains filtered or unexported fields
}
func (*Classifier) Exclude ¶ added in v1.0.16
func (in *Classifier) Exclude(name string, obj client.Object)
Exclude registers a system service. Services classified by this function are not accounted, unless they have failed.
func (Classifier) FailedJobs ¶
func (in Classifier) FailedJobs() []client.Object
func (Classifier) FailedJobsList ¶ added in v1.0.21
func (in Classifier) FailedJobsList() []string
func (Classifier) FailedJobsNum ¶ added in v1.0.21
func (in Classifier) FailedJobsNum() int
func (Classifier) IsDeletable ¶ added in v1.0.17
func (in Classifier) IsDeletable(jobName string) (client.Object, bool)
func (Classifier) IsFailed ¶
func (in Classifier) IsFailed(name string) bool
func (Classifier) IsPending ¶ added in v1.0.16
func (in Classifier) IsPending(jobName string) bool
func (Classifier) IsRunning ¶
func (in Classifier) IsRunning(name string) bool
func (Classifier) IsSuccessful ¶
func (in Classifier) IsSuccessful(name string) bool
func (Classifier) IsZero ¶ added in v1.0.16
func (in Classifier) IsZero() bool
func (Classifier) PendingJobs ¶ added in v1.0.16
func (in Classifier) PendingJobs() []client.Object
func (Classifier) PendingJobsList ¶ added in v1.0.21
func (in Classifier) PendingJobsList() []string
func (Classifier) PendingJobsNum ¶ added in v1.0.21
func (in Classifier) PendingJobsNum() int
func (*Classifier) Reset ¶
func (in *Classifier) Reset()
func (Classifier) RunningJobs ¶
func (in Classifier) RunningJobs() []client.Object
func (Classifier) RunningJobsList ¶ added in v1.0.21
func (in Classifier) RunningJobsList() []string
func (Classifier) RunningJobsNum ¶ added in v1.0.21
func (in Classifier) RunningJobsNum() int
func (Classifier) SuccessfulJobs ¶
func (in Classifier) SuccessfulJobs() []client.Object
func (Classifier) SuccessfulJobsList ¶ added in v1.0.21
func (in Classifier) SuccessfulJobsList() []string
func (Classifier) SuccessfulJobsNum ¶ added in v1.0.21
func (in Classifier) SuccessfulJobsNum() int
type ClassifierReader ¶ added in v1.0.16
type ClassifierReader interface { IsZero() bool IsPending(jobName string) bool IsRunning(name string) bool IsSuccessful(name string) bool IsFailed(name string) bool // IsDeletable returns true if a job is deletable: it is pending or running IsDeletable(jobName string) (client.Object, bool) PendingJobs() []client.Object RunningJobs() []client.Object SuccessfulJobs() []client.Object FailedJobs() []client.Object PendingJobsNum() int RunningJobsNum() int SuccessfulJobsNum() int FailedJobsNum() int PendingJobsList() []string RunningJobsList() []string SuccessfulJobsList() []string FailedJobsList() []string }
Click to show internal directories.
Click to hide internal directories.