configuration

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2020 License: GPL-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HideGuardConfiguration

type HideGuardConfiguration struct {
	Client rest.Config      `yaml:"client,omitempty"`
	Link   wireguard.Config `yaml:"link,omitempty"`
}

func NewHideGuardConfiguration

func NewHideGuardConfiguration() *HideGuardConfiguration

func (*HideGuardConfiguration) AdjustHost

func (c *HideGuardConfiguration) AdjustHost()

Add .hideservers.net suffix for short names ( nl becomes nl.hideservers.net ) or remove .hide.me and replace it with .hideservers.net.

func (*HideGuardConfiguration) Check

func (c *HideGuardConfiguration) Check() (err error)

func (*HideGuardConfiguration) InteractiveCredentials

func (c *HideGuardConfiguration) InteractiveCredentials() (err error)

Ask for username/password if none were configured

func (*HideGuardConfiguration) Print

func (c *HideGuardConfiguration) Print()

func (*HideGuardConfiguration) Read

func (c *HideGuardConfiguration) Read(fileName string) (err error)

func (*HideGuardConfiguration) Store

func (c *HideGuardConfiguration) Store(fileName string) (err error)

Jump to

Keyboard shortcuts

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