Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NetManagerOptions ¶
type NetManagerOptions struct { RegisterOptions *NetOptions `yaml:"register"` JoinOptions *NetOptions `yaml:"join"` Token string `yaml:"token"` NodeToken string `yaml:"node-token"` // read from tls/Token/node.token, value not path }
var DefaultNMO NetManagerOptions = NetManagerOptions{ Token: "local", RegisterOptions: NewRegisterOptions(), JoinOptions: NewJoinOptions(), }
func NewNetManagerOptions ¶
func NewNetManagerOptions() *NetManagerOptions
func (*NetManagerOptions) HelpSection ¶
func (opt *NetManagerOptions) HelpSection() *help.Section
func (*NetManagerOptions) PrintFlags ¶
func (opt *NetManagerOptions) PrintFlags(prefix string, printFunc func(format string, a ...interface{}) error) error
print all flags
type NetOptions ¶
type NetOptions struct { Address string `yaml:"network-address"` SecurePort uint16 `yaml:"secure-port"` //InSecurePort uint16 `yaml:"insecure-port"` CACert string `yaml:"ca-cert"` ClientCertFile string `yaml:"client-cert-file"` ClientkeyFile string `yaml:"client-key-file"` }
var DefaultJONO NetOptions = NetOptions{ Address: global.ExternIp(), SecurePort: 6441, }
var DefaultRONO NetOptions = NetOptions{ Address: global.ExternIp(), SecurePort: 6440, }
func NewJoinOptions ¶
func NewJoinOptions() *NetOptions
func NewRegisterOptions ¶
func NewRegisterOptions() *NetOptions
Click to show internal directories.
Click to hide internal directories.