Documentation ¶
Overview ¶
Package options contains flags and options for initializing an apiserver
Index ¶
Constants ¶
View Source
const (
// UserAgent is the userAgent name when starting onex-cacheserver server.
UserAgent = "onex-cacheserver"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Options ¶
type Options struct { DisableCache bool `json:"disable-cache" mapstructure:"disable-cache"` GRPCOptions *genericoptions.GRPCOptions `json:"grpc" mapstructure:"grpc"` TLSOptions *genericoptions.TLSOptions `json:"tls" mapstructure:"tls"` RedisOptions *genericoptions.RedisOptions `json:"redis" mapstructure:"redis"` MySQLOptions *genericoptions.MySQLOptions `json:"mysql" mapstructure:"mysql"` JaegerOptions *genericoptions.JaegerOptions `json:"jaeger" mapstructure:"jaeger"` Metrics *genericoptions.MetricsOptions `json:"metrics" mapstructure:"metrics"` Log *log.Options `json:"log" mapstructure:"log"` }
Options contains state for master/api server.
func (*Options) ApplyTo ¶
func (o *Options) ApplyTo(c *cacheserver.Config) error
ApplyTo fills up onex-cacheserver config with options.
func (*Options) Config ¶
func (o *Options) Config() (*cacheserver.Config, error)
Config return a onex-cacheserver 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.