commands

package
v0.3.150327 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2015 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var GoairCmd = &cobra.Command{
	Use: "goair",
	Run: func(cmd *cobra.Command, args []string) {
		InitConfig()
		cmd.Usage()
	},
}

GoairCmd

Functions

func AddCommands

func AddCommands()

AddCommands function

func Exec

func Exec()

Exec function

func GetIPRange added in v0.2.150303

func GetIPRange(startAddress, endAddress string) ([]string, error)

GetIPRange returns a list of IPs

func InitConfig

func InitConfig()

InitConfig function

Types

type FlagValue

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

FlagValue struct

type PublicIPInfo

type PublicIPInfo struct {
	Type           string
	SNATRuleExists bool
	DNATRuleExists bool
	ExternalIP     string
	InternalIP     string
}

PublicIPInfo holds the NAT mapping information

Jump to

Keyboard shortcuts

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