ovirt

package
v0.0.0-...-e73b65a Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MaxDetail = base.MaxDetail
)

Variables

View Source
var (
	DataCenterKind  = libref.ToKind(DataCenter{})
	VNICProfileKind = libref.ToKind(NICProfile{})
	ClusterKind     = libref.ToKind(Cluster{})
	HostKind        = libref.ToKind(Host{})
	NetKind         = libref.ToKind(Network{})
	StorageKind     = libref.ToKind(StorageDomain{})
	DiskKind        = "Disk" // TODO: UPDATE WITH MODEL.
	VmKind          = libref.ToKind(VM{})
)

Kinds

View Source
var NotFound = libmodel.NotFound

Errors

Functions

func All

func All() []interface{}

Build all models.

Types

type Base

type Base struct {
	// Managed object ID.
	ID string `sql:"pk"`
	// Name
	Name string `sql:"d0,index(name)"`
	// Revision
	Description string `sql:"d0"`
	// Revision
	Revision int64 `sql:"incremented,d0,index(revision)"`
}

Base oVirt model.

func (*Base) Pk

func (m *Base) Pk() string

Get the PK.

func (*Base) String

func (m *Base) String() string

String representation.

type BranchNavigator

type BranchNavigator = base.BranchNavigator

type CDROM

type CDROM struct {
	ID   string `json:"id"`
	File string `json:"file,omitempty"`
}

type Cluster

type Cluster struct {
	Base
	DataCenter    string `sql:"d0,fk(dataCenter +cascade)"`
	HaReservation bool   `sql:""`
	KsmEnabled    bool   `sql:""`
	BiosType      string `sql:""`
}

type Concern

type Concern = base.Concern

type CpuPinning

type CpuPinning struct {
	Set int32 `json:"set"`
	Cpu int32 `json:"cpu"`
}

type DataCenter

type DataCenter struct {
	Base
}

type Disk

type Disk struct {
	Base
	Shared          bool   `sql:""`
	Profile         string `sql:"index(profile)"`
	StorageDomain   string `sql:"fk(storageDomain +cascade)"`
	Status          string `sql:""`
	ActualSize      int64  `sql:""`
	Backup          string `sql:""`
	StorageType     string `sql:""`
	ProvisionedSize int64  `sql:""`
}

type DiskAttachment

type DiskAttachment struct {
	ID              string `json:"id"`
	Interface       string `json:"interface"`
	SCSIReservation bool   `json:"scsiReservation"`
	Disk            string `json:"disk"`
}

type DiskProfile

type DiskProfile struct {
	Base
	StorageDomain string `sql:"d0,fk(storageDomain +cascade)"`
	QoS           string `sql:""`
}

type Guest

type Guest struct {
	Distribution string `json:"distribution"`
	FullVersion  string `json:"fullVersion"`
}

type Host

type Host struct {
	Base
	Cluster            string              `sql:"d0,fk(cluster +cascade)"`
	Status             string              `sql:""`
	ProductName        string              `sql:""`
	ProductVersion     string              `sql:""`
	InMaintenance      bool                `sql:""`
	CpuSockets         int16               `sql:""`
	CpuCores           int16               `sql:""`
	NetworkAttachments []NetworkAttachment `sql:""`
	NICs               []HostNIC           `sql:""`
}

type HostDevice

type HostDevice struct {
	Capability string `json:"capability"`
	Product    string `json:"product"`
	Vendor     string `json:"vendor"`
}

type HostNIC

type HostNIC struct {
	ID        string `json:"id"`
	Name      string `json:"name"`
	LinkSpeed int64  `json:"linkSpeed"`
	MTU       int64  `json:"mtu"`
	VLan      string `json:"vlan"`
}

type InvalidRefError

type InvalidRefError = base.InvalidRefError

type IpAddress

type IpAddress struct {
	Address string `json:"address"`
	Version string `json:"version"`
}

type ListOptions

type ListOptions = base.ListOptions

type Model

type Model = base.Model

Types

type NIC

type NIC struct {
	ID        string      `json:"id"`
	Name      string      `json:"name"`
	Interface string      `json:"interface"`
	Plugged   bool        `json:"plugged"`
	IpAddress []IpAddress `json:"ipAddress"`
	Profile   string      `json:"profile"`
	MAC       string      `json:"mac"`
}

type NICProfile

type NICProfile struct {
	Base
	Network       string     `sql:"d0,fk(network +cascade)"`
	PortMirroring bool       `sql:""`
	NetworkFilter string     `sql:""`
	QoS           string     `sql:""`
	Properties    []Property `sql:""`
	PassThrough   bool       `sql:""`
}

type Network

type Network struct {
	Base
	DataCenter string   `sql:"d0,fk(dataCenter +cascade)"`
	VLan       string   `sql:""`
	Usages     []string `sql:""`
	Profiles   []string `sql:""`
}

type NetworkAttachment

type NetworkAttachment struct {
	ID      string `json:"id"`
	Network string `json:"network"`
}

type ParentNavigator

type ParentNavigator = base.ParentNavigator

type Property

type Property struct {
	Name  string `json:"name"`
	Value string `json:"value"`
}

type Ref

type Ref = base.Ref

type Snapshot

type Snapshot struct {
	ID            string `json:"id"`
	Description   string `json:"description"`
	Type          string `json:"type"`
	PersistMemory bool   `json:"persistMemory"`
}

type StorageDomain

type StorageDomain struct {
	Base
	DataCenter string `sql:"d0,fk(dataCenter +cascade)"`
	Type       string `sql:""`
	Storage    struct {
		Type string
	} `sql:""`
	Available int64 `sql:""`
	Used      int64 `sql:""`
}

type Tree

type Tree = base.Tree

Types.

type TreeNode

type TreeNode = base.TreeNode

type VM

type VM struct {
	Base
	Cluster                     string           `sql:"d0,fk(cluster +cascade)"`
	Host                        string           `sql:"d0,index(host)"`
	RevisionValidated           int64            `sql:"d0,index(revisionValidated)" eq:"-"`
	PolicyVersion               int              `sql:"d0,index(policyVersion)" eq:"-"`
	GuestName                   string           `sql:""`
	CpuSockets                  int16            `sql:""`
	CpuCores                    int16            `sql:""`
	CpuThreads                  int16            `sql:""`
	CpuAffinity                 []CpuPinning     `sql:""`
	CpuShares                   int16            `sql:""`
	Memory                      int64            `sql:""`
	BalloonedMemory             bool             `sql:""`
	BIOS                        string           `sql:""`
	Display                     string           `sql:""`
	IOThreads                   int16            `sql:""`
	StorageErrorResumeBehaviour string           `sql:""`
	HaEnabled                   bool             `sql:""`
	UsbEnabled                  bool             `sql:""`
	BootMenuEnabled             bool             `sql:""`
	PlacementPolicyAffinity     string           `sql:""`
	Timezone                    string           `sql:""`
	Status                      string           `sql:""`
	Stateless                   string           `sql:""`
	SerialNumber                string           `sql:""`
	HasIllegalImages            bool             `sql:""`
	NumaNodeAffinity            []string         `sql:""`
	LeaseStorageDomain          string           `sql:""`
	DiskAttachments             []DiskAttachment `sql:""`
	NICs                        []NIC            `sql:""`
	HostDevices                 []HostDevice     `sql:""`
	CDROMs                      []CDROM          `sql:""`
	WatchDogs                   []WatchDog       `sql:""`
	Properties                  []Property       `sql:""`
	Snapshots                   []Snapshot       `sql:""`
	Concerns                    []Concern        `sql:"" eq:"-"`
	Guest                       Guest            `sql:""`
	OSType                      string           `sql:""`
}

func (*VM) Validated

func (m *VM) Validated() bool

Determine if current revision has been validated.

type WatchDog

type WatchDog struct {
	ID     string `json:"id"`
	Action string `json:"action"`
	Model  string `json:"model"`
}

Jump to

Keyboard shortcuts

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