app

package
v1.16.3 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2022 License: Apache-2.0 Imports: 40 Imported by: 0

Documentation

Overview

Package app implements a Server object for running the scheduler.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewSchedulerCommand

func NewSchedulerCommand(registryOptions ...Option) *cobra.Command

NewSchedulerCommand creates a *cobra.Command object with default parameters and registryOptions

func Run

func Run(cc schedulerserverconfig.CompletedConfig, stopCh <-chan struct{}, registryOptions ...Option) error

Run executes the scheduler based on the given configuration. It only return on error or when stopCh is closed.

Types

type Option

type Option func(framework.Registry) error

Option configures a framework.Registry.

func WithPlugin

func WithPlugin(name string, factory framework.PluginFactory) Option

WithPlugin creates an Option based on plugin name and factory.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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