Documentation ¶
Index ¶
- type BillingModel
- type CAVVDC
- type CAVVirtualDataCenter
- func (v *CAVVirtualDataCenter) AddStorageProfile(storageProfile StorageProfile)
- func (v *CAVVirtualDataCenter) Delete(ctx context.Context) (err error)
- func (v *CAVVirtualDataCenter) GetBillingModel() BillingModel
- func (v *CAVVirtualDataCenter) GetCPUAllocated() int
- func (v *CAVVirtualDataCenter) GetDescription() string
- func (v *CAVVirtualDataCenter) GetDisponibilityClass() DisponibilityClass
- func (v *CAVVirtualDataCenter) GetMemoryAllocated() int
- func (v *CAVVirtualDataCenter) GetName() string
- func (v *CAVVirtualDataCenter) GetServiceClass() ServiceClass
- func (v *CAVVirtualDataCenter) GetStorageBillingModel() BillingModel
- func (v *CAVVirtualDataCenter) GetStorageProfiles() []StorageProfile
- func (v *CAVVirtualDataCenter) GetVCPUInMhz() int
- func (v *CAVVirtualDataCenter) GetVDCGroup() string
- func (v *CAVVirtualDataCenter) GetVMwareObject() (*govcd.Vdc, error)
- func (v *CAVVirtualDataCenter) IsValid(isUpdate bool) error
- func (v *CAVVirtualDataCenter) RemoveStorageProfile(storageProfile StorageProfile)
- func (v *CAVVirtualDataCenter) Set(vdc *CAVVirtualDataCenter)
- func (v *CAVVirtualDataCenter) SetCPUAllocated(cpuAllocated int)
- func (v *CAVVirtualDataCenter) SetDescription(description string)
- func (v *CAVVirtualDataCenter) SetMemoryAllocated(memoryAllocated int)
- func (v *CAVVirtualDataCenter) SetName(name string) error
- func (v *CAVVirtualDataCenter) SetStorageProfiles(storageProfiles []StorageProfile)
- func (v *CAVVirtualDataCenter) SetVCPUInMhz(vcpuInMhz int)
- func (v *CAVVirtualDataCenter) Update(ctx context.Context) (err error)
- type CAVVirtualDataCenterVDC
- type DisponibilityClass
- type ServiceClass
- type StorageBillingModel
- type StorageProfile
- type StorageProfileClass
- type VDCs
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) New ¶
func (v *CAVVDC) New(ctx context.Context, 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(ctx context.Context) (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 ¶
func (v *CAVVirtualDataCenter) Set(vdc *CAVVirtualDataCenter)
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
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