app

package
v0.4.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 3, 2024 License: Apache-2.0 Imports: 28 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewServerCommand

func NewServerCommand(ctx context.Context) *cobra.Command

NewServerCommand provides a CLI handler for 'start master' command with a default Options.

func NewSyncerCommand

func NewSyncerCommand(ctx context.Context) *cobra.Command

func NewSyncerOptions

func NewSyncerOptions() *syncerOptions

Types

type Options

type Options struct {
	RecommendedOptions   *options.RecommendedOptions
	SearchStorageOptions *options.SearchStorageOptions
	CoreOptions          *options.CoreOptions

	StdOut io.Writer
	StdErr io.Writer

	AlternateDNS []string
}

Options contains state for master/api server

func NewOptions

func NewOptions(out, errOut io.Writer) (*Options, error)

NewOptions returns a new Options

func (*Options) AddFlags

func (o *Options) AddFlags(fs *pflag.FlagSet)

AddFlags add flags to command

func (*Options) Complete

func (o *Options) Complete() error

Complete fills in fields required to have valid data

func (*Options) Config

func (o *Options) Config() (*server.Config, error)

Config returns config for the api server given Options

func (*Options) RunServer

func (o *Options) RunServer(stopCh <-chan struct{}) error

RunServer starts a new APIServer given Options

func (*Options) Validate

func (o *Options) Validate(args []string) error

Validate validates Options

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL