volumeSpec

package
v1.1.68-test Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2026 License: MIT Imports: 4 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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

Jump to

Keyboard shortcuts

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