start

package
v0.13.1 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2024 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCommandStartTiltServer

func NewCommandStartTiltServer(defaults *TiltServerOptions, ctx context.Context) *cobra.Command

NewCommandStartTiltServer provides a CLI handler for 'start master' command with a default TiltServerOptions.

func TLSConfig added in v0.3.0

func TLSConfig(ctx context.Context, s *server.SecureServingInfo) (*tls.Config, error)

tlsConfig produces the tls.Config to serve with.

Loads all the certs once at startup, then never reloads them again. This is different than a typical Kubernetes config, which periodically checks for cert updates.

Types

type RecommendedConfigFn added in v0.2.0

type RecommendedConfigFn func(*pkgserver.RecommendedConfig) *pkgserver.RecommendedConfig

func SetOpenAPIDefinitionFn added in v0.2.0

func SetOpenAPIDefinitionFn(scheme *runtime.Scheme, name, version string, defs openapicommon.GetOpenAPIDefinitions) RecommendedConfigFn

type TiltServerOptions

type TiltServerOptions struct {
	ServingOptions *options.SecureServingOptions
	ConnProvider   apiserver.ConnProvider
	// contains filtered or unexported fields
}

TiltServerOptions contains state for master/api server

func NewTiltServerOptions

func NewTiltServerOptions(
	out, errOut io.Writer,
	scheme *runtime.Scheme,
	codecs serializer.CodecFactory,
	codec runtime.Codec,
	recommendedConfigFns []RecommendedConfigFn,
	apis map[schema.GroupVersionResource]apiserver.StorageProvider,
	serving *options.SecureServingOptions,
	connProvider apiserver.ConnProvider) *TiltServerOptions

NewTiltServerOptions returns a new TiltServerOptions

func (*TiltServerOptions) ApplyRecommendedConfigFns added in v0.2.0

func (o *TiltServerOptions) ApplyRecommendedConfigFns(in *pkgserver.RecommendedConfig) *pkgserver.RecommendedConfig

func (*TiltServerOptions) Complete

func (o *TiltServerOptions) Complete() error

Complete fills in fields required to have valid data

func (*TiltServerOptions) Config

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

Config returns config for the api server given TiltServerOptions

func (TiltServerOptions) GetRESTOptions

func (o TiltServerOptions) GetRESTOptions(resource schema.GroupResource, obj runtime.Object) (generic.RESTOptions, error)

func (TiltServerOptions) RunTiltServer

func (o TiltServerOptions) RunTiltServer(ctx context.Context) (<-chan struct{}, error)

Complete the config and run the Tilt server

func (TiltServerOptions) RunTiltServerFromConfig added in v0.3.0

func (o TiltServerOptions) RunTiltServerFromConfig(config apiserver.CompletedConfig, ctx context.Context) (<-chan struct{}, error)

RunTiltServer starts a new TiltServer given TiltServerOptions

func (TiltServerOptions) Validate

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

Validate validates TiltServerOptions

type Warn added in v0.3.0

type Warn interface {
	Warnf(tpl string, args ...interface{})
}

type WarnFunc added in v0.3.0

type WarnFunc func(tpl string, args ...interface{})

func (WarnFunc) Warnf added in v0.3.0

func (f WarnFunc) Warnf(tpl string, args ...interface{})

Jump to

Keyboard shortcuts

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