Documentation
¶
Index ¶
- Constants
- Variables
- type Disk
- func (o *Disk) Decode(e entity.AttrGetter)
- func (o *Disk) Empty() bool
- func (o *Disk) Encode() (attrs []entity.Attr)
- func (o *Disk) EntityId() entity.Id
- func (o *Disk) InitSchema(sb *schema.SchemaBuilder)
- func (o *Disk) Is(e entity.AttrGetter) bool
- func (o *Disk) Kind() entity.Id
- func (o *Disk) ShortKind() string
- type DiskFilesystem
- type DiskLease
- func (o *DiskLease) Decode(e entity.AttrGetter)
- func (o *DiskLease) Empty() bool
- func (o *DiskLease) Encode() (attrs []entity.Attr)
- func (o *DiskLease) EntityId() entity.Id
- func (o *DiskLease) InitSchema(sb *schema.SchemaBuilder)
- func (o *DiskLease) Is(e entity.AttrGetter) bool
- func (o *DiskLease) Kind() entity.Id
- func (o *DiskLease) ShortKind() string
- type DiskLeaseStatus
- type DiskStatus
- type Mount
Constants ¶
View Source
const ( DiskCreatedById = entity.Id("dev.miren.storage/disk.created_by") DiskFilesystemId = entity.Id("dev.miren.storage/disk.filesystem") DiskFilesystemExt4Id = entity.Id("dev.miren.storage/filesystem.ext4") DiskFilesystemXfsId = entity.Id("dev.miren.storage/filesystem.xfs") DiskFilesystemBtrfsId = entity.Id("dev.miren.storage/filesystem.btrfs") DiskLsvdVolumeIdId = entity.Id("dev.miren.storage/disk.lsvd_volume_id") DiskNameId = entity.Id("dev.miren.storage/disk.name") DiskRemoteOnlyId = entity.Id("dev.miren.storage/disk.remote_only") DiskSizeGbId = entity.Id("dev.miren.storage/disk.size_gb") DiskStatusId = entity.Id("dev.miren.storage/disk.status") DiskStatusProvisioningId = entity.Id("dev.miren.storage/status.provisioning") DiskStatusProvisionedId = entity.Id("dev.miren.storage/status.provisioned") DiskStatusAttachedId = entity.Id("dev.miren.storage/status.attached") DiskStatusDetachedId = entity.Id("dev.miren.storage/status.detached") DiskStatusDeletingId = entity.Id("dev.miren.storage/status.deleting") DiskStatusErrorId = entity.Id("dev.miren.storage/status.error") )
View Source
const ( DiskLeaseAcquiredAtId = entity.Id("dev.miren.storage/disk_lease.acquired_at") DiskLeaseAppIdId = entity.Id("dev.miren.storage/disk_lease.app_id") DiskLeaseDiskIdId = entity.Id("dev.miren.storage/disk_lease.disk_id") DiskLeaseErrorMessageId = entity.Id("dev.miren.storage/disk_lease.error_message") DiskLeaseMountId = entity.Id("dev.miren.storage/disk_lease.mount") DiskLeaseNodeIdId = entity.Id("dev.miren.storage/disk_lease.node_id") DiskLeaseSandboxIdId = entity.Id("dev.miren.storage/disk_lease.sandbox_id") DiskLeaseStatusId = entity.Id("dev.miren.storage/disk_lease.status") DiskLeaseStatusPendingId = entity.Id("dev.miren.storage/status.pending") DiskLeaseStatusBoundId = entity.Id("dev.miren.storage/status.bound") DiskLeaseStatusFailedId = entity.Id("dev.miren.storage/status.failed") DiskLeaseStatusReleasedId = entity.Id("dev.miren.storage/status.released") )
Variables ¶
Functions ¶
This section is empty.
Types ¶
type Disk ¶
type Disk struct {
ID entity.Id `json:"id"`
CreatedBy entity.Id `cbor:"created_by,omitempty" json:"created_by,omitempty"`
Filesystem DiskFilesystem `cbor:"filesystem,omitempty" json:"filesystem,omitempty"`
LsvdVolumeId string `cbor:"lsvd_volume_id,omitempty" json:"lsvd_volume_id,omitempty"`
Name string `cbor:"name" json:"name"`
RemoteOnly bool `cbor:"remote_only,omitempty" json:"remote_only,omitempty"`
SizeGb int64 `cbor:"size_gb" json:"size_gb"`
Status DiskStatus `cbor:"status,omitempty" json:"status,omitempty"`
}
func (*Disk) Decode ¶
func (o *Disk) Decode(e entity.AttrGetter)
func (*Disk) InitSchema ¶
func (o *Disk) InitSchema(sb *schema.SchemaBuilder)
type DiskFilesystem ¶
type DiskFilesystem string
const ( EXT4 DiskFilesystem = "filesystem.ext4" XFS DiskFilesystem = "filesystem.xfs" BTRFS DiskFilesystem = "filesystem.btrfs" )
type DiskLease ¶
type DiskLease struct {
ID entity.Id `json:"id"`
AcquiredAt time.Time `cbor:"acquired_at,omitempty" json:"acquired_at,omitempty"`
AppId entity.Id `cbor:"app_id,omitempty" json:"app_id,omitempty"`
DiskId entity.Id `cbor:"disk_id" json:"disk_id"`
ErrorMessage string `cbor:"error_message,omitempty" json:"error_message,omitempty"`
Mount Mount `cbor:"mount,omitempty" json:"mount,omitempty"`
NodeId entity.Id `cbor:"node_id" json:"node_id"`
SandboxId entity.Id `cbor:"sandbox_id,omitempty" json:"sandbox_id,omitempty"`
Status DiskLeaseStatus `cbor:"status,omitempty" json:"status,omitempty"`
}
func (*DiskLease) Decode ¶
func (o *DiskLease) Decode(e entity.AttrGetter)
func (*DiskLease) InitSchema ¶
func (o *DiskLease) InitSchema(sb *schema.SchemaBuilder)
type DiskLeaseStatus ¶
type DiskLeaseStatus string
const ( PENDING DiskLeaseStatus = "status.pending" BOUND DiskLeaseStatus = "status.bound" FAILED DiskLeaseStatus = "status.failed" RELEASED DiskLeaseStatus = "status.released" )
type DiskStatus ¶
type DiskStatus string
const ( PROVISIONING DiskStatus = "status.provisioning" PROVISIONED DiskStatus = "status.provisioned" ATTACHED DiskStatus = "status.attached" DETACHED DiskStatus = "status.detached" DELETING DiskStatus = "status.deleting" ERROR DiskStatus = "status.error" )
type Mount ¶
type Mount struct {
Options string `cbor:"options,omitempty" json:"options,omitempty"`
Path string `cbor:"path" json:"path"`
ReadOnly bool `cbor:"read_only,omitempty" json:"read_only,omitempty"`
}
func (*Mount) Decode ¶
func (o *Mount) Decode(e entity.AttrGetter)
func (*Mount) InitSchema ¶
func (o *Mount) InitSchema(sb *schema.SchemaBuilder)
Click to show internal directories.
Click to hide internal directories.