lab

package
v0.0.0-...-ae462d6 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2019 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DiscoverTemplates

func DiscoverTemplates(box *packr.Box, prefix string, t *template.Template) (*template.Template, error)

func NewTxtTemplate

func NewTxtTemplate() *template.Template

Types

type AioDxLab

type AioDxLab struct {
	Name           string
	Hypervisor     string
	SystemMode     string
	NatNet         string
	LoopBackPrefix string
	IntNetPrefix   string
	Oam            OamInfo
	Cpus           uint
	Memory         uint
	DiskSize       uint
	DiskCount      uint
}

func DefaultAioDxLab

func DefaultAioDxLab() AioDxLab

type AioSxLab

type AioSxLab struct {
	Name           string
	Hypervisor     string
	SystemMode     string
	NatNet         string
	LoopBackPrefix string
	IntNetPrefix   string
	Oam            OamInfo
	Cpus           uint
	Memory         uint
	DiskSize       uint
	DiskCount      uint
}

func DefaultAioSxLab

func DefaultAioSxLab() AioSxLab

type Disk

type Disk struct {
	Size   uint
	Medium string
}

type Lab

type Lab struct {
	Type     string
	Name     string
	BasePath string
	Vms      []Vm
	Networks []Network
}

type LibvirtDisk

type LibvirtDisk struct {
	Device    string
	Source    string
	Size      uint
	Dev       string
	Bus       string
	BootOrder uint
}

type LibvirtLab

type LibvirtLab struct {
	Type     string
	Name     string
	BasePath string
	Vms      []LibvirtVm
	Networks []LibvirtNetwork
}

type LibvirtNetwork

type LibvirtNetwork struct {
	Name    string
	Mode    string
	Address string
	Gateway string
}

type LibvirtNic

type LibvirtNic struct {
	Name      string
	Bridge    string
	Model     string
	Bus       uint
	Slot      uint
	BootOrder uint
}

type LibvirtVm

type LibvirtVm struct {
	Name   string
	Cpus   uint
	Memory uint
	Serial string
	Disks  []LibvirtDisk
	Nics   []LibvirtNic
}

type Network

type Network struct {
	Name        string
	Mode        string
	Address     string
	LoopbackMap []string
	PortForward []string
}

type Nic

type Nic struct {
	Mode     string
	Network  string
	Type     string
	BootPrio uint
	Promisc  string
}

type OamInfo

type OamInfo struct {
	Network     string
	Gateway     string
	FloatAddr   string
	Controller0 string
	Controller1 string
}

type StandardLab

type StandardLab struct {
	Name                string
	Hypervisor          string
	SystemMode          string
	NatNet              string
	LoopBackPrefix      string
	IntNetPrefix        string
	Oam                 OamInfo
	ControllerCpus      uint
	ControllerMemory    uint
	ControllerDiskSize  uint
	ControllerDiskCount uint
	ComputeCount        uint
	ComputeCpus         uint
	ComputeMemory       uint
	ComputeDiskSize     uint
	ComputeDiskCount    uint
}

func DefaultStandardLab

func DefaultStandardLab() StandardLab

type StorageAttachment

type StorageAttachment struct {
	Controller    string
	Port          uint
	Device        uint
	Type          string
	Medium        string
	NonRotational bool
	Discard       bool
}

type StorageController

type StorageController struct {
	Name        string
	Type        string
	Chipset     string
	PortCount   uint
	HostIOCache bool
	Bootable    bool
}

type StorageLab

type StorageLab struct {
	Name                string
	Hypervisor          string
	SystemMode          string
	NatNet              string
	LoopBackPrefix      string
	IntNetPrefix        string
	Oam                 OamInfo
	ControllerCpus      uint
	ControllerMemory    uint
	ControllerDiskSize  uint
	ControllerDiskCount uint
	ComputeCount        uint
	ComputeCpus         uint
	ComputeMemory       uint
	ComputeDiskSize     uint
	ComputeDiskCount    uint
	StorageCount        uint
	StorageCpus         uint
	StorageMemory       uint
	StorageDiskSize     uint
	StorageDiskCount    uint
}

func DefaultStorageLab

func DefaultStorageLab() StorageLab

type Vm

type Vm struct {
	Name               string
	Cpus               uint
	Memory             uint
	BootOrder          []string
	Disks              []Disk
	StorageControllers []StorageController
	StorageAttachments []StorageAttachment
	Nics               []Nic
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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