netmanager

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: May 19, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

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

Jump to

Keyboard shortcuts

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