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-gateway server.
UserAgent = "onex-gateway"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ServerOptions ¶
type ServerOptions struct {
// GenericOptions *genericoptions.Options `json:"server" mapstructure:"server"`
GRPCOptions *genericoptions.GRPCOptions `json:"grpc" mapstructure:"grpc"`
HTTPOptions *genericoptions.HTTPOptions `json:"http" mapstructure:"http"`
TLSOptions *genericoptions.TLSOptions `json:"tls" mapstructure:"tls"`
MySQLOptions *genericoptions.MySQLOptions `json:"mysql" mapstructure:"mysql"`
RedisOptions *genericoptions.RedisOptions `json:"redis" mapstructure:"redis"`
EtcdOptions *genericoptions.EtcdOptions `json:"etcd" mapstructure:"etcd"`
JaegerOptions *genericoptions.JaegerOptions `json:"jaeger" mapstructure:"jaeger"`
ConsulOptions *genericoptions.ConsulOptions `json:"consul" mapstructure:"consul"`
UserCenterOptions *usercenter.UserCenterOptions `json:"usercenter" mapstructure:"usercenter"`
MetricsOptions *genericoptions.MetricsOptions `json:"metrics" mapstructure:"metrics"`
EnableTLS bool `json:"enable-tls" mapstructure:"enable-tls"`
// 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"`
}
ServerOptions contains the configuration options for the server.
func NewServerOptions ¶
func NewServerOptions() *ServerOptions
NewServerOptions creates a ServerOptions instance with default values.
func (*ServerOptions) Complete ¶
func (o *ServerOptions) Complete() error
Complete completes all the required options.
func (*ServerOptions) Config ¶
func (o *ServerOptions) Config() (*gateway.Config, error)
Config builds an gateway.Config based on ServerOptions.
func (*ServerOptions) Flags ¶
func (o *ServerOptions) Flags() (fss cliflag.NamedFlagSets)
Flags returns flags for a specific server by section name.
func (*ServerOptions) Validate ¶
func (o *ServerOptions) Validate() error
Validate checks whether the options in ServerOptions are valid.
Click to show internal directories.
Click to hide internal directories.