cmd

package
v0.0.0-...-edc748c Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2023 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ADKCmd = &cobra.Command{
	Use:    "adk",
	Short:  "Anti DoS Knocking utilities",
	Run:    adkCmdRunFn,
	PreRun: PreRunLogSetupFn,
}
View Source
var ADKProofCmd = &cobra.Command{
	Use:    "proof <ADK secret>",
	Short:  "Generate ADK proof",
	Run:    adkProofCmdRunFn,
	PreRun: PreRunLogSetupFn,
	Args:   cobra.ExactArgs(1),
}
View Source
var ADKSecretCmd = &cobra.Command{
	Use:    "secret",
	Short:  "Generate ADK (encoded) secret",
	Run:    adkSecretCmdRunFn,
	PreRun: PreRunLogSetupFn,
}
View Source
var IPCmd = &cobra.Command{
	Use:    "ip",
	Short:  "Returns the client's public IPv4 and IPv6 address",
	Run:    ipCmdRunFn,
	PreRun: PreRunLogSetupFn,
}
View Source
var ReqCmd = &cobra.Command{
	Use:    "req <OSPA file>",
	Short:  "Send an OpenSPA request packet",
	Run:    reqCmdRunFn,
	PreRun: PreRunLogSetupFn,
}
View Source
var ServerCmd = &cobra.Command{
	Use:    "server",
	Short:  "Start OpenSPA server",
	Run:    serverCmdRunFn,
	PreRun: PreRunLogSetupFn,
}

Functions

func ADKCmdSetup

func ADKCmdSetup(c *cobra.Command)

func IPCmdSetup

func IPCmdSetup(c *cobra.Command)

func LogSetup

func LogSetup(verbose bool)

func PreRunLogSetupFn

func PreRunLogSetupFn(cmd *cobra.Command, args []string)

func ReqCmdSetup

func ReqCmdSetup(c *cobra.Command)

func RootCmdSetupFlags

func RootCmdSetupFlags(cmd *cobra.Command)

func ServerCmdSetup

func ServerCmdSetup(c *cobra.Command)

func VersionCmdGet

func VersionCmdGet(withADKXDPLine bool) *cobra.Command

Types

This section is empty.

Jump to

Keyboard shortcuts

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