Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildConfig ¶
func BuildConfig(data []byte, token string) (map[string]*ConfigFile, error)
From an agent configuration archive (tar.gz), decrypt secrets and build the configuration files
func CheckWireguardTunnel ¶
func FetchConfig ¶
Fetch the encrypted configuration for the agent
func WriteConfig ¶
func WriteConfig(files map[string]*ConfigFile, dest string) error
Writes configuration files to dest
Types ¶
type ConfigFile ¶
type HTTPResult ¶
func CheckHTTPEndpoint ¶
func CheckHTTPEndpoint(url string) (*HTTPResult, error)
Click to show internal directories.
Click to hide internal directories.