options

package
v0.17.2 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HubServerOptions

type HubServerOptions struct {
	// No tunnel logging by default
	TunnelLogging bool

	// default namespace to create Manifest in
	// default to be "clusternet-reserved"
	ReservedNamespace string

	RecommendedOptions *genericoptions.RecommendedOptions

	LoopbackSharedInformerFactory informers.SharedInformerFactory

	*utils.ControllerOptions

	// advertise address to other peers
	PeerAdvertiseAddress net.IP
	// secure port used for communicating with peers
	PeerPort int
	// token used for authentication with peers
	PeerToken string

	// Flags hold the parsed CLI flags.
	Flags *cliflag.NamedFlagSets
}

HubServerOptions contains state for master/api server

func NewHubServerOptions

func NewHubServerOptions() (*HubServerOptions, error)

NewHubServerOptions returns a new HubServerOptions

func (*HubServerOptions) Complete

func (o *HubServerOptions) Complete() error

Complete fills in fields required to have valid data

func (*HubServerOptions) Config

func (o *HubServerOptions) Config() (*apiserver.Config, error)

Config returns config for the api server given HubServerOptions

func (*HubServerOptions) Validate

func (o *HubServerOptions) Validate() error

Validate validates HubServerOptions

Jump to

Keyboard shortcuts

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