Documentation ¶
Overview ¶
Package kubelogtail provides a simple log tailer for Kubernetes pods
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type KubeLogTail ¶
type KubeLogTail struct {
// contains filtered or unexported fields
}
KubeLogTail is a wrapper for discovering and printing logs from Kubernetes containers.
func (*KubeLogTail) Run ¶
func (k *KubeLogTail) Run() error
Run discovers the pods and tails the container logs. This generally does not return.
func (*KubeLogTail) Stop ¶
func (k *KubeLogTail) Stop()
Stop triggers the kubelog tail to stop processing.
type OptionsFunc ¶
type OptionsFunc func(*KubeLogTail) error
OptionsFunc is a function passed to new for setting options on a new KubeLogTail.
func SetColorMode ¶
func SetColorMode(mode string) OptionsFunc
SetColorMode creates a function that will set the color print mode. Generally, only used when create a new KubeLogTail.
func SetKubeConfig ¶
func SetKubeConfig(kubeconfig string) OptionsFunc
SetKubeConfig creates a function that will set the kubeconfig. Generally, only used when create a new KubeLogTail.
func SetLabelSelector ¶
func SetLabelSelector(query string) OptionsFunc
SetLabelSelector creates a function that will set the label selecotr for listing pods. Generally, only used when create a new KubeLogTail.
func SetNamespace ¶
func SetNamespace(namespace string) OptionsFunc
SetNamespace creates a function that will set the namespace for pods. a blank string indicates all namespaces Generally, only used when create a new KubeLogTail.
func SetRefreshTime ¶
func SetRefreshTime(duration time.Duration) OptionsFunc
SetRefreshTime creates a function that will set the pod refresh time. Generally, only used when create a new KubeLogTail.
Directories ¶
Path | Synopsis |
---|---|
cmd
|
|
kube-log-tail
Package main runs the command and handles command line options
|
Package main runs the command and handles command line options |