deploy

package
v0.0.16 Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2018 License: Unlicense Imports: 22 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DropletBaseName     = "dosxvpn"
	DropletImage        = "coreos-beta"
	DropletSize         = "s-1vcpu-1gb"
	AutogeneratedSSHKey = "dosxvpn"
)

Variables

View Source
var (
	FilepathDosxvpnConfigDir = filepath.Join(userHomeDir(), ".dosxvpn")
	FilenameAppleConfig      = "%s.apple.mobileconfig"
	FilenameAndroidConfig    = "%s.android.sswan"
	FilenamePrivateKey       = "%s.client.cert.p12"
	FilenameCACert           = "%s.ca.cert.pem"
	FilenameServerCert       = "%s.server.cert.pem"
	VpnFiles                 = map[string]string{
		"/etc/ipsec.d/client.cert.p12":       FilenamePrivateKey,
		"/etc/ipsec.d/cacerts/ca.cert.pem":   FilenameCACert,
		"/etc/ipsec.d/certs/server.cert.pem": FilenameServerCert,
	}
)

Functions

func ListVpns

func ListVpns(token string) ([]string, error)

func RemoveVPN

func RemoveVPN(token, name string, removeProfile bool) ([]string, error)

Types

type Deployment

type Deployment struct {
	Region        string
	AutoConfigure bool
	Name          string
	Token         string

	VpnPassword     string
	Status          string `json:"status"`
	VPNIPAddress    string `json:"ip_address"`
	InitialPublicIP string `json:"initial_ip"`
	FinalPublicIP   string `json:"final_ip"`
	// contains filtered or unexported fields
}

func New

func New(token, region string, autoConfigure bool) (*Deployment, error)

func (*Deployment) Run

func (d *Deployment) Run() error

Jump to

Keyboard shortcuts

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