Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Volume ¶
type Volume struct { // The uuid of the volume, it's unique in the context and generated by system // on successful creation of the volume. It's not allowed to be modified by // the user. // +readOnly Id bson.ObjectId `json:"id,omitempty" bson:"_id,omitempty"` // CreatedAt representing the server time when the object was created successfully. // Now, it's represented as a time string in RFC8601 format. // +readOnly CreatedAt string `json:"createdAt,omitempty" bson:"createdAt,omitempty"` // UpdatedAt representing the server time when the object was updated successfully. // Now, it's represented as a time string in RFC8601 format. // +readOnly UpdatedAt string `json:"updatedAt,omitempty" bson:"updatedAt,omitempty"` // The uuid of the project that the volume belongs to. TenantId string `json:"tenantId,omitempty" bson:"tenantId,omitempty"` // The uuid of the user that the volume belongs to. // +optional UserId string `json:"userId,omitempty" bson:"userId,omitempty"` // The uuid of the backend that the volume belongs to. BackendId string `json:"backendId,omitempty" bson:"backendId,omitempty"` // The name of the backend that the volume belongs to. // +optional Backend string `json:"backend,omitempty" bson:"backend,omitempty"` // The name of the volume. Name string `json:"name,omitempty" bson:"name,omitempty"` // The description of the volume. // +optional Description string `json:"description,omitempty" bson:"description,omitempty"` // The type of the volume. Type string `json:"type,omitempty" bson:"type,omitempty"` // The size of the volume requested by the user. // Default unit of volume Size is GB. Size *int64 `json:"size,omitempty" bson:"size,omitempty"` // The location that volume belongs to. Region string `json:"region,omitempty" bson:"region,omitempty"` // The locality that volume belongs to. AvailabilityZone string `json:"availabilityZone,omitempty" bson:"availabilityZone,omitempty"` // The status of the volume. Status string `json:"status,omitempty" bson:"status,omitempty"` // The iops of the volume. Iops int64 `json:"iops,omitempty" bson:"iops,omitempty"` // The uuid of the snapshot which the volume is created. // +optional SnapshotId string `json:"snapshotId,omitempty" bson:"snapshotId,omitempty"` // Any tags assigned to the volume. Tags []Tag `json:"tags,omitempty" bson:"tags,omitempty"` // Indicates whether Multi-Attach is enabled. // +optional MultiAttach bool `json:"multiAttachEnabled,omitempty" bson:"multiAttachEnabled,omitempty"` // Indicates whether the volume is encrypted. // +optional Encrypted *bool `json:"encrypted,omitempty" bson:"encrypted,omitempty"` // EncryptionSettings that was used to protect the volume encryption. // +optional EncryptionSettings map[string]string `json:"encryptionSettings,omitempty" bson:"encryptionSettings,omitempty"` // Metadata should be kept until the semantics between volume and backend storage resource. Metadata map[string]interface{} `json:"metadata,omitempty" bson:"metadata,omitempty"` }
VolumeSpec is an block device created by storage service, it can be attached to physical machine or virtual machine instance.
Click to show internal directories.
Click to hide internal directories.