netdriver

package
v1.29.0-alpha.61 Latest Latest
Warning

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

Go to latest
Published: May 17, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewDriver

func NewDriver() (resource.IPDriver, error)

NewDriver create IPDriver for bcs-netservice

Types

type NetDriver

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

NetDriver driver for bcs-netservice

func (*NetDriver) GetHostInfo

func (driver *NetDriver) GetHostInfo(host string) (*types.HostInfo, error)

GetHostInfo Get host info from driver

func (*NetDriver) GetIPAddr

func (driver *NetDriver) GetIPAddr(host, containerID, requestIP string) (*types.IPInfo, error)

GetIPAddr get available ip resource for contaienr

func (*NetDriver) ReleaseIPAddr

func (driver *NetDriver) ReleaseIPAddr(host string, containerID string, ipInfo *types.IPInfo) error

ReleaseIPAddr release ip address for container

Jump to

Keyboard shortcuts

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