server

package
v0.0.0-...-7b20bed Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2022 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCommandStartPorchServer

func NewCommandStartPorchServer(ctx context.Context, defaults *PorchServerOptions) *cobra.Command

NewCommandStartPorchServer provides a CLI handler for 'start master' command with a default PorchServerOptions.

Types

type PorchServerOptions

type PorchServerOptions struct {
	RecommendedOptions       *genericoptions.RecommendedOptions
	LocalStandaloneDebugging bool // Enables local standalone running/debugging of the apiserver.
	CacheDirectory           string
	CoreAPIKubeconfigPath    string
	FunctionRunnerAddress    string

	SharedInformerFactory informers.SharedInformerFactory
	StdOut                io.Writer
	StdErr                io.Writer
}

PorchServerOptions contains state for master/api server

func NewPorchServerOptions

func NewPorchServerOptions(out, errOut io.Writer) *PorchServerOptions

NewPorchServerOptions returns a new PorchServerOptions

func (*PorchServerOptions) AddFlags

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

func (*PorchServerOptions) Complete

func (o *PorchServerOptions) Complete() error

Complete fills in fields required to have valid data

func (*PorchServerOptions) Config

func (o *PorchServerOptions) Config() (*apiserver.Config, error)

Config returns config for the api server given PorchServerOptions

func (PorchServerOptions) RunPorchServer

func (o PorchServerOptions) RunPorchServer(ctx context.Context) error

RunPorchServer starts a new PorchServer given PorchServerOptions

func (PorchServerOptions) Validate

func (o PorchServerOptions) Validate(args []string) error

Validate validates PorchServerOptions

Jump to

Keyboard shortcuts

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