server

package
v0.2.0-alpha.3 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2022 License: MPL-2.0 Imports: 11 Imported by: 0

Documentation

Overview

Package server provides a wrapper around controller.Runtime over gRPC.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Runtime

type Runtime struct {
	v1alpha1.UnimplementedControllerRuntimeServer
	v1alpha1.UnimplementedControllerAdapterServer
	// contains filtered or unexported fields
}

Runtime implements controller.Runtime over gRPC.

func NewRuntime

func NewRuntime(engine controller.Engine) *Runtime

NewRuntime initializes new gRPC wrapper around controller.Engine.

func (*Runtime) AddFinalizer

AddFinalizer to a resource.

func (*Runtime) Create

Create a resource.

func (*Runtime) Destroy

Destroy a resource.

func (*Runtime) Get

Get a resource.

func (*Runtime) List

List resources.

func (*Runtime) QueueReconcile

QueueReconcile queues another reconcile event.

func (*Runtime) ReconcileEvents

ReconcileEvents sends message on each reconcile event for the controller.

func (*Runtime) RegisterController

RegisterController registers controller and establishes token for ControllerAdapter calls.

func (*Runtime) RemoveFinalizer

RemoveFinalizer from a resource.

func (*Runtime) Start

func (runtime *Runtime) Start(ctx context.Context, req *v1alpha1.StartRequest) (*v1alpha1.StartResponse, error)

Start the controller runtime.

func (*Runtime) Stop

func (runtime *Runtime) Stop(ctx context.Context, req *v1alpha1.StopRequest) (*v1alpha1.StopResponse, error)

Stop the controller runtime.

func (*Runtime) Teardown

Teardown a resource.

func (*Runtime) Update

Update a resource.

func (*Runtime) UpdateInputs

UpdateInputs updates the list of controller inputs.

func (*Runtime) WatchFor

WatchFor specific resource changes.

Jump to

Keyboard shortcuts

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