web

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2021 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New() *cobra.Command

represent the web command

func Run

func Run(ctx context.Context, completeOptions CompletedServerRunOptions) error

Run runs the specified APIServer. This should never exit.

Types

type CompletedServerRunOptions

type CompletedServerRunOptions struct {
	*ServerRunOptions
}

CompletedServerRunOptions is a private wrapper that enforces a call of Complete() before Run can be invoked.

func Complete

Complete set default ServerRunOptions.

type ServerRunOptions

type ServerRunOptions struct {
	Provider         *provider.Provider
	WebServerOptions *webserver.Config
	ServiceRegistry  *consul.Config
}

ServerRunOptions runs a kubernetes api server.

func NewServerRunOptions

func NewServerRunOptions() *ServerRunOptions

func (*ServerRunOptions) Validate

func (s *ServerRunOptions) Validate() []error

Validate checks ServerRunOptions and return a slice of found errs.

Jump to

Keyboard shortcuts

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