vethctrl

package
v0.0.0-...-846387b Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2018 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type InnerVethCtrl

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

InnerVethCtrl 网桥管理器

func (*InnerVethCtrl) DoNetworking

func (v *InnerVethCtrl) DoNetworking(args *skel.CmdArgs, conf *conf.Options, result *types020.Result) error

DoNetworking 创建veth对,绑定IP

type ShellCtrl

type ShellCtrl struct{}

ShellCtrl shell实现

func (*ShellCtrl) DoNetworking

func (s *ShellCtrl) DoNetworking(args *skel.CmdArgs, conf *conf.Options, result *types020.Result) error

DoNetworking 创建veth并绑定ip

func (*ShellCtrl) ExecBindingIP

func (s *ShellCtrl) ExecBindingIP(ip, containerID string) error

ExecBindingIP binding local container ip

func (*ShellCtrl) ExecCreateBr

func (s *ShellCtrl) ExecCreateBr(containerID string) error

ExecCreateBr create local bridge

type VethCtrl

type VethCtrl interface {
	DoNetworking(args *skel.CmdArgs, conf *conf.Options, result *types020.Result) error
}

VethCtrl veth网桥操作接口

func GetVethCtrl

func GetVethCtrl(key string, log *logrus.Entry) VethCtrl

GetVethCtrl 获取veth操作器

Jump to

Keyboard shortcuts

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