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 ¶
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.
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. |