Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrStoreNotRegistered = errors.New("store not registered")
)
Functions ¶
This section is empty.
Types ¶
type ActiveJobStore ¶
type Clientsets ¶
type Clientsets interface { Kubernetes() kubernetes.Interface Furiko() furiko.Interface }
func SetUpClientsets ¶
func SetUpClientsets(cfg *rest.Config) (Clientsets, error)
type Configs ¶
type Configs interface { Start(ctx context.Context) error AllConfigs() (map[configv1.ConfigName]runtime.Object, error) JobController() (*configv1.JobControllerConfig, error) CronController() (*configv1.CronControllerConfig, error) }
func SetUpConfigManager ¶
func SetUpConfigManager(cfg *configv1.BootstrapConfigSpec, client kubernetes.Interface) Configs
SetUpConfigManager sets up the ConfigManager and returns a composed Configs interface.
type Context ¶
type Context struct {
// contains filtered or unexported fields
}
Context is a shared controller context that can be safely shared between controllers.
func NewForConfig ¶
NewForConfig prepares a new Context from a kubeconfig and controller manager config spec.
func (*Context) Clientsets ¶
func (c *Context) Clientsets() Clientsets
type ContextConfigs ¶
type ContextConfigs struct {
*configloader.ConfigManager
}
func NewContextConfigs ¶
func NewContextConfigs(mgr *configloader.ConfigManager) *ContextConfigs
func (*ContextConfigs) AllConfigs ¶
func (c *ContextConfigs) AllConfigs() (map[configv1.ConfigName]runtime.Object, error)
AllConfigs returns a map of all configs.
func (*ContextConfigs) CronController ¶
func (c *ContextConfigs) CronController() (*configv1.CronControllerConfig, error)
CronController returns the cron controller configuration.
func (*ContextConfigs) JobController ¶
func (c *ContextConfigs) JobController() (*configv1.JobControllerConfig, error)
JobController returns the job controller configuration.
type ContextInterface ¶
type ContextStores ¶
type ContextStores struct {
// contains filtered or unexported fields
}
func NewContextStores ¶
func NewContextStores() *ContextStores
func (*ContextStores) ActiveJobStore ¶
func (c *ContextStores) ActiveJobStore() (ActiveJobStore, error)
ActiveJobStore returns the active job store.
func (*ContextStores) Register ¶
func (c *ContextStores) Register(store Store)
Register a new Store.
type Informers ¶
type Informers interface { Start(ctx context.Context) error Kubernetes() kubernetes.SharedInformerFactory Furiko() furiko.SharedInformerFactory }
func SetUpInformers ¶
func SetUpInformers(clientsets Clientsets, cfg *configv1.BootstrapConfigSpec) Informers
type Stores ¶
type Stores interface { Register(store Store) ActiveJobStore() (ActiveJobStore, error) }
Source Files
¶
Click to show internal directories.
Click to hide internal directories.