controller

package
v0.7.4-0...-fb5339c Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2020 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Start

func Start(eventHandler handlers.Handler)

Start watches the Kubernetes secrets API. When notified, sends a message through a channel. Start is blocking. It runs until it receives a SIGTERM or SIGINT.

Types

type Controller

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

Controller accepts notifications from the Kubernetes APIs and makes decisions based on the events that occur.

func (*Controller) HasSynced

func (c *Controller) HasSynced() bool

HasSynced is needed to satisfy the Controller interface.

func (*Controller) LastSyncResourceVersion

func (c *Controller) LastSyncResourceVersion() string

LastSyncResourceVersion is needed to satisfy the Controller interface.

type Event

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

Event is a temporary, serializable reporesentation of a change in a secret or the creation or deletion of a secret. It can be placed on a queue and processed at a later point in the application where the secret is retrieved by a key.

Jump to

Keyboard shortcuts

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