nodecmd

package
v0.1.7 Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2023 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Overview

Package nodecmd contains the entrypoint for webmesh nodes.

Package nodecmd contains the entrypoint for webmesh nodes.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Execute

func Execute() error

func GenBridgeMarkdownDoc added in v0.1.3

func GenBridgeMarkdownDoc(title string, weight int, outfile string) error

GenBridgeMarkdownDoc generates the markdown documentation for the bridge commands.

func GenMarkdownDoc added in v0.0.25

func GenMarkdownDoc(title string, weight int, outfile string) error

GenMarkdownDoc generates markdown documentation for the node command

Types

type Options

type Options struct {
	Global *global.Options `yaml:"global,omitempty" json:"global,omitempty" toml:"global,omitempty"`

	Mesh     *mesh.Options       `yaml:",inline" json:",inline" toml:",inline"`
	Bridge   *meshbridge.Options `yaml:"bridge,omitempty" json:"bridge,omitempty" toml:"bridge,omitempty"`
	Services *services.Options   `yaml:"services,omitempty" json:"services,omitempty" toml:"services,omitempty"`
}

Options are the node options.

func NewOptions

func NewOptions() *Options

NewOptions creates new options.

func (*Options) BindFlags

func (o *Options) BindFlags(fs *flag.FlagSet) *Options

BindFlags binds the flags. The options are returned for convenience.

func (*Options) Marshal

func (o *Options) Marshal() ([]byte, error)

Marshal returns the marshaled options.

func (*Options) MarshalTo

func (o *Options) MarshalTo(w io.Writer) error

func (*Options) Validate added in v0.1.2

func (o *Options) Validate() error

Validate runs all the validation checks.

Directories

Path Synopsis
Package global provides global configurations that can override others.
Package global provides global configurations that can override others.

Jump to

Keyboard shortcuts

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