Documentation
¶
Index ¶
- func AddCredential(ctx context.Context, provider, vpnType string) error
- func DeleteCredential(ctx context.Context, provider, vpnType string) error
- func DumpCredential(ctx context.Context, provider, vpnType string) error
- func Run(ctx context.Context, provider, vpnType string, extraArgs []string, ...) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddCredential ¶
AddCredential prompts for credential values and stores them in the encrypted credentials file.
func DeleteCredential ¶
DeleteCredential removes credentials for a provider and VPN type from the encrypted credentials file.
func DumpCredential ¶
DumpCredential decrypts the credential store and prints one provider/vpn-type entry.
func Run ¶
func Run(ctx context.Context, provider, vpnType string, extraArgs []string, forceKill <-chan struct{}, ) error
Run decrypts credentials, builds the container environment, and runs a Gluetun container. extraArgs is the list of additional flags (e.g. ["-e", "PORT_FORWARDING=on", "-v", "/host:/container"]).
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.