web

package
v0.0.52 Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2021 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CommandE added in v0.0.6

func CommandE(ctx context.Context) func(cmd *cobra.Command, args []string) error

func New

func New(ctx context.Context) *cobra.Command

New represent the web command

Types

type CompletedServerRunOptions

type CompletedServerRunOptions struct {
	// contains filtered or unexported fields
}

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

func (*CompletedServerRunOptions) Run added in v0.0.7

Run runs the specified APIServer. This should never exit.

type ServerRunOptions

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

ServerRunOptions runs a kubernetes api server.

func NewServerRunOptions

func NewServerRunOptions() *ServerRunOptions

func (*ServerRunOptions) Complete added in v0.0.7

Complete set default ServerRunOptions.

func (*ServerRunOptions) Validate

func (s *ServerRunOptions) Validate(validate *validator.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