Help us shape the future of Go! Take the 2026 Go Developer Survey

contentmanager

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2025 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Manager

type Manager interface {
	// Get returns a managed content cache for the provided
	// ClusterExtension if one exists. If one does not exist,
	// a new Cache is created and returned
	Get(context.Context, *ocv1.ClusterExtension) (cmcache.Cache, error)
	// Delete will stop and remove a managed content cache
	// for the provided ClusterExtension if one exists.
	Delete(*ocv1.ClusterExtension) error
}

Manager is a utility to manage content caches belonging to ClusterExtensions

func NewManager

func NewManager(rcm RestConfigMapper, cfg *rest.Config, mapper meta.RESTMapper, opts ...ManagerOption) Manager

NewManager creates a new Manager

type ManagerOption

type ManagerOption func(*managerImpl)

func WithResyncPeriod

func WithResyncPeriod(t time.Duration) ManagerOption

WithResyncPeriod configures the frequency a managed content source attempts to resync

func WithSyncTimeout

func WithSyncTimeout(t time.Duration) ManagerOption

WithSyncTimeout configures the time spent waiting for a managed content source to sync

type RestConfigMapper

type RestConfigMapper func(context.Context, client.Object, *rest.Config) (*rest.Config, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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