Sha256: 71bc33417712175d4816a9c3cffa9c6c24b2d6d2f050a3e35eb3be31b5ce3116

Contents?: true

Size: 1.15 KB

Versions: 13

Compression:

Stored size: 1.15 KB

Contents

# frozen_string_literal: true

module Libvirt
  module Xml
    class StorageVolume < Generic
      # https://libvirt.org/formatstorage.html

      root_path './volume'

      attribute :type, type: :attr
      attribute :name
      attribute :key
      attribute :allocation, type: :memory
      attribute :capacity, type: :memory
      attribute :physical, type: :memory
      attribute :target_path, path: './target/path'
      attribute :target_format, type: :attr, name: :type, path: './target/format'
      attribute :target_perm_mode, path: './target/permissions/mode'
      attribute :target_perm_owner, path: './target/permissions/owner'
      attribute :target_perm_group, path: './target/permissions/group'
      attribute :target_perm_label, path: './target/permissions/label'
      attribute :timestamp_atime, path: './timestamp/atime'
      attribute :timestamp_btime, path: './timestamp/btime'
      attribute :timestamp_ctime, path: './timestamp/ctime'
      attribute :timestamp_mtime, path: './timestamp/mtime'
      attribute :compat
      # TODO: target/encryption target/nocow target/features
      # todo source
      # todo backingStore
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
libvirt_ffi-0.8.1 lib/libvirt/xml/storage_volume.rb
libvirt_ffi-0.8.0 lib/libvirt/xml/storage_volume.rb
libvirt_ffi-0.7.0 lib/libvirt/xml/storage_volume.rb
libvirt_ffi-0.6.2 lib/libvirt/xml/storage_volume.rb
libvirt_ffi-0.6.1 lib/libvirt/xml/storage_volume.rb
libvirt_ffi-0.6.0 lib/libvirt/xml/storage_volume.rb
libvirt_ffi-0.5.6 lib/libvirt/xml/storage_volume.rb
libvirt_ffi-0.5.5 lib/libvirt/xml/storage_volume.rb
libvirt_ffi-0.5.4 lib/libvirt/xml/storage_volume.rb
libvirt_ffi-0.5.3 lib/libvirt/xml/storage_volume.rb
libvirt_ffi-0.5.2 lib/libvirt/xml/storage_volume.rb
libvirt_ffi-0.5.1 lib/libvirt/xml/storage_volume.rb
libvirt_ffi-0.5.0 lib/libvirt/xml/storage_volume.rb