volumeSet

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2025 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FileSystem

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

type FileSystemType

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

type PerformanceClass

type PerformanceClass struct {
	Name              string                              `json:"name,omitempty"`
	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"`
	Iops                float32                          `json:"iops"`
	Throughput          float32                          `json:"throughput"`
	Driver              string                           `json:"driver,omitempty"`
	VolumeSnapshots     []VolumeSnapshot                 `json:"volumeSnapshots,omitempty"`
	Attributes          PersistentVolumeStatusAttributes `json:"attributes,omitempty"`
}

type PersistentVolumeStatusAttributes

type PersistentVolumeStatusAttributes map[string]string

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"`
	Description  string          `json:"description,omitempty"`
	Tags         base.Tags       `json:"tags,omitempty"`
	Created      string          `json:"created,omitempty"`
	LastModified string          `json:"lastModified,omitempty"`
	Links        base.Links      `json:"links,omitempty"`
	Spec         VolumeSetSpec   `json:"spec,omitempty"`
	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"`
	Snapshots          SnapshotSpec             `json:"snapshots,omitempty"`
	Autoscaling        VolumeSetSpecAutoscaling `json:"autoscaling,omitempty"`
}

type VolumeSetSpecAutoscaling

type VolumeSetSpecAutoscaling struct {
	MaxCapacity       float32 `json:"maxCapacity"`
	MinFreePercentage float32 `json:"minFreePercentage"`
	ScalingFactor     float32 `json:"scalingFactor"`
}

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,omitempty"`
	Volumes            []PersistentVolumeStatus `json:"volumes,omitempty"`
	DesiredVolumeCount float32                  `json:"desiredVolumeCount"`
	ClusterId          string                   `json:"clusterId,omitempty"`
}

type VolumeSnapshot

type VolumeSnapshot struct {
	Name    string               `json:"name,omitempty"`
	Id      string               `json:"id,omitempty"`
	Created string               `json:"created,omitempty"`
	Expires string               `json:"expires,omitempty"`
	Size    float32              `json:"size"`
	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