infrapi

package
v0.10.1 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2024 License: MPL-2.0 Imports: 6 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BillingModel

type BillingModel = rules.BillingModel

type CAVVDC

type CAVVDC struct{}

func (*CAVVDC) Get

func (v *CAVVDC) Get(vdcName string) (*CAVVirtualDataCenter, error)

Get VDC - Return the VDC Object

func (*CAVVDC) List

func (v *CAVVDC) List() (*VDCs, error)

List - Return the list of VDCs

func (*CAVVDC) New

func (v *CAVVDC) New(value *CAVVirtualDataCenter) (vdc *CAVVirtualDataCenter, err error)

New - Create a new VDC

type CAVVirtualDataCenter

type CAVVirtualDataCenter struct {
	VDCGroup string                  `json:"vdcGroup,omitempty"`
	VDC      CAVVirtualDataCenterVDC `json:"vdc"`
}

func (*CAVVirtualDataCenter) AddStorageProfile

func (v *CAVVirtualDataCenter) AddStorageProfile(storageProfile StorageProfile)

AddStorageProfile - Add a storage profile

func (*CAVVirtualDataCenter) Delete

func (v *CAVVirtualDataCenter) Delete() (job *commoncloudavenue.JobStatus, err error)

Delete - Delete the VDC

func (*CAVVirtualDataCenter) GetBillingModel

func (v *CAVVirtualDataCenter) GetBillingModel() BillingModel

GetBillingModel - Return the VDC billing model

func (*CAVVirtualDataCenter) GetCPUAllocated

func (v *CAVVirtualDataCenter) GetCPUAllocated() int

GetCPUAllocated - Return the VDC cpu allocated

func (*CAVVirtualDataCenter) GetDescription

func (v *CAVVirtualDataCenter) GetDescription() string

GetDescription - Return the VDC description

func (*CAVVirtualDataCenter) GetDisponibilityClass

func (v *CAVVirtualDataCenter) GetDisponibilityClass() DisponibilityClass

GetDisponibilityClass - Return the VDC disponibility class

func (*CAVVirtualDataCenter) GetMemoryAllocated

func (v *CAVVirtualDataCenter) GetMemoryAllocated() int

GetMemoryAllocated - Return the VDC memory allocated

func (*CAVVirtualDataCenter) GetName

func (v *CAVVirtualDataCenter) GetName() string

GetName - Return the VDC name

func (*CAVVirtualDataCenter) GetServiceClass

func (v *CAVVirtualDataCenter) GetServiceClass() ServiceClass

GetServiceClass - Return the VDC service class

func (*CAVVirtualDataCenter) GetStorageBillingModel

func (v *CAVVirtualDataCenter) GetStorageBillingModel() BillingModel

GetStorageBillingModel - Return the VDC storage billing model

func (*CAVVirtualDataCenter) GetStorageProfiles

func (v *CAVVirtualDataCenter) GetStorageProfiles() []StorageProfile

GetStorageProfiles - Return the VDC storage profiles

func (*CAVVirtualDataCenter) GetVCPUInMhz

func (v *CAVVirtualDataCenter) GetVCPUInMhz() int

GetVCPUInMhz - Return the VDC vcpu in mhz2

func (*CAVVirtualDataCenter) GetVDCGroup

func (v *CAVVirtualDataCenter) GetVDCGroup() string

GetVdcGroup - Return the VDC vdc group

func (*CAVVirtualDataCenter) GetVMwareObject

func (v *CAVVirtualDataCenter) GetVMwareObject() (*govcd.Vdc, error)

GetVMwareObject - Return the VMware object

func (*CAVVirtualDataCenter) IsValid

func (v *CAVVirtualDataCenter) IsValid(isUpdate bool) error

IsValid - Check if everythings is valid

func (*CAVVirtualDataCenter) RemoveStorageProfile

func (v *CAVVirtualDataCenter) RemoveStorageProfile(storageProfile StorageProfile)

RemoveStorageProfile - Remove a storage profile

func (*CAVVirtualDataCenter) Set

Set - Set the VDC

func (*CAVVirtualDataCenter) SetCPUAllocated

func (v *CAVVirtualDataCenter) SetCPUAllocated(cpuAllocated int)

SetCPUAllocated - Set the VDC cpu allocated

func (*CAVVirtualDataCenter) SetDescription

func (v *CAVVirtualDataCenter) SetDescription(description string)

SetDescription - Set the VDC description

func (*CAVVirtualDataCenter) SetMemoryAllocated

func (v *CAVVirtualDataCenter) SetMemoryAllocated(memoryAllocated int)

SetMemoryAllocated - Set the VDC memory allocated

func (*CAVVirtualDataCenter) SetName

func (v *CAVVirtualDataCenter) SetName(name string) error

SetName - Set the VDC name Name respects the following regex: ^[a-zA-Z0-9-_]{1,64}$

func (*CAVVirtualDataCenter) SetStorageProfiles

func (v *CAVVirtualDataCenter) SetStorageProfiles(storageProfiles []StorageProfile)

SetStorageProfiles - Set the VDC storage profiles

func (*CAVVirtualDataCenter) SetVCPUInMhz

func (v *CAVVirtualDataCenter) SetVCPUInMhz(vcpuInMhz int)

SetVCPUInMhz - Set the VDC vcpu in mhz

func (*CAVVirtualDataCenter) Update

func (v *CAVVirtualDataCenter) Update() (err error)

Update - Update the VDC

type CAVVirtualDataCenterVDC

type CAVVirtualDataCenterVDC struct {
	Name                string             `json:"name"`
	Description         string             `json:"description"`
	ServiceClass        ServiceClass       `json:"vdcServiceClass"`
	DisponibilityClass  DisponibilityClass `json:"vdcDisponibilityClass"`
	BillingModel        BillingModel       `json:"vdcBillingModel"`
	VCPUInMhz           int                `json:"vcpuInMhz2"`
	CPUAllocated        int                `json:"cpuAllocated"`
	MemoryAllocated     int                `json:"memoryAllocated"`
	StorageBillingModel BillingModel       `json:"vdcStorageBillingModel"`
	StorageProfiles     []StorageProfile   `json:"vdcStorageProfiles,omitempty"`
}

type DisponibilityClass

type DisponibilityClass = rules.DisponibilityClass

type ServiceClass

type ServiceClass = rules.ServiceClass

type StorageBillingModel

type StorageBillingModel = rules.BillingModel

type StorageProfile

type StorageProfile struct {
	Class   StorageProfileClass `json:"class"`
	Limit   int                 `json:"limit"`
	Default bool                `json:"default"`
}

type StorageProfileClass

type StorageProfileClass = rules.StorageProfileClass

type VDCs

type VDCs []CAVVirtualDataCenter

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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