sdk

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2018 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FinalizersAccessor

type FinalizersAccessor interface {
	GetFinalizers() sets.String
	SetFinalizers(finalizers sets.String)
}

FinalizersAccessor is the interface for a Resource that implements the getter and setting for accessing its Finalizer set. +k8s:deepcopy-gen=true

func NewReflectedFinalizersAccessor

func NewReflectedFinalizersAccessor(object interface{}) (FinalizersAccessor, error)

NewReflectedFinalizersAccessor uses reflection to return a FinalizersAccessor to access the field called "Finalizers".

type KnativeReconciler

type KnativeReconciler interface {
	Reconcile(ctx context.Context, object runtime.Object) (runtime.Object, error)
	InjectClient(c client.Client) error
	InjectConfig(c *rest.Config) error
}

type Provider

type Provider struct {
	AgentName string
	// Parent is a resource kind to reconcile with empty content. i.e. &v1.Parent{}
	Parent runtime.Object
	// Owns are dependent resources owned by the parent for which changes to
	// those resources cause the Parent to be re-reconciled. This is a list of
	// resources of kind with empty content. i.e. [&v1.Child{}]
	Owns []runtime.Object

	Reconciler KnativeReconciler
}

func (*Provider) Add

func (p *Provider) Add(mgr manager.Manager) error

ProvideController returns a controller for controller-runtime.

type Reconciler

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

func (*Reconciler) InjectClient

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

func (*Reconciler) InjectConfig

func (r *Reconciler) InjectConfig(c *rest.Config) error

func (*Reconciler) Reconcile

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

Reconcile compares the actual state with the desired, and attempts to converge the two.

type StatusAccessor

type StatusAccessor interface {
	GetStatus() interface{}
	SetStatus(interface{})
}

StatusAccessor is the interface for a Resource that implements the getter and setter for accessing a Condition collection. +k8s:deepcopy-gen=true

func NewReflectedStatusAccessor

func NewReflectedStatusAccessor(object interface{}) (StatusAccessor, error)

NewReflectedStatusAccessor uses reflection to return a StatusAccessor to access the field called "Status".

Jump to

Keyboard shortcuts

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