Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Kubeconfig string `yaml:"kubeconfig"` NamespaceBlackRegex string `yaml:"namespace_blacklist_regex"` Labels Labels `yaml:"labels"` }
Config to create a watcher
type MultiWatcher ¶
type MultiWatcher struct {
// contains filtered or unexported fields
}
MultiWatcher allows to watch multiple clusters in the same channel
func NewMultiWatcher ¶
func NewMultiWatcher(configs []Config) (mw *MultiWatcher, err error)
NewMultiWatcher creates a watcher for multiple configs into one chan
func (*MultiWatcher) Watch ¶
func (mw *MultiWatcher) Watch(ctx context.Context)
Watch nonblocking all Watchers and throw them into a single mw.Sink
type ProbeInfo ¶
type ProbeInfo struct { Skip bool SSL bool Host string Proto string Path string Name string Namespace string Method string ValidStatusCodes []string BodyRegex string Cluster string UID string }
ProbeInfo
type RequestMetrics ¶
type RequestMetrics struct { *ProbeInfo Start time.Time Resolved time.Duration Connected time.Duration WroteRequest time.Duration ReadFirstByte time.Duration ReadBody time.Duration Expires time.Time Size int64 RedirectCount int64 InvalidRouteErr bool InvalidRequestErr bool ConnectionErr bool BodyDownloadErr bool InvalidStatusCodeErr bool InvalidBodyRegexErr bool InvalidBodyErr bool }
RequestMetrics
type ResourceEventHandlerFuncs ¶
type ResourceEventHandlerFuncs struct { AddFunc func(obj *Route) UpdateFunc func(oldObj, newObj *Route) DeleteFunc func(obj *Route) }
ResourceEventHandlerFuncs is an adaptor to let you easily specify as many or as few of the notification functions as you want while still implementing ResourceEventHandler.
Click to show internal directories.
Click to hide internal directories.