Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ContainerFilter ¶ added in v0.2.0
type ContainerFilter interface {
Accept(cs v1.ContainerStatus) bool
}
func NewContainerFilter ¶ added in v0.2.0
func NewContainerFilter(names []string) ContainerFilter
type Controller ¶
type Controller interface {
Events() <-chan Event
Stop()
Done() <-chan struct{}
}
func NewController ¶
func NewController( ctx context.Context, cs kubernetes.Interface, pcontroller pod.Controller, filter ContainerFilter) (Controller, error)
type DS ¶
type DS interface {
Pods() pod.Controller
Ready() <-chan struct{}
Done() <-chan struct{}
Shutdown()
}
type DSBuilder ¶
type DSBuilder interface {
WithIgnore(selectors ...labels.Selector) DSBuilder
WithSelectors(selectors ...labels.Selector) DSBuilder
WithPods(id ...nsname.NSName) DSBuilder
WithNamespace(name ...string) DSBuilder
WithService(id ...nsname.NSName) DSBuilder
WithNode(name ...string) DSBuilder
WithRC(id ...nsname.NSName) DSBuilder
WithRS(id ...nsname.NSName) DSBuilder
WithDS(id ...nsname.NSName) DSBuilder
WithDeployment(id ...nsname.NSName) DSBuilder
Create(ctx context.Context, cs kubernetes.Interface) (DS, error)
}
func NewDSBuilder ¶
func NewDSBuilder() DSBuilder
type Event ¶
type Event interface {
Source() EventSource
Log() []byte
}
type EventSource ¶
Source Files
¶
Click to show internal directories.
Click to hide internal directories.
