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, *v1alpha1.ClusterExtension) (cmcache.Cache, error)
// Delete will stop and remove a managed content cache
// for the provided ClusterExtension if one exists.
Delete(*v1alpha1.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
Click to show internal directories.
Click to hide internal directories.