Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrForbidden = errors.New("forbidden") ErrNotFound = errors.New("not found") )
Functions ¶
This section is empty.
Types ¶
type EventsLogger ¶ added in v1.4.0
type EventsLogger struct {
// contains filtered or unexported fields
}
func NewEventsLogger ¶ added in v1.4.0
func NewEventsLogger() *EventsLogger
func (*EventsLogger) EmitEvent ¶ added in v1.4.0
func (l *EventsLogger) EmitEvent(event *corev1.Event)
type K8S ¶
type K8S struct {
// contains filtered or unexported fields
}
func (*K8S) SubscribeForPodEvents ¶
func (k8s *K8S) SubscribeForPodEvents(l PodEventsListener)
type Pod ¶
type Pod struct {
// update Pod.Equal when adding fields
Id PodId
Phase corev1.PodPhase
IP string
Annotations map[string]string
Ports []int
}
func (*Pod) ServiceName ¶
type PodEvent ¶
type PodEvent struct {
Type PodEventType
Pod *Pod
Old *Pod
}
type PodEventType ¶
type PodEventType int
const ( PodEventTypeAdd PodEventType = iota PodEventTypeChange PodEventTypeDelete )
type PodEventsListener ¶
type PodEventsListener interface {
ListenPodEvents(events <-chan PodEvent)
}
Click to show internal directories.
Click to hide internal directories.