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
Click to show internal directories.
Click to hide internal directories.