options

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	EtcdPath             string
	RecommendedConfigFns []func(*server.RecommendedConfig) *server.RecommendedConfig
	ServerOptionsFns     []func(server *ServerOptions) *ServerOptions
	FlagsFns             []func(fs *pflag.FlagSet) *pflag.FlagSet
)

Functions

func ApplyFlagsFns

func ApplyFlagsFns(fs *pflag.FlagSet) *pflag.FlagSet

func ApplyRecommendedConfigFns

func ApplyRecommendedConfigFns(in *server.RecommendedConfig) *server.RecommendedConfig

Types

type ServerOptions

type ServerOptions struct {
	RecommendedOptions *genericoptions.RecommendedOptions

	StdOut io.Writer
	StdErr io.Writer
}

func ApplyServerOptionsFns

func ApplyServerOptionsFns(in *ServerOptions) *ServerOptions

func NewServerOptions

func NewServerOptions(out, errOut io.Writer, versions ...schema.GroupVersion) *ServerOptions

NewServerOptions returns a new ServerOptions

func (*ServerOptions) Complete

func (o *ServerOptions) Complete() error

Complete fills in fields required to have valid data

func (*ServerOptions) Config

func (o *ServerOptions) Config(serverName string) (*apiserver.Config, error)

Config returns config for the api server given WardleServerOptions

func (ServerOptions) RunServer

func (o ServerOptions) RunServer(ctx context.Context, serverName string) error

RunServer starts a new Server given ServerOptions

func (ServerOptions) Validate

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

Validate validates ServerOptions

Jump to

Keyboard shortcuts

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