Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewCommandStartWardleServer ¶
func NewCommandStartWardleServer(ctx context.Context, defaults *WardleServerOptions, skipDefaultComponentGlobalsRegistrySet bool) *cobra.Command
NewCommandStartWardleServer provides a CLI handler for 'start master' command with a default WardleServerOptions.
Types ¶
type ConcurrentLimiter ¶ added in v0.0.123
type ConcurrentLimiter struct {
// contains filtered or unexported fields
}
func NewConcurrentLimiter ¶ added in v0.0.123
func NewConcurrentLimiter(limit int) *ConcurrentLimiter
func (*ConcurrentLimiter) LimitConcurrentRequests ¶ added in v0.0.123
func (limiter *ConcurrentLimiter) LimitConcurrentRequests(lmt *limiter.Limiter, handler func(http.ResponseWriter, *http.Request)) http.Handler
type WardleServerOptions ¶
type WardleServerOptions struct {
RecommendedOptions *genericoptions.RecommendedOptions
StdOut io.Writer
StdErr io.Writer
AlternateDNS []string
OsFs afero.Fs
Pool *sqlitemigration.Pool
Namespace string
WatchDispatcher *file.WatchDispatcher
}
WardleServerOptions contains state for master/api server
func NewWardleServerOptions ¶
func NewWardleServerOptions(out, errOut io.Writer, osFs afero.Fs, pool *sqlitemigration.Pool, namespace string, watchDispatcher *file.WatchDispatcher) *WardleServerOptions
NewWardleServerOptions returns a new WardleServerOptions
func (*WardleServerOptions) Complete ¶
func (o *WardleServerOptions) Complete() error
Complete fills in fields required to have valid data
func (*WardleServerOptions) Config ¶
func (o *WardleServerOptions) Config() (*apiserver.Config, error)
Config returns config for the api server given WardleServerOptions
func (WardleServerOptions) RunWardleServer ¶
func (o WardleServerOptions) RunWardleServer(ctx context.Context) error
RunWardleServer starts a new WardleServer given WardleServerOptions
func (WardleServerOptions) Validate ¶
func (o WardleServerOptions) Validate(args []string) error
Validate validates WardleServerOptions
Click to show internal directories.
Click to hide internal directories.