Documentation
¶
Index ¶
Constants ¶
View Source
const ( AUDIT_TYPE = "audit" EVENT_TYPE = "event" POD_TYPE = "pod" NODE_TYPE = "node" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EventSearchParams ¶
type LogSearch ¶
type LogSearch struct {
LogType LogLine // audit | event | pod | node
TargetPattern PatternedString // audit | event | <namespace_pattern> | <node_pattern>
Targets []string
// AuditSearchParams AuditSearchParams
EventSearchParams EventSearchParams
PodSearchParams PodSearchParams
NodeSearchParams NodeSearchParams
Keyword string
DurationSeconds int
EndTime time.Time
StartTime time.Time
IsCounting bool
Filter filter.Filter
}
type NodeLog ¶
type NodeLog struct {
Name string `json:"-"`
Time string `json:"time,omitempty"`
Node string `json:"node,omitempty"`
Process string `json:"process,omitempty"`
Log string `json:"log,omitempty"`
}
func (NodeLog) CompactRaw ¶
type NodeSearchParams ¶
type NodeSearchParams struct {
Nodes []string
Node PatternedString
Process PatternedString
}
type Patternable ¶
type Patternable interface {
Patterned() bool
}
now Patternable can handle only one '*' and starts with substring exampel) nignx-*, namespace*,
type PatternedString ¶
type PatternedString string
func (PatternedString) PatternMatch ¶
func (ps PatternedString) PatternMatch(s string) bool
func (PatternedString) Patterned ¶
func (ps PatternedString) Patterned() bool
type PodLog ¶
type PodLog struct {
Name string `json:"-"`
Time string `json:"time"`
Namespace string `json:"namespace"`
Pod string `json:"pod"`
Container string `json:"container"`
Log string `json:"log"`
}
func (PodLog) CompactRaw ¶
type PodSearchParams ¶
type PodSearchParams struct {
Namespaces []string
Namespace PatternedString
Pod PatternedString
Container PatternedString
}
Click to show internal directories.
Click to hide internal directories.