controller

package
v0.6.0-fork-0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2019 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	ResyncPeriod time.Duration
	Namespace    string
}

Config is the controller configuration.

type Controller

type Controller struct {
	controller.Controller
	// contains filtered or unexported fields
}

Controller is a controller that echoes pod events.

func New

func New(config Config, k8sCli kubernetes.Interface, logger log.Logger) (*Controller, error)

New returns a new Echo controller.

type PodRetrieve

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

PodRetrieve knows how to retrieve pods.

func NewPodRetrieve

func NewPodRetrieve(namespace string, client kubernetes.Interface) *PodRetrieve

NewPodRetrieve returns a new pod retriever.

func (*PodRetrieve) GetListerWatcher

func (p *PodRetrieve) GetListerWatcher() cache.ListerWatcher

GetListerWatcher knows how to return a listerWatcher of a pod.

func (*PodRetrieve) GetObject

func (p *PodRetrieve) GetObject() runtime.Object

GetObject returns the empty pod.

Jump to

Keyboard shortcuts

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