cmd_lowlevel

package
v0.0.0-...-3264e59 Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2020 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddCommands

func AddCommands(base *flags.Command) (*flags.Command, error)

func GetIpFlagsFromGames

func GetIpFlagsFromGames(games []*GameConfig) int

func MakupGame

func MakupGame(g swagger.Game, apis, protocols, info bool)

func ShowDefaultList

func ShowDefaultList(wantV4, wantV6, filtered bool) error

Types

type ConfigHelp

type ConfigHelp struct {
	ListSections bool `short:"l" long:"ls-sections" description:"Just list (matching) sections."`
	FilePath     bool `` /* 166-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*ConfigHelp) AddCommands

func (self *ConfigHelp) AddCommands(base *flags.Command) (*flags.Command, error)

func (*ConfigHelp) Execute

func (self *ConfigHelp) Execute(args []string) error

func (*ConfigHelp) KnownSections

func (self *ConfigHelp) KnownSections() []string

func (*ConfigHelp) NeedsAPI

func (self *ConfigHelp) NeedsAPI() bool

func (*ConfigHelp) NeedsAPIConfig

func (self *ConfigHelp) NeedsAPIConfig() bool

func (*ConfigHelp) SetAPI

func (self *ConfigHelp) SetAPI(api *parvatigo.Api)

func (*ConfigHelp) SetAPIConfig

func (self *ConfigHelp) SetAPIConfig(api *parvatigo.ApiConfig)

type GameConfig

type GameConfig struct {
	BackendGame *swagger.Game
	ConfigInfo  *parvatigo.GameInfo
}

func FilterGames

func FilterGames(knownGames []swagger.Game, configGames []parvatigo.GameInfo, ignoreDups bool) ([]*GameConfig, error)

type IfaceList

type IfaceList struct {
	IgnoreConfig bool `short:"i" long:"ignore-config" required:"false" description:"Ignore game configuration pointers for filtering IP families."`
	ShowV6       bool `short:"6" required:"false" description:"Include v6 IPs. Implies --ignore-config."`
	ShowV4       bool `short:"4" required:"false" description:"Include v4 IPs. Implies --ignore-config."`
	// contains filtered or unexported fields
}

func (*IfaceList) AddCommands

func (self *IfaceList) AddCommands(base *flags.Command) (*flags.Command, error)

func (*IfaceList) Execute

func (self *IfaceList) Execute(args []string) error

func (*IfaceList) NeedsAPI

func (self *IfaceList) NeedsAPI() bool

func (*IfaceList) NeedsAPIConfig

func (self *IfaceList) NeedsAPIConfig() bool

func (*IfaceList) SetAPI

func (self *IfaceList) SetAPI(api *parvatigo.Api)

func (*IfaceList) SetAPIConfig

func (self *IfaceList) SetAPIConfig(apiConfig *parvatigo.ApiConfig)

type ShowGames

type ShowGames struct {
	APIs      bool `short:"a" long:"apis" description:"Print known checking API endpoints"`
	Info      bool `short:"i" long:"info" description:"Print additiona name/url information"`
	Protocols bool `short:"p" long:"protocols" description:"Print Supported protocol information"`
	// contains filtered or unexported fields
}

func (*ShowGames) AddCommands

func (self *ShowGames) AddCommands(base *flags.Command) (*flags.Command, error)

func (*ShowGames) Execute

func (self *ShowGames) Execute(args []string) error

func (*ShowGames) NeedsAPI

func (self *ShowGames) NeedsAPI() bool

func (*ShowGames) NeedsAPIConfig

func (self *ShowGames) NeedsAPIConfig() bool

func (*ShowGames) SetAPI

func (self *ShowGames) SetAPI(api *parvatigo.Api)

func (*ShowGames) SetAPIConfig

func (self *ShowGames) SetAPIConfig(api *parvatigo.ApiConfig)

Jump to

Keyboard shortcuts

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