app

package
v0.4.11-alpha.4 Latest Latest
Warning

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

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

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
	AIOptions            *options.AIOptions

	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