runtime

package
v0.7.3 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2024 License: MPL-2.0 Imports: 17 Imported by: 1

Documentation

Overview

Package runtime implements the controller runtime.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Runtime

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

Runtime implements controller runtime.

func NewRuntime

func NewRuntime(st state.State, logger *zap.Logger, opt ...options.Option) (*Runtime, error)

NewRuntime initializes controller runtime object.

func (*Runtime) CachedState added in v0.5.2

func (runtime *Runtime) CachedState() state.CoreState

CachedState returns the runtime state wrapped with the cache used by the runtime.

func (*Runtime) GetDependencyGraph

func (runtime *Runtime) GetDependencyGraph() (*controller.DependencyGraph, error)

GetDependencyGraph returns dependency graph between resources and controllers.

func (*Runtime) RegisterController

func (runtime *Runtime) RegisterController(ctrl controller.Controller) error

RegisterController registers new controller.

func (*Runtime) RegisterQController added in v0.4.0

func (runtime *Runtime) RegisterQController(ctrl controller.QController) error

RegisterQController registers new QController.

func (*Runtime) Run

func (runtime *Runtime) Run(ctx context.Context) error

Run all the controller loops.

Directories

Path Synopsis
internal
adapter
Package adapter provides common interface for controller adapters.
Package adapter provides common interface for controller adapters.
cache
Package cache implements resource cache.
Package cache implements resource cache.
controllerstate
Package controllerstate provides adapter which filters access to the resource state by controller inputs/outputs.
Package controllerstate provides adapter which filters access to the resource state by controller inputs/outputs.
dependency
Package dependency implements controller dependency database.
Package dependency implements controller dependency database.
qruntime
Package qruntime implements queue-based runtime for controllers.
Package qruntime implements queue-based runtime for controllers.
qruntime/internal/containers
Package containers provides helper containers for qruntime.
Package containers provides helper containers for qruntime.
qruntime/internal/queue
Package queue implements a concurrent queue of reconcile items.
Package queue implements a concurrent queue of reconcile items.
qruntime/internal/timer
Package timer provides a resettable timer.
Package timer provides a resettable timer.
reduced
Package reduced implements reducing resource metadata to a comparable value.
Package reduced implements reducing resource metadata to a comparable value.
rruntime
Package rruntime implements runtime for Controllers (which reconcile full set of inputs on each iteration).
Package rruntime implements runtime for Controllers (which reconcile full set of inputs on each iteration).
Package metrics expose various controller runtime metrics using expvar.
Package metrics expose various controller runtime metrics using expvar.
Package options provides functional options for controller runtime.
Package options provides functional options for controller runtime.

Jump to

Keyboard shortcuts

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