Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewTimelineCommand ¶
func NewTimelineCommand(ioStreams genericclioptions.IOStreams) *cobra.Command
Types ¶
type RenderFunc ¶
type RenderFunc func(intervals monitorapi.Intervals) ([]byte, error)
type Timeline ¶
type Timeline struct {
MonitorEventFilename string
PodResourceFilename string
LocatorMatcher map[string][]*regexp.Regexp
RemovedLocatorMatcher map[string][]*regexp.Regexp
Namespaces []string
EndDate *time.Time
Renderer RenderFunc
TimelineFilter monitorapi.EventIntervalMatchesFunc
IOStreams genericclioptions.IOStreams
}
type TimelineOptions ¶
type TimelineOptions struct {
MonitorEventFilename string
PodResourceFilename string
TimelineType string
LocatorMatchers []string
Namespaces []string
OutputType string
EndDate string
KnownRenderers map[string]RenderFunc
KnownTimelines map[string]monitorapi.EventIntervalMatchesFunc
IOStreams genericclioptions.IOStreams
}
func NewTimelineOptions ¶
func NewTimelineOptions(ioStreams genericclioptions.IOStreams) *TimelineOptions
func (*TimelineOptions) Complete ¶
func (o *TimelineOptions) Complete() error
func (*TimelineOptions) ToTimeline ¶
func (o *TimelineOptions) ToTimeline() *Timeline
func (*TimelineOptions) Validate ¶
func (o *TimelineOptions) Validate() error
Click to show internal directories.
Click to hide internal directories.