Documentation ¶
Index ¶
Constants ¶
View Source
const ( RUNNING = "running" WAITING = "waiting" TERMINATED = "terminated" )
Variables ¶
This section is empty.
Functions ¶
func Watch ¶
func Watch(ctx context.Context, i v1.PodInterface, podFilter *regexp.Regexp, containerFilter *regexp.Regexp, containerState ContainerState, labelSelector labels.Selector) (chan *Target, chan *Target, error)
Watch starts listening to Kubernetes events and emits modified containers/pods. The first result is targets added, the second is targets removed
Types ¶
type ContainerState ¶
type ContainerState string
func NewContainerState ¶
func NewContainerState(stateConfig string) (ContainerState, error)
func (ContainerState) Match ¶
func (stateConfig ContainerState) Match(containerState v1.ContainerState) bool
type Tail ¶
type Tail struct { Namespace string PodName string ContainerName string // contains filtered or unexported fields }
Click to show internal directories.
Click to hide internal directories.