localdriver

package
v1.28.1 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2023 License: MIT Imports: 6 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 SQLite3 standard IPDriver

Types

type SQLiteDriver

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

SQLiteDriver driver for sqlite3

func (*SQLiteDriver) GetHostInfo

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

GetHostInfo Get host info from driver

func (*SQLiteDriver) GetIPAddr

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

GetIPAddr get available ip resource for contaienr

func (*SQLiteDriver) ReleaseIPAddr

func (driver *SQLiteDriver) 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