Documentation ¶
Index ¶
- func AddCommands(base *flags.Command) (*flags.Command, error)
- func CheckAutoHost(api *parvatigo.Api, gameConfig *cmd_lowlevel.GameConfig, lastStat string, ...) (*swagger.GameCheckInfo, error)
- func ConfigureIfacePrefs(confFile, inV4, inV6 string) (*iface.Config, error)
- func DumpUserData(user *swagger.User, show_ids, has_admin bool)
- func ProcessIPDelta(delta *swagger.UserDelta, checkOnly, commentSame bool) error
- func StringOrDefault(s, d string) string
- func TranslateDate(d string) string
- func TrueOrDefault(b bool, d string) string
- func UpdateIPs(api *parvatigo.Api, ipFlags, v4INum, v6INum int, doIt bool) (*swagger.UserDelta, error)
- type Details
- func (self *Details) AddCommands(base *flags.Command) (*flags.Command, error)
- func (self *Details) Execute(args []string) error
- func (self *Details) NeedsAPI() bool
- func (self *Details) NeedsAPIConfig() bool
- func (self *Details) SetAPI(api *parvatigo.Api)
- func (self *Details) SetAPIConfig(api *parvatigo.ApiConfig)
- type HostWatch
- func (self *HostWatch) AddCommands(base *flags.Command) (*flags.Command, error)
- func (self *HostWatch) Execute(args []string) error
- func (self *HostWatch) NeedsAPI() bool
- func (self *HostWatch) NeedsAPIConfig() bool
- func (self *HostWatch) SetAPI(api *parvatigo.Api)
- func (self *HostWatch) SetAPIConfig(api *parvatigo.ApiConfig)
- func (self *HostWatch) SetConfigFile(filePath string)
- type UpdateIP
- func (self *UpdateIP) AddCommands(base *flags.Command) (*flags.Command, error)
- func (self *UpdateIP) Execute(args []string) error
- func (self *UpdateIP) NeedsAPI() bool
- func (self *UpdateIP) NeedsAPIConfig() bool
- func (self *UpdateIP) SetAPI(api *parvatigo.Api)
- func (self *UpdateIP) SetAPIConfig(api *parvatigo.ApiConfig)
- func (self *UpdateIP) SetConfigFile(filePath string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddCommands ¶
func AddCommands(base *flags.Command) (*flags.Command, error)
func CheckAutoHost ¶
func ConfigureIfacePrefs ¶
func DumpUserData ¶
func ProcessIPDelta ¶
func StringOrDefault ¶
func TranslateDate ¶
func TrueOrDefault ¶
Types ¶
type Details ¶
type Details struct { User string `long:"user" short:"u" required:"false" description:"Get details for this user rather than yourself."` ShowIdentities bool `long:"show-identities" short:"i" required:"false" description:"Show identities. Only valid if getting your own data."` // contains filtered or unexported fields }
func (*Details) AddCommands ¶
func (*Details) NeedsAPIConfig ¶
func (*Details) SetAPIConfig ¶
type HostWatch ¶
type HostWatch struct { EnabledGames []string `short:"E" long:"enable" description:"Enable a game by (game) name or config section name." value-name:"<game>"` DisabledGames []string `` /* 137-byte string literal not displayed */ V4Iface string `long:"iface4" required:"false" value-name:"<name>|<id>" description:"Use this interface name/number for public v4 IP."` V6Iface string `long:"iface6" required:"false" value-name:"<name>|<id>" description:"Use this interface name/number for public v6 IP."` HostMessage string `short:"m" long:"host-message" decription:"Use this message to host (overrides config files)" value-name:"<text>"` NoIPUpdate bool `long:"no-ip-update" required:"false" description:"Do not also update IPs."` // contains filtered or unexported fields }
func (*HostWatch) AddCommands ¶
func (*HostWatch) NeedsAPIConfig ¶
func (*HostWatch) SetAPIConfig ¶
func (*HostWatch) SetConfigFile ¶
type UpdateIP ¶
type UpdateIP struct { SetV6 bool `short:"6" required:"false" description:"Update v6 IP (ignores enabled games)."` SetV4 bool `short:"4" required:"false" description:"Update v4 IP (ignores enabled games)."` Check bool `short:"n" long:"no-update" required:"false" description:"Just show what would be done, do not actually update."` V4Iface string `long:"iface4" required:"false" value-name:"<name>|<id>" description:"Use this interface name/number for public v4 IP."` V6Iface string `long:"iface6" required:"false" value-name:"<name>|<id>" description:"Use this interface name/number for public v6 IP."` Repeat bool `long:"repeat" short:"r" required:"false" description:"Constantly updated over time."` // contains filtered or unexported fields }
func (*UpdateIP) AddCommands ¶
func (*UpdateIP) NeedsAPIConfig ¶
func (*UpdateIP) SetAPIConfig ¶
func (*UpdateIP) SetConfigFile ¶
Click to show internal directories.
Click to hide internal directories.