options

package
v0.0.0-...-bd184db Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ServerRunOptions

type ServerRunOptions struct {

	// server bind address
	BindAddress string

	// insecure port number
	InsecurePort int

	// secure port number
	SecurePort int

	// tls cert file
	TlsCertFile string

	// tls private key file
	TlsPrivateKey string

	//
	DebugMode bool
}

func NewServerRunOptions

func NewServerRunOptions() *ServerRunOptions

NewServerRunOptions 初始化server 启动参数

func (*ServerRunOptions) AddFlags

func (s *ServerRunOptions) AddFlags(fs *flag.FlagSet)

AddFlags 添加程序入参

func (*ServerRunOptions) NewAPIServer

func (s *ServerRunOptions) NewAPIServer(stopCh <-chan struct{}) (*apiserver.APIServer, error)

NewAPIServer creates an APIServer instance using given options

func (*ServerRunOptions) Validate

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

Validate 对部分参数进行校验

Jump to

Keyboard shortcuts

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