dhcp

package module
v0.0.0-...-35921d1 Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2022 License: MIT Imports: 4 Imported by: 0

README

xk6-dhcp

A k6 extension DHCP

Build

To build a k6 binary with this plugin, first ensure you have the prerequisites:

Then:

  1. Install xk6:
go install go.k6.io/xk6/cmd/xk6@latest
  1. Build the binary:
xk6 build master \
  --with github.com/mgazza/xk6-dhcp

Example

TODO


import dhcp from 'k6/x/dhcp';

const client = dhcp.new('eth0')

export default function () {
    dhcp.discoverOffer(client,)
}

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DHCP

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

func New

func New(iface string, opts ...nclient4.ClientOpt) *DHCP

func (*DHCP) Exchange

func (d *DHCP) Exchange(modifiers ...dhcpv4.Modifier) (*dhcpv4.DHCPv4, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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