contentmanager

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2024 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 added in v0.16.0

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, *v1.ClusterExtension) (cmcache.Cache, error)
	// Delete will stop and remove a managed content cache
	// for the provided ClusterExtension if one exists.
	Delete(*v1.ClusterExtension) error
}

Manager is a utility to manage content caches belonging to ClusterExtensions

func NewManager added in v0.16.0

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

NewManager creates a new Manager

type ManagerOption added in v0.16.0

type ManagerOption func(*managerImpl)

func WithResyncPeriod added in v0.16.0

func WithResyncPeriod(t time.Duration) ManagerOption

WithResyncPeriod configures the frequency a managed content source attempts to resync

func WithSyncTimeout added in v0.16.0

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