server

package
v0.0.18 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ExtraOptions

type ExtraOptions struct {
	QPS   float64
	Burst int

	BaseURL               string
	Token                 string
	CAFile                string
	InsecureSkipTLSVerify bool
	LicenseDir            string
	CacheDir              string

	HubKubeconfig    string
	SpokeClusterName string
}

func NewExtraOptions

func NewExtraOptions() *ExtraOptions

func (*ExtraOptions) AddFlags

func (s *ExtraOptions) AddFlags(fs *pflag.FlagSet)

func (*ExtraOptions) ApplyTo

func (s *ExtraOptions) ApplyTo(cfg *apiserver.ExtraConfig) error

func (*ExtraOptions) Validate added in v0.0.2

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

type LicenseProxyServerOptions

type LicenseProxyServerOptions struct {
	RecommendedOptions *genericoptions.RecommendedOptions
	ExtraOptions       *ExtraOptions

	StdOut io.Writer
	StdErr io.Writer
}

LicenseProxyServerOptions contains state for master/api server

func NewUIServerOptions

func NewUIServerOptions(out, errOut io.Writer) *LicenseProxyServerOptions

NewUIServerOptions returns a new LicenseProxyServerOptions

func (LicenseProxyServerOptions) AddFlags

func (o LicenseProxyServerOptions) AddFlags(fs *pflag.FlagSet)

func (*LicenseProxyServerOptions) Complete

func (o *LicenseProxyServerOptions) Complete() error

Complete fills in fields required to have valid data

func (*LicenseProxyServerOptions) Config

Config returns config for the api server given LicenseProxyServerOptions

func (LicenseProxyServerOptions) Run added in v0.0.8

Run starts a new LicenseProxyServer given LicenseProxyServerOptions

func (LicenseProxyServerOptions) Validate

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

Validate validates LicenseProxyServerOptions

Jump to

Keyboard shortcuts

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