Documentation
¶
Index ¶
- func CreateEventForCurrentState(pod *v1.Pod, clusterId string) (api.Event, error)
- func CreateJobFailedEvent(pod *v1.Pod, reason string, exitCodes map[string]int32, clusterId string) api.Event
- func CreateJobLeaseReturnedEvent(pod *v1.Pod, reason string, clusterId string) api.Event
- func CreateJobUnableToScheduleEvent(pod *v1.Pod, reason string, clusterId string) api.Event
- func HasCurrentStateBeenReported(pod *v1.Pod) bool
- func HasPodBeenInStateForLongerThanGivenDuration(pod *v1.Pod, duration time.Duration) bool
- type EventReporter
- type JobEventReporter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateJobFailedEvent ¶
Types ¶
type EventReporter ¶
type JobEventReporter ¶
type JobEventReporter struct {
// contains filtered or unexported fields
}
func NewJobEventReporter ¶
func NewJobEventReporter(clusterContext *context.KubernetesClusterContext, eventClient api.EventClient) *JobEventReporter
func (*JobEventReporter) Report ¶
func (eventReporter *JobEventReporter) Report(event api.Event) error
func (*JobEventReporter) ReportCurrentStatus ¶
func (eventReporter *JobEventReporter) ReportCurrentStatus(pod *v1.Pod)
func (*JobEventReporter) ReportMissingJobEvents ¶
func (eventReporter *JobEventReporter) ReportMissingJobEvents()
func (*JobEventReporter) ReportStatusUpdate ¶
func (eventReporter *JobEventReporter) ReportStatusUpdate(old *v1.Pod, new *v1.Pod)
Click to show internal directories.
Click to hide internal directories.