tunnel_api

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2021 License: Apache-2.0 Imports: 27 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenOpenvpnSSLCrts

func GenOpenvpnSSLCrts() (*bytes.Buffer, *bytes.Buffer, *bytes.Buffer, *bytes.Buffer, *bytes.Buffer, *bytes.Buffer, error)

func Openvpn

func Openvpn(tunnel Tunnel) error

Types

type Options

type Options struct {
	Namespace   string
	CACrt       *bytes.Buffer
	ClientCrt   *bytes.Buffer
	ClientKey   *bytes.Buffer
	ServerCrt   *bytes.Buffer
	ServerKey   *bytes.Buffer
	RSADHKey    *bytes.Buffer
	ClientImage string
	ServerImage string
	ServerPort  int32
}

type Tunnel

type Tunnel struct {
	DstClient       client.Client
	DstConfig       *rest.Config
	DstVersionMinor int
	SrcClient       client.Client
	SrcConfig       *rest.Config
	SrcVersionMinor int
	Options         Options
}

Jump to

Keyboard shortcuts

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