startVpn

package
v0.12.18 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2023 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	GrpcApiAddress string
	VpnAddress     string
}

type Handler

type Handler struct {
	// contains filtered or unexported fields
}

func New

func New(
	config Config,
	apiGrpcClient zBusinessZeropsApiProtocol.ZBusinessZeropsApiProtocolClient,
	daemonInstaller *daemonInstaller.Handler,
	sdkConfig sdkConfig.Config,
) *Handler

func (*Handler) Run

func (h *Handler) Run(ctx context.Context, config RunConfig) error

type RunConfig

type RunConfig struct {
	ProjectNameOrId  string
	Token            string
	Mtu              uint32
	CaCertificateUrl string
	PreferredPortMin uint32
	PreferredPortMax uint32
}

Jump to

Keyboard shortcuts

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