volumeSet

package
v1.1.60-test Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2026 License: MIT Imports: 1 Imported by: ? modules, 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 CustomEncryptionRegion

type CustomEncryptionRegion struct {
	KeyId string `json:"keyId,omitempty"`
}

type FileSystem

type FileSystem struct {
	Name              string   `json:"name"`
	AccessMode        string   `json:"accessMode"`
	CommandsSupported []string `json:"commandsSupported,omitempty"`
}

type FileSystemType

type FileSystemType string
const (
	FileSystemTypeExt4   FileSystemType = "ext4"
	FileSystemTypeXfs    FileSystemType = "xfs"
	FileSystemTypeShared FileSystemType = "shared"
)

type MountResources

type MountResources struct {
	MaxCpu    string `json:"maxCpu,omitempty"`
	MinCpu    string `json:"minCpu,omitempty"`
	MinMemory string `json:"minMemory,omitempty"`
	MaxMemory string `json:"maxMemory,omitempty"`
}

type PerformanceClass

type PerformanceClass struct {
	Name              string                              `json:"name"`
	MinCapacity       float32                             `json:"minCapacity"`
	MaxCapacity       float32                             `json:"maxCapacity"`
	FeaturesSupported []PerformanceClassFeaturesSupported `json:"featuresSupported,omitempty"`
}

type PerformanceClassFeaturesSupported

type PerformanceClassFeaturesSupported string
const (
	PerformanceClassFeaturesSupportedAutomaticExpansion PerformanceClassFeaturesSupported = "automatic-expansion"
	PerformanceClassFeaturesSupportedSnapshots          PerformanceClassFeaturesSupported = "snapshots"
)

type PerformanceClassName

type PerformanceClassName string
const (
	PerformanceClassNameGeneralPurposeSsd PerformanceClassName = "general-purpose-ssd"
	PerformanceClassNameHighThroughputSsd PerformanceClassName = "high-throughput-ssd"
	PerformanceClassNameShared            PerformanceClassName = "shared"
)

type PersistentVolumeStatus

type PersistentVolumeStatus struct {
	Lifecycle           PersistentVolumeStatusLifecycle  `json:"lifecycle,omitempty"`
	StorageDeviceId     string                           `json:"storageDeviceId,omitempty"`
	OldStorageDeviceIds []string                         `json:"oldStorageDeviceIds,omitempty"`
	ResourceName        string                           `json:"resourceName,omitempty"`
	Index               float32                          `json:"index"`
	CurrentSize         float32                          `json:"currentSize"`
	CurrentBytesUsed    *float32                         `json:"currentBytesUsed,omitempty"`
	CurrentBytesFree    *float32                         `json:"currentBytesFree,omitempty"`
	Iops                *float32                         `json:"iops,omitempty"`
	Throughput          *float32                         `json:"throughput,omitempty"`
	Driver              string                           `json:"driver"`
	DiskType            PersistentVolumeStatusDiskType   `json:"diskType,omitempty"`
	VolumeSnapshots     []VolumeSnapshot                 `json:"volumeSnapshots,omitempty"`
	Attributes          PersistentVolumeStatusAttributes `json:"attributes,omitempty"`
	Zone                string                           `json:"zone,omitempty"`
	Node                string                           `json:"node,omitempty"`
}

type PersistentVolumeStatusAttributes

type PersistentVolumeStatusAttributes map[string]string

type PersistentVolumeStatusDiskType added in v1.1.22

type PersistentVolumeStatusDiskType string
const (
	PersistentVolumeStatusDiskTypeGp3                PersistentVolumeStatusDiskType = "gp3"
	PersistentVolumeStatusDiskTypePdBalanced         PersistentVolumeStatusDiskType = "pd-balanced"
	PersistentVolumeStatusDiskTypePdSsd              PersistentVolumeStatusDiskType = "pd-ssd"
	PersistentVolumeStatusDiskTypeHyperdiskBalanced  PersistentVolumeStatusDiskType = "hyperdisk-balanced"
	PersistentVolumeStatusDiskTypePremiumV2Lrs       PersistentVolumeStatusDiskType = "PremiumV2_LRS"
	PersistentVolumeStatusDiskTypeDoBlockStorage     PersistentVolumeStatusDiskType = "do-block-storage"
	PersistentVolumeStatusDiskTypeHcloudVolume       PersistentVolumeStatusDiskType = "hcloud-volume"
	PersistentVolumeStatusDiskTypeLinodeBlockStorage PersistentVolumeStatusDiskType = "linode-block-storage"
	PersistentVolumeStatusDiskTypeOciBvBalanced      PersistentVolumeStatusDiskType = "oci-bv-balanced"
	PersistentVolumeStatusDiskTypeJuicefs            PersistentVolumeStatusDiskType = "juicefs"
	PersistentVolumeStatusDiskTypeHostpath           PersistentVolumeStatusDiskType = "hostpath"
)

type PersistentVolumeStatusLifecycle

type PersistentVolumeStatusLifecycle string
const (
	PersistentVolumeStatusLifecycleCreating  PersistentVolumeStatusLifecycle = "creating"
	PersistentVolumeStatusLifecycleUnused    PersistentVolumeStatusLifecycle = "unused"
	PersistentVolumeStatusLifecycleUnbound   PersistentVolumeStatusLifecycle = "unbound"
	PersistentVolumeStatusLifecycleBound     PersistentVolumeStatusLifecycle = "bound"
	PersistentVolumeStatusLifecycleDeleted   PersistentVolumeStatusLifecycle = "deleted"
	PersistentVolumeStatusLifecycleRepairing PersistentVolumeStatusLifecycle = "repairing"
)

type SnapshotSpec

type SnapshotSpec struct {
	CreateFinalSnapshot bool   `json:"createFinalSnapshot,omitempty"`
	RetentionDuration   string `json:"retentionDuration,omitempty"`
	Schedule            string `json:"schedule,omitempty"`
}

type VolumeSet

type VolumeSet struct {
	Id           string          `json:"id,omitempty"`
	Name         base.Name       `json:"name,omitempty"`
	Kind         base.Kind       `json:"kind,omitempty"`
	Version      *float32        `json:"version,omitempty"`
	Description  string          `json:"description,omitempty"`
	Tags         VolumeSetTags   `json:"tags,omitempty"`
	Created      string          `json:"created,omitempty"`
	LastModified string          `json:"lastModified,omitempty"`
	Links        base.Links      `json:"links,omitempty"`
	Spec         VolumeSetSpec   `json:"spec"`
	Status       VolumeSetStatus `json:"status,omitempty"`
	Gvc          any             `json:"gvc,omitempty"`
}

type VolumeSetSpec

type VolumeSetSpec struct {
	InitialCapacity    float32                        `json:"initialCapacity"`
	PerformanceClass   PerformanceClassName           `json:"performanceClass,omitempty"`
	StorageClassSuffix string                         `json:"storageClassSuffix,omitempty"`
	FileSystemType     FileSystemType                 `json:"fileSystemType,omitempty"`
	CustomEncryption   *VolumeSetSpecCustomEncryption `json:"customEncryption,omitempty"`
	Snapshots          *SnapshotSpec                  `json:"snapshots,omitempty"`
	Autoscaling        *VolumeSetSpecAutoscaling      `json:"autoscaling,omitempty"`
	MountOptions       *VolumeSetSpecMountOptions     `json:"mountOptions,omitempty"`
}

type VolumeSetSpecAutoscaling

type VolumeSetSpecAutoscaling struct {
	MaxCapacity       *float32                            `json:"maxCapacity,omitempty"`
	MinFreePercentage *float32                            `json:"minFreePercentage,omitempty"`
	ScalingFactor     *float32                            `json:"scalingFactor,omitempty"`
	Predictive        *VolumeSetSpecAutoscalingPredictive `json:"predictive,omitempty"`
}

type VolumeSetSpecAutoscalingPredictive

type VolumeSetSpecAutoscalingPredictive struct {
	Enabled                bool     `json:"enabled,omitempty"`
	LookbackHours          *float32 `json:"lookbackHours,omitempty"`
	ProjectionHours        *float32 `json:"projectionHours,omitempty"`
	MinDataPoints          *float32 `json:"minDataPoints,omitempty"`
	MinGrowthRateGBPerHour *float32 `json:"minGrowthRateGBPerHour,omitempty"`
	ScalingFactor          *float32 `json:"scalingFactor,omitempty"`
}

type VolumeSetSpecCustomEncryption

type VolumeSetSpecCustomEncryption struct {
	Regions VolumeSetSpecCustomEncryptionRegions `json:"regions,omitempty"`
}

type VolumeSetSpecCustomEncryptionRegions

type VolumeSetSpecCustomEncryptionRegions map[string]CustomEncryptionRegion

type VolumeSetSpecMountOptions

type VolumeSetSpecMountOptions struct {
	Resources VolumeSetSpecMountOptionsResources `json:"resources,omitempty"`
}

type VolumeSetSpecMountOptionsResources

type VolumeSetSpecMountOptionsResources struct {
	MaxCpu    string `json:"maxCpu,omitempty"`
	MinCpu    string `json:"minCpu,omitempty"`
	MinMemory string `json:"minMemory,omitempty"`
	MaxMemory string `json:"maxMemory,omitempty"`
}

type VolumeSetStatus

type VolumeSetStatus struct {
	ParentId       string                    `json:"parentId,omitempty"`
	UsedByWorkload string                    `json:"usedByWorkload,omitempty"`
	WorkloadLinks  []string                  `json:"workloadLinks,omitempty"`
	BindingId      string                    `json:"bindingId,omitempty"`
	Locations      []VolumeSetStatusLocation `json:"locations,omitempty"`
}

type VolumeSetStatusLocation

type VolumeSetStatusLocation struct {
	Name               string                   `json:"name"`
	Volumes            []PersistentVolumeStatus `json:"volumes,omitempty"`
	DesiredVolumeCount *float32                 `json:"desiredVolumeCount,omitempty"`
	ClusterId          string                   `json:"clusterId,omitempty"`
}

type VolumeSetTags

type VolumeSetTags map[string]any

type VolumeSnapshot

type VolumeSnapshot struct {
	Name    string               `json:"name"`
	Id      string               `json:"id,omitempty"`
	Created string               `json:"created"`
	Expires string               `json:"expires,omitempty"`
	Size    *float32             `json:"size,omitempty"`
	Tags    []VolumeSnapshotTags `json:"tags,omitempty"`
}

type VolumeSnapshotTags

type VolumeSnapshotTags map[string]string

Jump to

Keyboard shortcuts

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