kubernetes

package
v0.0.10 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 31, 2020 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// DefaultKubeEventResyncInterval is the default resync interval for k8s events
	DefaultKubeEventResyncInterval = 30 * time.Second
)

Variables

This section is empty.

Functions

func GetDomainsForService

func GetDomainsForService(service *corev1.Service) []string

GetDomainsForService returns a list of domains over which the service can be accessed within the local cluster.

func GetKubernetesEventHandlers

func GetKubernetesEventHandlers(informerName string, providerName string, announcements chan interface{}, shouldObserve observeFilter) cache.ResourceEventHandlerFuncs

GetKubernetesEventHandlers creates Kubernetes events handlers.

Types

type Event

type Event struct {
	Type  EventType
	Value interface{}
}

Event is the combined type and actual object we received from Kubernetes

type EventType

type EventType int

EventType is the type of event we have received from Kubernetes

const (
	// CreateEvent is a type of a Kubernetes API event.
	CreateEvent EventType = iota + 1

	// UpdateEvent is a type of a Kubernetes API event.
	UpdateEvent

	// DeleteEvent is a type of a Kubernetes API event.
	DeleteEvent
)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL