Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // FirewallClient holds the initialized provider client implementing the Provider interface. FirewallClient generic.Provider )
Functions ¶
func GetCurrentIP ¶ added in v0.0.3
GetCurrentIP will return the current IP and print it to standard out. It invokes the same mechanisms to fetch the IP as the update command. This command will not update the fwsync configuration.
func Initialize ¶
Initialize performs the first sync of the firewall rule. It will prompt the user to select the firewall rule with his or her name and then will update that firewall rule with their current public IP. Any existing source IPs on the firewall rule will be overwritten.
func List ¶
List prints out the current source IPs configured in ~/.fwsync and the source IPs active on the GCP Firewall.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.