machine

package
v0.0.0-...-790edac Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MachineController

type MachineController struct {
	Name string

	BeforeReconcile func(key string)
	AfterReconcile  func(key string, err error)

	Informers *sharedinformers.SharedInformers
	// contains filtered or unexported fields
}

MachineController implements the controller.MachineController interface

func NewMachineController

func NewMachineController(config *rest.Config, si *sharedinformers.SharedInformers) *MachineController

NewController returns a new MachineController for responding to Machine events

func (*MachineController) GetName

func (c *MachineController) GetName() string

func (*MachineController) LookupAndReconcile

func (c *MachineController) LookupAndReconcile(key string) (err error)

func (*MachineController) Run

func (c *MachineController) Run(stopCh <-chan struct{})

type MachineControllerImpl

type MachineControllerImpl struct {
	builders.DefaultControllerFns
	// contains filtered or unexported fields
}

+controller:group=cluster,version=v1alpha1,kind=Machine,resource=machines

func (*MachineControllerImpl) Get

func (c *MachineControllerImpl) Get(namespace, name string) (*clusterv1.Machine, error)

func (*MachineControllerImpl) Init

Init initializes the controller and is called by the generated code Register watches for additional resource types here.

func (*MachineControllerImpl) Reconcile

func (c *MachineControllerImpl) Reconcile(machine *clusterv1.Machine) error

Reconcile handles enqueued messages. The delete will be handled by finalizer.

Jump to

Keyboard shortcuts

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