model

package
v1.6.0 Latest Latest
Warning

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

Go to latest
Published: Dec 31, 2021 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FileShare

type FileShare struct {
	// The uuid of the file share, it's unique in the context and generated by system
	// on successful creation of the file share. 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 file share belongs to.
	TenantId string `json:"tenantId,omitempty" bson:"tenantId,omitempty"`

	// The uuid of the user that the file share belongs to.
	// +optional
	UserId string `json:"userId,omitempty" bson:"userId,omitempty"`

	// The uuid of the backend that the file share belongs to.
	BackendId string `json:"backendId,omitempty" bson:"backendId,omitempty"`

	// The name of the backend that the file share belongs to.
	// +optional
	Backend string `json:"backend,omitempty" bson:"backend,omitempty"`

	// The name of the file share.
	Name string `json:"name,omitempty" bson:"name,omitempty"`

	// The description of the file share.
	// +optional
	Description string `json:"description,omitempty" bson:"description,omitempty"`

	// The type of the file share.
	// +optional
	Type string `json:"type,omitempty" bson:"type,omitempty"`

	// The size of the file share requested by the user.
	// Default unit of file share Size is GB.
	// +optional
	Size *int64 `json:"size,omitempty" bson:"size,omitempty"`

	// The location that file share belongs to.
	// +optional
	Region string `json:"region,omitempty" bson:"region,omitempty"`

	// The locality that file share belongs to.
	// +optional
	AvailabilityZone string `json:"availabilityZone,omitempty" bson:"availabilityZone,omitempty"`

	// The status of the file share.
	Status string `json:"status,omitempty" bson:"status,omitempty"`

	// The protocol of the fileshare. e.g NFS, SMB etc.
	// +optional
	Protocols []string `json:"protocols,omitempty" bson:"protocols,omitempty"`

	// Any tags assigned to the file share.
	// +optional
	Tags []Tag `json:"tags,omitempty" bson:"tags,omitempty"`

	// The uuid of the snapshot from which the file share is created.
	// +optional
	SnapshotId string `json:"snapshotId,omitempty" bson:"snapshotId,omitempty"`

	// Indicates whether the file share is encrypted.
	// +optional
	Encrypted *bool `json:"encrypted,omitempty" bson:"encrypted,omitempty"`

	// EncryptionSettings that was used to protect the file share encryption.
	// +optional
	EncryptionSettings map[string]string `json:"encryptionSettings,omitempty" bson:"encryptionSettings,omitempty"`

	// Metadata should be kept until the semantics between file share and backend storage resource.
	Metadata map[string]interface{} `json:"metadata,omitempty" bson:"metadata,omitempty"`
}

FileShareS is a schema for fileshare API. Fileshare will be created on cloud backend.

type Tag

type Tag struct {
	// The key of the tag.
	Key string `json:"key,omitempty" bson:"key,omitempty"`

	// The value of the tag.
	Value string `json:"value,omitempty" bson:"value,omitempty"`
}

Jump to

Keyboard shortcuts

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