Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type VolumeSpec ¶
type VolumeSpec struct {
Uri VolumeSpecUri `json:"uri" validate:"required"`
RecoveryPolicy VolumeSpecRecoveryPolicy `json:"recoveryPolicy,omitzero" validate:"default=retain"`
Path VolumeSpecPath `json:"path,omitzero"`
Name VolumeSpecName `json:"name,omitzero" validate:"max=63"`
Bus VolumeSpecBus `json:"bus,omitzero"`
BootOrder *float64 `json:"bootOrder,omitzero" validate:"integer,min=1,max=16"`
}
type VolumeSpecBus ¶ added in v1.1.14
type VolumeSpecBus string
const ( VolumeSpecBusVirtio VolumeSpecBus = "virtio" VolumeSpecBusSata VolumeSpecBus = "sata" VolumeSpecBusScsi VolumeSpecBus = "scsi" )
func (VolumeSpecBus) EnumValues ¶
func (VolumeSpecBus) EnumValues() []string
type VolumeSpecName ¶
type VolumeSpecName string
VolumeSpecName is the strongly-typed replacement for the `pattern=volName` tag on VolumeSpec.Name (the max=63 modifier stays on the field tag).
func (VolumeSpecName) ValidationRule ¶
func (VolumeSpecName) ValidationRule() *validate.Rule
type VolumeSpecPath ¶
type VolumeSpecPath string
VolumeSpecPath is the strongly-typed replacement for the `custom=volPath` tag on VolumeSpec.Path.
func (VolumeSpecPath) ValidationRule ¶
func (VolumeSpecPath) ValidationRule() *validate.Rule
type VolumeSpecRecoveryPolicy ¶
type VolumeSpecRecoveryPolicy string
const ( VolumeSpecRecoveryPolicyRetain VolumeSpecRecoveryPolicy = "retain" VolumeSpecRecoveryPolicyRecycle VolumeSpecRecoveryPolicy = "recycle" )
func (VolumeSpecRecoveryPolicy) EnumValues ¶
func (VolumeSpecRecoveryPolicy) EnumValues() []string
type VolumeSpecUri ¶
type VolumeSpecUri string
VolumeSpecUri is the strongly-typed replacement for the `custom=volUriRef,custom=volUri` tag on VolumeSpec.Uri. The two customs run in declaration order: the generic internal-reference check, then the URI scheme check.
func (VolumeSpecUri) ValidationRule ¶
func (VolumeSpecUri) ValidationRule() *validate.Rule