Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AgentOptions ¶
type AgentOptions struct { NodeName string NodeIP string TunnelServerAddr string ApiserverAddr string KubeConfig string Version bool AgentIdentifiers string MetaHost string MetaPort string CertDir string }
AgentOptions has the information that required by the yurttunel-agent
func NewAgentOptions ¶
func NewAgentOptions() *AgentOptions
NewAgentOptions creates a new AgentOptions with a default config.
func (*AgentOptions) AddFlags ¶
func (o *AgentOptions) AddFlags(fs *pflag.FlagSet)
AddFlags returns flags for a specific yurttunnel-agent by section name
func (*AgentOptions) Config ¶
func (o *AgentOptions) Config() (*config.Config, error)
Config return a yurttunnel agent config objective
func (*AgentOptions) Validate ¶
func (o *AgentOptions) Validate() error
validate validates the AgentOptions
Click to show internal directories.
Click to hide internal directories.