ip

package
v0.16.0 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2026 License: Apache-2.0 Imports: 16 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const FirewallRuleCreateExample = `{
  "action": "permit",
  "protocol": "tcp",
  "sequence": 0,
  "source": "10.0.0.0/8",
  "destinationPort": 443
}`

Variables

View Source
var (
	FirewallRuleSpec struct {
		Action          string `json:"action"`
		Protocol        string `json:"protocol"`
		Sequence        int    `json:"sequence"`
		Source          string `json:"source,omitempty"`
		DestinationPort int    `json:"destinationPort,omitempty"`
		SourcePort      int    `json:"sourcePort,omitempty"`
		TCPFragments    bool   `json:"-"`
		TCPOption       string `json:"-"`
	}
)
View Source
var (
	IPSpec struct {
		Description string `json:"description,omitempty"`
	}
)

Functions

func AddFirewall added in v0.11.0

func AddFirewall(_ *cobra.Command, args []string)

AddFirewall adds an IP to the firewall. API: POST /v1/ip/{ip}/firewall

func CreateFirewallRule added in v0.11.0

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

CreateFirewallRule creates a new firewall rule. API: POST /v1/ip/{ip}/firewall/{ipOnFirewall}/rule Uses RunE signature so client-side validation errors are returned to cobra (which prints them and exits cleanly without calling os.Exit).

func DeleteFirewall added in v0.11.0

func DeleteFirewall(_ *cobra.Command, args []string)

DeleteFirewall removes an IP and all its rules from the firewall. API: DELETE /v1/ip/{ip}/firewall/{ipOnFirewall}

func DeleteFirewallRule added in v0.11.0

func DeleteFirewallRule(_ *cobra.Command, args []string)

DeleteFirewallRule deletes a firewall rule. API: DELETE /v1/ip/{ip}/firewall/{ipOnFirewall}/rule/{sequence}

func DisableFirewall added in v0.11.0

func DisableFirewall(_ *cobra.Command, args []string)

DisableFirewall disables the firewall on an IP. API: PUT /v1/ip/{ip}/firewall/{ipOnFirewall}

func EditIp

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

func EnableFirewall added in v0.11.0

func EnableFirewall(_ *cobra.Command, args []string)

EnableFirewall enables the firewall on an IP. API: PUT /v1/ip/{ip}/firewall/{ipOnFirewall}

func GetFirewall added in v0.11.0

func GetFirewall(_ *cobra.Command, args []string)

GetFirewall shows firewall status for a specific IP. API: GET /v1/ip/{ip}/firewall/{ipOnFirewall}

func GetFirewallRule added in v0.11.0

func GetFirewallRule(_ *cobra.Command, args []string)

GetFirewallRule gets details of a specific firewall rule. API: GET /v1/ip/{ip}/firewall/{ipOnFirewall}/rule/{sequence}

func GetIp

func GetIp(_ *cobra.Command, args []string)

func IpDeleteReverse

func IpDeleteReverse(_ *cobra.Command, args []string)

func IpGetReverse

func IpGetReverse(_ *cobra.Command, args []string)

func IpSetReverse

func IpSetReverse(_ *cobra.Command, args []string)

func ListFirewall added in v0.11.0

func ListFirewall(_ *cobra.Command, args []string)

ListFirewall lists IPs registered on the firewall for the given IP block. API: GET /v1/ip/{ip}/firewall

func ListFirewallRules added in v0.11.0

func ListFirewallRules(_ *cobra.Command, args []string)

ListFirewallRules lists all firewall rules for the given IP. API: GET /v1/ip/{ip}/firewall/{ipOnFirewall}/rule

func ListIp

func ListIp(_ *cobra.Command, _ []string)

Types

This section is empty.

Jump to

Keyboard shortcuts

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