reconciler

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2019 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 Reconciler

type Reconciler struct {
	client.Client
	// contains filtered or unexported fields
}

func (*Reconciler) InjectClient

func (r *Reconciler) InjectClient(c client.Client) error

func (*Reconciler) IsObserver added in v0.2.0

func (r *Reconciler) IsObserver() bool

func (*Reconciler) Observe added in v0.2.0

func (r *Reconciler) Observe(req reconcile.Request) (reconcile.Result, error)

func (*Reconciler) Reconcile

func (r *Reconciler) Reconcile(req reconcile.Request) (reconcile.Result, error)

type State

type State struct {
	Resource   *unstructured.Unstructured  `json:"resource"`
	Dependents []unstructured.Unstructured `json:"dependents"`
	References []unstructured.Unstructured `json:"references"`
	Events     []StateEvent                `json:"events"`
}

func NewState

func NewState(resource *unstructured.Unstructured, dependents, refs []unstructured.Unstructured) *State

type StateEvent

type StateEvent struct {
	Type    string `json:"type"`
	Reason  string `json:"reason"`
	Message string `json:"message"`
}

func (*StateEvent) Empty

func (e *StateEvent) Empty() bool

Jump to

Keyboard shortcuts

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