server

package
v1.6.1 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2026 License: Apache-2.0 Imports: 28 Imported by: 1 module, 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

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

	CoreAPIKubeconfigPath string

	CacheDirectory       string
	CacheType            string
	DbCacheDriver        string
	DbCacheDataSource    string
	DbMaxConnections     int
	DbMaxIdleConnections int
	DbMaxConnLifetime    time.Duration
	DbPushDrafsToGit     bool

	GoGitRepoCacheSize    int
	GoGitCacheMaxFileSize int64

	DefaultImagePrefix       string
	FunctionRunnerAddress    string
	LocalStandaloneDebugging bool // Enables local standalone running/debugging of the apiserver.

	ListTimeoutPerRepository   time.Duration
	MaxConcurrentLists         int
	MaxRequestBodySize         int
	RepoOperationRetryAttempts int
	RetryableGitErrors         []string // Additional retryable git error patterns

	SharedInformerFactory informers.SharedInformerFactory

	StdOut io.Writer
	StdErr io.Writer

	UseUserDefinedCaBundle bool

	PodNamespace string
}

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