runtime

package
v1.9.1 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2024 License: Apache-2.0 Imports: 3 Imported by: 2

Documentation

Overview

Package runtime implements an in memory runtime for handling objects grouped in resource groups, similarly to resource groups in Azure.

In memory objects are defined like Kubernetes objects and they can be operated with a client inspired from the controller-runtime client; they also have some behaviour of real Kubernetes objects, like e.g. a garbage collection and owner references, as well as informers to support watches.

NOTE: We can't use controller-runtime directly for the following reasons: * multi-cluster (we have resourceGroups to differentiate resources belonging to different clusters) * data should be stored in-memory * we would like that objects in memory behave like Kubernetes objects (garbage collection).

Index

Constants

This section is empty.

Variables

View Source
var (
	// NewManager returns a new Manager for creating Controllers.
	NewManager = inmemorymanager.New
)

Functions

This section is empty.

Types

type Client

type Client inmemoryclient.Client

Client knows how to perform CRUD operations on resources in a resource group.

type Manager

type Manager inmemorymanager.Manager

Manager initializes shared dependencies such as Caches and Clients, and provides them to Runnables. A Manager is required to create Controllers.

type Object

type Object client.Object

Object represents an object.

Directories

Path Synopsis
Package cache defines resource group aware Cache.
Package cache defines resource group aware Cache.
Package client defines Client for operating on resource groups.
Package client defines Client for operating on resource groups.
Package manager defines a Manager for resource groups.
Package manager defines a Manager for resource groups.
Package resourcegroup defines a ResourceGroup; the default implementation is backed by a cache.
Package resourcegroup defines a ResourceGroup; the default implementation is backed by a cache.

Jump to

Keyboard shortcuts

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