Documentation
¶
Overview ¶
Package options contains flags and options for initializing an nightwatch.
Index ¶
Constants ¶
View Source
const (
// UserAgent is the userAgent name when starting onex-nightwatch server.
UserAgent = "onex-nightwatch"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Options ¶
type Options struct { HealthOptions *genericoptions.HealthOptions `json:"health" mapstructure:"health"` MySQLOptions *genericoptions.MySQLOptions `json:"mysql" mapstructure:"mysql"` RedisOptions *genericoptions.RedisOptions `json:"redis" mapstructure:"redis"` Metrics *genericoptions.MetricsOptions `json:"metrics" mapstructure:"metrics"` // Path to kubeconfig file with authorization and master location information. Kubeconfig string `json:"kubeconfig" mapstructure:"kubeconfig"` FeatureGates map[string]bool `json:"feature-gates"` Log *log.Options `json:"log" mapstructure:"log"` }
Options contains everything necessary to create and run a nightwatch server.
func (*Options) ApplyTo ¶
func (o *Options) ApplyTo(c *nightwatch.Config) error
ApplyTo fills up onex-nightwatch config with options.
func (*Options) Config ¶
func (o *Options) Config() (*nightwatch.Config, error)
Config return an onex-nightwatch config object.
func (*Options) Flags ¶
func (o *Options) Flags() (fss cliflag.NamedFlagSets)
Flags returns flags for a specific server by section name.
Click to show internal directories.
Click to hide internal directories.