kubernetes/staging/src/k8s.io/kubectl/pkg/cmd/events/event_printer.go

type EventPrinter

// PrintObj prints different type of event objects.
func (ep *EventPrinter) PrintObj(obj runtime.Object, out io.Writer) error {}

func (ep *EventPrinter) printHeadings(w io.Writer) {}

func (ep *EventPrinter) printOneEvent(w io.Writer, e corev1.Event) {}

func getInterval(e corev1.Event) string {}

// translateMicroTimestampSince returns the elapsed time since timestamp in
// human-readable approximation.
func translateMicroTimestampSince(timestamp metav1.MicroTime) string {}

// translateTimestampSince returns the elapsed time since timestamp in
// human-readable approximation.
func translateTimestampSince(timestamp metav1.Time) string {}

func NewEventPrinter(noHeader, allNamespaces bool) *EventPrinter {}