Documentation ¶
Index ¶
Constants ¶
View Source
const ( ExitSetupSuccess = 0 ExitSetupFailed = 1 )
View Source
const ( ENV_WG_TUN_FD = "WG_TUN_FD" ENV_WG_UAPI_FD = "WG_UAPI_FD" )
View Source
const APPLICATION_NAME = "pnc"
View Source
const IFCONFIG = "/sbin/ifconfig"
View Source
const OPENID_SCOPE = "email"
View Source
const ROUTE = "/sbin/route"
View Source
const VENDOR = "com.paranoco"
Variables ¶
This section is empty.
Functions ¶
func StatusCommand ¶
func StatusCommand(c *cli.Context) error
func VpnCommand ¶
func VpnCommand(c *cli.Context) error
func VpnConfigCommand ¶
func VpnConfigCommand(c *cli.Context) error
Types ¶
type ConfigurationFunc ¶
type PeerRequest ¶
type PeerResponse ¶
type VPNLoginConfiguration ¶
type VPNLoginConfiguration struct { SSOClientID string SSOClientSecret string SSOEndpoint string VPNEndpoint string }
func FetchRemoteConfig ¶
func FetchRemoteConfig(url string) (*VPNLoginConfiguration, error)
func GetVpnConfig ¶
func GetVpnConfig() (*VPNLoginConfiguration, error)
func (*VPNLoginConfiguration) Save ¶
func (c *VPNLoginConfiguration) Save() error
Click to show internal directories.
Click to hide internal directories.