virtualrouter

package
v0.0.0-...-884d9dc Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2024 License: Apache-2.0 Imports: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Pool

type Pool struct {
	XMLName        xml.Name        `xml:"VROUTER_POOL"`
	VirtualRouters []VirtualRouter `xml:"VROUTER"`
}

Pool represents an OpenNebula VirtualRouter pool

type Template

type Template struct {
	dyn.Template
}

Template is a virtual router template

func NewTemplate

func NewTemplate() *Template

NewTemplate returns a new virtual router Template object

func (*Template) Add

func (t *Template) Add(key keys.Template, value interface{})

Add adds a virtual router template key, value pair

func (*Template) AddNIC

func (t *Template) AddNIC() *shared.NIC

AddNIC allow to add a NIC to the template

func (*Template) Get

func (t *Template) Get(key keys.Template) (string, error)

Get returns the string value for a virtual router template

func (*Template) GetI

func (n *Template) GetI(key keys.Template) (int, error)

GetI returns the integer value for an virtual router key

func (*Template) GetNICs

func (t *Template) GetNICs() []shared.NIC

GetNICs allow to get NICs from Template

type VirtualRouter

type VirtualRouter struct {
	XMLName     xml.Name            `xml:"VROUTER"`
	ID          int                 `xml:"ID,omitempty"`
	UID         int                 `xml:"UID,omitempty"`
	GID         int                 `xml:"GID,omitempty"`
	UName       string              `xml:"UNAME,omitempty"`
	GName       string              `xml:"GNAME,omitempty"`
	Name        string              `xml:"NAME"`
	LockInfos   *shared.Lock        `xml:"LOCK,omitempty"`
	Permissions *shared.Permissions `xml:"PERMISSIONS,omitempty"`
	Type        *int                `xml:"TYPE,omitempty"`
	DiskType    *int                `xml:"DISK_TYPE,omitempty"`
	Persistent  int                 `xml:"PERSISTENT,omitempty"`
	VMs         shared.EntitiesID   `xml:"VMS,omitempty"`
	Template    Template            `xml:"TEMPLATE"`
}

VirtualRouter represents an OpenNebula VirtualRouter

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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