network

package
v0.0.14 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2019 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const VpnKitLabel = "org.cloudfoundry.cfdev.vpnkit"

Variables

This section is empty.

Functions

func IsCFDevDInstalled

func IsCFDevDInstalled(sockPath string, binPath string, expectedMD5 string) bool

Types

type CFDevD

type CFDevD struct {
	ExecutablePath string
	TimeSyncSocket string
}

func (*CFDevD) Install

func (c *CFDevD) Install() error

type CfdevdClient

type CfdevdClient interface {
	Uninstall() (string, error)
	AddIPAlias() (string, error)
	RemoveIPAlias() (string, error)
}

type DaemonRunner

type DaemonRunner interface {
	AddDaemon(daemon.DaemonSpec) error
	RemoveDaemon(string) error
	Start(string) error
	Stop(string) error
	IsRunning(string) (bool, error)
}

type HostNet

type HostNet struct {
	CfdevdClient CfdevdClient
	Powershell   runner.Powershell
	VMSwitchName string
}

func (*HostNet) AddLoopbackAliases added in v0.0.14

func (h *HostNet) AddLoopbackAliases(addrs ...string) error

func (*HostNet) RemoveLoopbackAliases added in v0.0.14

func (h *HostNet) RemoveLoopbackAliases(addrs ...string) error

type VpnKit

type VpnKit struct {
	Config        config.Config
	DaemonRunner  DaemonRunner
	Powershell    runner.Powershell
	Label         string
	EthernetGUID  string
	PortGUID      string
	ForwarderGUID string
}

func (*VpnKit) Destroy added in v0.0.14

func (v *VpnKit) Destroy() error

func (*VpnKit) Setup added in v0.0.14

func (v *VpnKit) Setup() error

func (*VpnKit) Start added in v0.0.14

func (v *VpnKit) Start() error

func (*VpnKit) Stop

func (v *VpnKit) Stop() error

func (*VpnKit) Watch

func (v *VpnKit) Watch(exit chan string)

Directories

Path Synopsis
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.

Jump to

Keyboard shortcuts

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