Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ExtraOptions ¶ added in v0.0.2
type ExtraOptions struct {
QPS float64
Burst int
TelemetryHost string
TelemetryPort int
BaseURL string
Token string
CAFile string
}
func NewExtraOptions ¶ added in v0.0.2
func NewExtraOptions() *ExtraOptions
func (*ExtraOptions) AddFlags ¶ added in v0.0.2
func (s *ExtraOptions) AddFlags(fs *pflag.FlagSet)
func (*ExtraOptions) ApplyTo ¶ added in v0.0.2
func (s *ExtraOptions) ApplyTo(cfg *apiserver.ExtraConfig) error
type UIServerOptions ¶
type UIServerOptions struct {
RecommendedOptions *genericoptions.RecommendedOptions
PrometheusOptions *promclient.Config
ExtraOptions *ExtraOptions
StdOut io.Writer
StdErr io.Writer
}
UIServerOptions contains state for master/api server
func NewUIServerOptions ¶
func NewUIServerOptions(out, errOut io.Writer) *UIServerOptions
NewUIServerOptions returns a new UIServerOptions
func (UIServerOptions) AddFlags ¶ added in v0.0.2
func (o UIServerOptions) AddFlags(fs *pflag.FlagSet)
func (*UIServerOptions) Complete ¶
func (o *UIServerOptions) Complete() error
Complete fills in fields required to have valid data
func (*UIServerOptions) Config ¶
func (o *UIServerOptions) Config() (*apiserver.Config, error)
Config returns config for the api server given UIServerOptions
func (UIServerOptions) RunUIServer ¶
func (o UIServerOptions) RunUIServer(ctx context.Context) error
RunUIServer starts a new UIServer given UIServerOptions
func (UIServerOptions) Validate ¶
func (o UIServerOptions) Validate(args []string) error
Validate validates UIServerOptions
Click to show internal directories.
Click to hide internal directories.