manager

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: 6 Imported by: 1

Documentation

Overview

Package manager defines a Manager for resource groups.

Resource groups are stored into an in-memory Cache, and objects via a client.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Manager

type Manager interface {
	// TODO: refactor in resoucegroup.add/delete/get; make delete fail if rs does not exist
	AddResourceGroup(name string)
	DeleteResourceGroup(name string)
	GetResourceGroup(name string) inmemoryresoucegroup.ResourceGroup

	GetScheme() *runtime.Scheme

	// TODO: expose less (only get informers)
	GetCache() inmemorycache.Cache

	Start(ctx context.Context) error
}

Manager initializes shared dependencies such as Caches and Clients.

func New

func New(scheme *runtime.Scheme) Manager

New creates a new manager.

Jump to

Keyboard shortcuts

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