knative

package
v0.4.3 Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2018 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Controller

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

Controller implements the controller for Service resources.

func NewController

func NewController(
	opt controller.Options,
	notifications chan struct{},
	serviceInformer servinginformers.ServiceInformer,
) *Controller

NewController initializes the controller and is called by the generated code Registers eventhandlers to enqueue events

func (*Controller) Reconcile

func (c *Controller) Reconcile(key string) error

Reconcile compares the actual state with the desired, and attempts to converge the two. It then updates the Status block of the Service resource with the current status of the resource.

func (*Controller) Run

func (c *Controller) Run(threadiness int, stopCh <-chan struct{}) error

Run starts the controller's worker threads, the number of which is threadiness. It then blocks until stopCh is closed, at which point it shuts down its internal work queue and waits for workers to finish processing their current work items.

type UpstreamController

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

func NewUpstreamController

func NewUpstreamController(cfg *rest.Config,
	configStore storage.Interface,
	resyncDuration time.Duration) (*UpstreamController, error)

func (*UpstreamController) Error

func (c *UpstreamController) Error() <-chan error

func (*UpstreamController) Run

func (c *UpstreamController) Run(stop <-chan struct{})

Jump to

Keyboard shortcuts

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