builder

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2020 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Allocator

type Allocator struct {
	Allocated *NetResource
	// contains filtered or unexported fields
}

func NewAllocator

func NewAllocator() *Allocator

func (*Allocator) AllocPyHost

func (al *Allocator) AllocPyHost() IAllocator

func (*Allocator) ApplyIP

func (al *Allocator) ApplyIP() IAllocator

func (*Allocator) Done

func (al *Allocator) Done() (IResource, error)

func (*Allocator) GenMac

func (al *Allocator) GenMac() IAllocator

type IAllocator

type IAllocator interface {
	ApplyIP() IAllocator
	GenMac() IAllocator
	AllocPyHost() IAllocator
	Done() (IResource, error)
}

type IResource

type IResource interface {
	ListAllocated()
}

type NetResource

type NetResource struct {
	IP    string
	PyIP  string
	IpSeg string
	Macs  []string
}

func (*NetResource) ListAllocated

func (nr *NetResource) ListAllocated()

Jump to

Keyboard shortcuts

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