hostipamwrapper

package
v1.16.3 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package hostipamwrapper is a wrapper method for the hostipam package

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HostIpam

type HostIpam interface {
	ExecAdd(plugin string, netconf []byte) (types.Result, error)

	ExecCheck(plugin string, netconf []byte) error

	ExecDel(plugin string, netconf []byte) error

	ConfigureIface(ifName string, res *current.Result) error
}

HostIpam is an interface created to make code unit testable. Both the hostipam package version and mocked version implement the same interface

func NewIpam

func NewIpam() HostIpam

NewIpam return a new HostIpam object

Directories

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

Jump to

Keyboard shortcuts

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