cfgbelugcmd

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2019 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const RIBS_CONFIG_FILE = "/etc/beluganos/ribxd.conf"

Variables

This section is empty.

Functions

func ReadConfig

func ReadConfig(path string, cfg *RibsConfig) error

func ReadConfig(path string, cfg *Config) error {

func RibsCmd

func RibsCmd() *cobra.Command

func RootCmd

func RootCmd(name string) *cobra.Command

func WriteConfig

func WriteConfig(path string, cfg *RibsConfig) error

func WriteConfig(path string, cfg *Config) error {

Types

type Command

type Command struct {
	// contains filtered or unexported fields
}

func (*Command) Init

func (c *Command) Init()

func (*Command) SetFlags

func (c *Command) SetFlags(cmd *cobra.Command) *cobra.Command

type RibsCommand

type RibsCommand struct {
	Command
	// contains filtered or unexported fields
}

func (*RibsCommand) SetFlags

func (c *RibsCommand) SetFlags(cmd *cobra.Command) *cobra.Command

func (*RibsCommand) SetVrf

func (c *RibsCommand) SetVrf() error

type RibsConfig

type RibsConfig map[string]interface{}

func (RibsConfig) Ribs

func (c RibsConfig) Ribs() (map[string]interface{}, error)

func (RibsConfig) RibsVrf

func (c RibsConfig) RibsVrf() (map[string]interface{}, error)

func (RibsConfig) SetRibsVrf

func (c RibsConfig) SetRibsVrf(key string, val interface{}) error

Jump to

Keyboard shortcuts

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