class

Wgctl::CLI::Context

Inherits Reference < Object

Constructors

Instance methods

available_configs

Finds all available WireGuard configuration files and active interfaces

Source
cert
Source
cert=(cert : String | Nil)
Source
config_file
Source
config_file=(config_file : String | Nil)
Source
cors
Source
cors=(cors : String)
Source
description
Source
description=(description : String | Nil)
Source
device
Source
device=(device : String | Nil)
Source
discover_interfaces

Returns sorted list of all unique interface names available (configured or active)

Source
dns=(dns : String | Nil)
Source
dry_run
Source
dry_run=(dry_run : Bool)
Source
endpoint
Source
endpoint=(endpoint : String | Nil)
Source
expires
Source
expires=(expires : String | Nil)
Source
first_client
Source
first_client=(first_client : String | Nil)
Source
foreground
Source
foreground=(foreground : Bool)
Source
host
Source
host=(host : String)
Source
interface
Source
interface=(interface : String | Nil)
Source
ip=(ip : String | Nil)
Source
json_output
Source
json_output=(json_output : Bool)
Source
keepalive
Source
keepalive=(keepalive : Int32 | Nil)
Source
key=(key : String | Nil)
Source
load_interface(target_name : String | Nil = nil, hint_command : String | Nil = nil) : Models::Interface

Loads interface with both parsed config and live runtime dump

Source
name
Source
name=(name : String | Nil)
Source
no_apply
Source
no_apply=(no_apply : Bool)
Source
no_firewall
Source
no_firewall=(no_firewall : Bool)
Source
no_start
Source
no_start=(no_start : Bool)
Source
non_interactive
Source
non_interactive=(non_interactive : Bool)
Source
output_file
Source
output_file=(output_file : String | Nil)
Source
port
Source
port=(port : Int32 | Nil)
Source
preshared_key
Source
preshared_key=(preshared_key : String | Nil)
Source
public_ip
Source
public_ip=(public_ip : String | Nil)
Source
qr=(v : Bool)
Source
qr_code
Source
qr_code=(qr_code : Bool)
Source
remote?

Returns true if operating against a remote daemon

Source
remote_client
Source
remote_profile_name
Source
remote_profile_name=(remote_profile_name : String | Nil)
Source
remote_token
Source
remote_token=(remote_token : String | Nil)
Source
remote_url
Source
remote_url=(remote_url : String | Nil)
Source
resolve_interface(target_name : String | Nil = nil, hint_command : String | Nil = nil) : Tuple(String, String)

Discovers or resolves the target interface configuration

Source
skip_pkg_install
Source
skip_pkg_install=(skip_pkg_install : Bool)
Source
subnet
Source
subnet=(subnet : String | Nil)
Source
wan_interface
Source
wan_interface=(wan_interface : String | Nil)
Source