node

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2021 License: MPL-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WriteFile

func WriteFile(filename string, data []byte, perm os.FileMode) error

Types

type Cmd

type Cmd struct {
	internal.Platform
	Name    string `long:"name" env:"NAME" description:"Self node name"`
	Binding string `long:"binding" env:"BINDING" description:"Public binding address" default:":8655"`
	Token   string `long:"token" env:"TOKEN" description:"Authorization token (used as a encryption key)"`
	TLSKey  string `long:"tls-key" env:"TLS_KEY" description:"Path to private TLS key"`
	TLSCert string `long:"tls-cert" env:"TLS_CERT" description:"Path to public TLS certificate"`
}

func (*Cmd) Bin

func (cmd *Cmd) Bin() (string, error)

func (*Cmd) Directory

func (cmd *Cmd) Directory() (string, error)

func (*Cmd) Execute

func (cmd *Cmd) Execute(args []string) error

func (*Cmd) HostFile

func (cmd *Cmd) HostFile() string

func (*Cmd) Hosts

func (cmd *Cmd) Hosts() string

func (*Cmd) Network

func (cmd *Cmd) Network() string

func (*Cmd) TLS added in v0.0.4

func (cmd *Cmd) TLS() bool

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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