server

package
v0.0.35 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2023 License: Apache-2.0 Imports: 23 Imported by: 2 modules, 1 package

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 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
	DefaultImagePrefix       string
	RepoSyncFrequency        time.Duration

	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