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 {
	// contains filtered or unexported fields
}

func (*Allocator) AllocPyHost

func (al *Allocator) AllocPyHost()

func (*Allocator) ApplyIP

func (al *Allocator) ApplyIP()

func (*Allocator) GenMac

func (al *Allocator) GenMac()

type IAllocator

type IAllocator interface {
	ApplyIP()
	GenMac()
	AllocPyHost()
}

type NetResource

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

func (*NetResource) ListAllocated

func (nr *NetResource) ListAllocated()

type Orchestrator

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

func NewOrchestrate

func NewOrchestrate(a IAllocator) *Orchestrator

func (*Orchestrator) Orchestrate

func (orch *Orchestrator) Orchestrate()

Jump to

Keyboard shortcuts

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