bridge

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: May 9, 2017 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAllIPs

func GetAllIPs() (out []net.IP, err error)

Types

type Bridge

type Bridge struct {
	Endpoints []string `json:"endpoints"`

	CACert string `json:"ca_cert"`

	ClientCert string `json:"client_cert"`
	ClientKey  string `json:"client_key"`

	Listener net.Listener `json:"-"`
	// contains filtered or unexported fields
}

func NewBridge

func NewBridge(caKeyStore string) (bridge *Bridge, err error)

NewBridge generates all that is needed to serve a bridge. It generates crypto material (ca cert+key and client cert+key), creates the listener, lists the available IPs.

func NewCachedBridge

func NewCachedBridge(caKeyStore, confFile string) (bridge *Bridge, err error)

func NewFromDefaultConfig

func NewFromDefaultConfig() (bridge *Bridge, err error)

func NewFromString

func NewFromString(conf string) (bridge *Bridge, err error)

func (*Bridge) ClientTLSConfig

func (b *Bridge) ClientTLSConfig() *tls.Config

func (*Bridge) ServerTLSConfig

func (b *Bridge) ServerTLSConfig(insecure bool) *tls.Config

Jump to

Keyboard shortcuts

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