Documentation ¶
Index ¶
Constants ¶
View Source
const (
ControllerUserAgent = "crane-scheduler-controller"
)
Variables ¶
This section is empty.
Functions ¶
func NewInformerFactory ¶
func NewInformerFactory(cs clientset.Interface, resyncPeriod time.Duration) informers.SharedInformerFactory
NewInformerFactory creates a SharedInformerFactory and initializes an event informer that returns specified events.
Types ¶
type Options ¶
type Options struct { *annotatorconfig.AnnotatorConfiguration LeaderElection *componentbaseconfig.LeaderElectionConfiguration // contains filtered or unexported fields }
Options has all the params needed to run a Annotator.
func NewOptions ¶
NewOptions returns default annotator app options.
func (*Options) ApplyTo ¶
func (o *Options) ApplyTo(c *controllerappconfig.Config) error
ApplyTo fills up Annotator config with options.
func (*Options) Config ¶
func (o *Options) Config() (*controllerappconfig.Config, error)
Config returns an Annotator config object.
Click to show internal directories.
Click to hide internal directories.