Back to godoc.org
github.com/goodrain/rainbond/worker/master/podevent

package podevent

v5.2.0-release+incompatible (release)
Latest Go to latest
Published: Apr 16, 2020 | License: LGPL-3.0 | Module: github.com/goodrain/rainbond

Index

type EventType

type EventType string

EventType -

var EventTypeAbnormalExited EventType = "AbnormalExited"

EventTypeAbnormalExited container exits abnormally

var EventTypeAbnormalRecovery EventType = "AbnormalRecovery"

EventTypeAbnormalRecovery -

var EventTypeLivenessProbeFailed EventType = "LivenessProbeFailed"

EventTypeLivenessProbeFailed -

var EventTypeOOMKilled EventType = "OOMKilled"

EventTypeOOMKilled -

var EventTypeReadinessProbeFailed EventType = "ReadinessProbeFailed"

EventTypeReadinessProbeFailed -

func (EventType) String

func (p EventType) String() string

String -

type PodEvent

type PodEvent struct {
	// contains filtered or unexported fields
}

PodEvent -

func New

func New(clientset kubernetes.Interface, stopCh chan struct{}) *PodEvent

New create a new PodEvent

func (*PodEvent) GetChan

func (p *PodEvent) GetChan() chan<- *corev1.Pod

GetChan get pod update chan

func (*PodEvent) Handle

func (p *PodEvent) Handle()

Handle -

type SortableEventType

type SortableEventType []EventType

SortableEventType implements sort.Interface for []EventType

func (SortableEventType) Len

func (s SortableEventType) Len() int

func (SortableEventType) Less

func (s SortableEventType) Less(i, j int) bool

func (SortableEventType) Swap

func (s SortableEventType) Swap(i, j int)
Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
f or F : Jump to identifier