cli

package
v0.19.2 Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2020 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BaseProfile

type BaseProfile struct {
	*clientcmd.ServiceCommand `no-flag:"true"`
	clientcmd.InteractiveAuthCommand
	// contains filtered or unexported fields
}

func (BaseProfile) Execute

func (c BaseProfile) Execute(_ []string) error

type Commands

type Commands struct {
	*clientcmd.ServiceCommand

	BaseProfile              BaseProfile              `command:"base-profile" description:"Show the base connection profile of the OpenVPN server"`
	Exec                     Exec                     `command:"exec" description:"Execute openvpn to connect to the remote server" alias:"connect"`
	CreateONCProfile         CreateONCProfile         `command:"create-onc-profile" description:"Create an ONC profile"`
	CreateProfile            CreateProfile            `command:"create-profile" description:"Create and sign an OpenVPN configuration profile"`
	CreateTunnelblickProfile CreateTunnelblickProfile `command:"create-tunnelblick-profile" description:"Create a Tunnelblick profile"`
	CreateLaunchdService     CreateLaunchdService     `command:"create-launchd-service" description:"Create a launchd service"`
	// contains filtered or unexported fields
}

func CreateCommands

func CreateCommands(runtime client.Runtime, sf svc.ServiceFactory, fs boshsys.FileSystem, cmdRunner boshsys.CmdRunner) *Commands

type CreateLaunchdService added in v0.12.0

type CreateLaunchdService struct {
	*clientcmd.ServiceCommand `no-flag:"true"`
	clientcmd.InteractiveAuthCommand

	SsocaExec   string `long:"exec-ssoca" description:"Path to the ssoca binary"`
	Name        string `long:"name" description:"Specific file name to use for *.tblk"`
	OpenvpnExec string `long:"exec-openvpn" description:"Path to the openvpn binary"`
	RunAtLoad   bool   `long:"run-at-load" description:"Run the service at load"`
	LogDir      string `long:"log-dir" description:"Log directory for the service (default: ~/Library/Logs)"`

	Start bool `long:"start" description:"Load and start the service after installation"`

	Args createLaunchdServiceArgs `positional-args:"true"`
	// contains filtered or unexported fields
}

func (CreateLaunchdService) Execute added in v0.12.0

func (c CreateLaunchdService) Execute(_ []string) error

type CreateONCProfile added in v0.12.0

type CreateONCProfile struct {
	*clientcmd.ServiceCommand `no-flag:"true"`
	clientcmd.InteractiveAuthCommand

	Name string `long:"name" description:"Specific network configuration name to use"`
	// contains filtered or unexported fields
}

func (CreateONCProfile) Execute added in v0.12.0

func (c CreateONCProfile) Execute(_ []string) error

type CreateProfile

type CreateProfile struct {
	*clientcmd.ServiceCommand `no-flag:"true"`
	clientcmd.InteractiveAuthCommand
	// contains filtered or unexported fields
}

func (CreateProfile) Execute

func (c CreateProfile) Execute(_ []string) error

type CreateTunnelblickProfile

type CreateTunnelblickProfile struct {
	*clientcmd.ServiceCommand `no-flag:"true"`
	clientcmd.InteractiveAuthCommand

	SsocaExec string                       `long:"exec-ssoca" description:"Path to the ssoca binary"`
	Name      string                       `long:"name" description:"Specific file name to use for *.tblk"`
	Install   bool                         `long:"install" description:"Install the profile (sudo may prompt for privileges)"`
	Args      createTunnelblickProfileArgs `positional-args:"true"`
	// contains filtered or unexported fields
}

func (CreateTunnelblickProfile) Execute

func (c CreateTunnelblickProfile) Execute(_ []string) error

type Exec

type Exec struct {
	*clientcmd.ServiceCommand `no-flag:"true"`
	clientcmd.InteractiveAuthCommand

	Exec           string      `long:"exec" description:"Path to the openvpn binary"`
	Reconnect      bool        `long:"reconnect" description:"Reconnect on connection disconnects"`
	ManagementMode string      `long:"management-mode" description:"Configure use of management interface (one of: auto, enabled, disabled; default: auto)"`
	Sudo           bool        `long:"sudo" description:"Execute openvpn with sudo"`
	Args           connectArgs `positional-args:"true"`

	// deprecated
	StaticCertificate bool `` /* 160-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (Exec) Execute

func (c Exec) Execute(_ []string) error

Jump to

Keyboard shortcuts

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