Documentation ¶
Index ¶
- Variables
- func BusNumberAttribute() schema.Attribute
- func BusNumberAttributeComputed() schema.Attribute
- func BusNumberAttributeRequired() schema.Attribute
- func BusTypeAttribute() schema.Attribute
- func BusTypeAttributeComputed() schema.Attribute
- func BusTypeAttributeRequired() schema.Attribute
- func ComputeBusAndUnitNumber(disks []*govcdtypes.DiskSettings) (busNumber, unitNumber int)
- func SizeInMBAttribute() schema.Attribute
- func SizeInMBAttributeComputed() schema.Attribute
- func SizeInMBAttributeRequired() schema.Attribute
- func StorageProfileAttribute() schema.Attribute
- func StorageProfileAttributeComputed() schema.Attribute
- func StorageProfileAttributeRequired() schema.Attribute
- func UnitNumberAttribute() schema.Attribute
- func UnitNumberAttributeComputed() schema.Attribute
- func UnitNumberAttributeRequired() schema.Attribute
- type BusType
Constants ¶
This section is empty.
Variables ¶
var ( BusTypeIDE = BusType{/* contains filtered or unexported fields */} // Bus type IDE BusTypeSATA = BusType{/* contains filtered or unexported fields */} // Bus type SATA BusTypeSCSI = BusType{/* contains filtered or unexported fields */} // Bus type SCSI BusTypeNVME = BusType{/* contains filtered or unexported fields */} // Bus type NVME )
var ListOfBusTypes = []string{BusTypeIDE.Name(), BusTypeSATA.Name(), BusTypeSCSI.Name(), BusTypeNVME.Name()}
var StorageProfileValues = []string{
storageProfileSilver.String(),
storageProfileSilverR1.String(),
storageProfileSilverR2.String(),
storageProfileGold.String(),
storageProfileGoldR1.String(),
storageProfileGoldR2.String(),
storageProfileGoldHM.String(),
storageProfilePlatinum3.String(),
storageProfilePlatinum3R1.String(),
storageProfilePlatinum3R2.String(),
storageProfilePlatinum3HM.String(),
storageProfilePlatinum7.String(),
storageProfilePlatinum7R1.String(),
storageProfilePlatinum7R2.String(),
storageProfilePlatinum7HM.String(),
}
Functions ¶
func BusNumberAttribute ¶
BusNumberAttribute
returns a schema.Attribute with a value. if value is not set, the api try to compute value automaticaly.
func BusNumberAttributeComputed ¶
BusNumberAttributeComputed returns a schema.Attribute with a computed value.
func BusNumberAttributeRequired ¶
BusNumberAttributeRequired returns a schema.Attribute with a required value.
func BusTypeAttribute ¶
BusTypeAttribute
returns a schema.Attribute with a value.
This is Optional and has a default value of busTypeSCSI.String().
func BusTypeAttributeComputed ¶
BusTypeAttributeComputed returns a schema.Attribute with a computed value.
func BusTypeAttributeRequired ¶
BusTypeAttributeRequired returns a schema.Attribute with a required value.
func ComputeBusAndUnitNumber ¶
func ComputeBusAndUnitNumber(disks []*govcdtypes.DiskSettings) (busNumber, unitNumber int)
Max BusNumber is 4 (0,1,2,3) Max UnitNumber is 16 (0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15)
Compute BusNumber and UnitNumber ¶
if busNumber is not set, the api try to compute value automaticaly.
func SizeInMBAttributeComputed ¶
SizeInMBAttributeComputed returns a schema.Attribute with a computed value.
func SizeInMBAttributeRequired ¶
SizeInMBAttributeRequired returns a schema.Attribute with a required value.
func StorageProfileAttribute ¶
StorageProfileAttribute returns the schema.Attribute for the storage profile.
func StorageProfileAttributeComputed ¶
StorageProfileAttributeComputed returns the schema.Attribute for the storage profile.
func StorageProfileAttributeRequired ¶
StorageProfileAttributeRequired returns the schema.Attribute for the storage profile.
func UnitNumberAttribute ¶
UnitNumberAttribute
returns a schema.Attribute with a value. if value is not set, the api try to compute value automaticaly.
func UnitNumberAttributeComputed ¶
UnitNumberAttributeComputed returns a schema.Attribute with a computed value.
func UnitNumberAttributeRequired ¶
UnitNumberAttributeRequired returns a schema.Attribute with a required value.
Types ¶
type BusType ¶ added in v0.3.0
type BusType struct {
// contains filtered or unexported fields
}