server

package
v0.0.0-...-2e562c1 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

View Source
const (
	OpenAPITitle   = "Porch"
	OpenAPIVersion = "0.1"
)

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