netsetgo

package module
v0.0.0-...-c61b441 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2023 License: Apache-2.0 Imports: 1 Imported by: 3

README

netsetgo

This repository is forked for Silencer only.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Configurer

type Configurer interface {
	Apply(netConfig NetworkConfig, pid int) error
}

type Netset

type Netset struct {
	HostConfigurer      Configurer
	ContainerConfigurer Configurer
}

func New

func New(hostConfigurer, containerConfigurer Configurer) *Netset

func (*Netset) ConfigureContainer

func (n *Netset) ConfigureContainer(netConfig NetworkConfig, pid int) error

func (*Netset) ConfigureHost

func (n *Netset) ConfigureHost(netConfig NetworkConfig, pid int) error

type NetworkConfig

type NetworkConfig struct {
	BridgeName     string
	BridgeIP       net.IP
	ContainerIP    net.IP
	Subnet         *net.IPNet
	VethNamePrefix string
}

Directories

Path Synopsis
configurerfakes
This file was generated by counterfeiter
This file was generated by counterfeiter
This file was generated by counterfeiter
This file was generated by counterfeiter

Jump to

Keyboard shortcuts

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