Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
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) (Controller, error)
type DS ¶
type DS interface {
Pods() pod.Controller
Ready() <-chan struct{}
Done() <-chan struct{}
Shutdown()
}
type DSBuilder ¶
type DSBuilder interface {
WithNamespace(name ...string) DSBuilder
WithPods(id ...nsname.NSName) DSBuilder
WithLabels(labels map[string]string) DSBuilder
WithService(id ...nsname.NSName) DSBuilder
WithNode(name ...string) DSBuilder
WithRC(id ...nsname.NSName) DSBuilder
WithRS(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() string
}
type EventSource ¶
Click to show internal directories.
Click to hide internal directories.