Versions in this module Expand all Collapse all v0 v0.1.1 May 22, 2023 v0.1.0 May 17, 2023 Changes in this version + const AutoclearFeaturesBitmapsExtensionBit + const AutoclearFeaturesRawExternalBit + const CompatibleFeaturesLazyRefcountsBit + const CompressionTypeZlib + const CompressionTypeZstd + const CryptMethodAES + const CryptMethodLUKS + const CryptMethodNone + const FeatureNameTableEntryTypeAutoclear + const FeatureNameTableEntryTypeCompatible + const FeatureNameTableEntryTypeIncompatible + const HeaderExtensionTypeBackingFileFormatNameString + const HeaderExtensionTypeBitmapsExtension + const HeaderExtensionTypeEnd + const HeaderExtensionTypeExternalDataFileNameString + const HeaderExtensionTypeFeatureNameTable + const HeaderExtensionTypeFullDiskEncryptionHeaderPointer + const IncompatibleFeaturesCompressionTypeBit + const IncompatibleFeaturesCorruptBit + const IncompatibleFeaturesDirtyBit + const IncompatibleFeaturesExtendedL2EntriesBit + const IncompatibleFeaturesExternalDataFileBit + const Magic + const Type + var AutoclearFeaturesNames = []string + var CompatibleFeaturesNames = []string + var ErrNotQcow2 = fmt.Errorf("%w: image is not qcow2", image.ErrWrongType) + var ErrUnsupportedBackingFile = errors.New("unsupported backing file") + var ErrUnsupportedCompression = errors.New("unsupported compression type") + var ErrUnsupportedEncryption = errors.New("unsupported encryption method") + var ErrUnsupportedFeature = errors.New("unsupported feature") + var IncompatibleFeaturesNames = []string + func SetDecompressor(t CompressionType, d Decompressor) + type AutoclearFeatures uint64 + func (x AutoclearFeatures) MarshalJSON() ([]byte, error) + type CompatibleFeatures uint64 + func (x CompatibleFeatures) MarshalJSON() ([]byte, error) + type CompressionType uint8 + func (x CompressionType) MarshalText() ([]byte, error) + func (x CompressionType) String() string + type CryptMethod uint32 + func (x CryptMethod) MarshalText() ([]byte, error) + func (x CryptMethod) String() string + type Decompressor func(r io.Reader) (io.ReadCloser, error) + type FeatureName [46]byte + type FeatureNameTableEntry struct + Bit uint8 + Name string + Type FeatureNameTableEntryType + type FeatureNameTableEntryType uint8 + func (x FeatureNameTableEntryType) MarshalText() ([]byte, error) + func (x FeatureNameTableEntryType) String() string + type Features struct + Names []string + Raw uint64 + type Header struct + func (header *Header) Length() int + func (header *Header) Readable() error + type HeaderExtension struct + Data interface{} + Length uint32 + Type HeaderExtensionType + type HeaderExtensionType uint32 + func (x HeaderExtensionType) MarshalText() ([]byte, error) + func (x HeaderExtensionType) String() string + type HeaderFieldsAdditional struct + CompressionType CompressionType + Pad [7]byte + type HeaderFieldsV2 struct + BackingFileOffset uint64 + BackingFileSize uint32 + ClusterBits uint32 + CryptMethod CryptMethod + L1Size uint32 + L1TableOffset uint64 + Magic MagicType + NbSnapshots uint32 + RefcountTableClusters uint32 + RefcountTableOffset uint64 + Size uint64 + SnapshotsOffset uint64 + Version uint32 + type HeaderFieldsV3 struct + AutoclearFeatures AutoclearFeatures + CompatibleFeatures CompatibleFeatures + HeaderLength uint32 + IncompatibleFeatures IncompatibleFeatures + RefcountOrder uint32 + type IncompatibleFeatures uint64 + func (x IncompatibleFeatures) MarshalJSON() ([]byte, error) + type MagicType [4]byte + func (x MagicType) MarshalText() ([]byte, error) + func (x MagicType) String() string + type Namer interface + Name func() string + type OffsetLengthPair64 struct + Length uint64 + Offset uint64 + type Qcow2 struct + BackingFile string + BackingFileFormat image.Type + BackingFileFullPath string + HeaderExtensions []HeaderExtension + func Open(ra io.ReaderAt, openWithType image.OpenWithType) (*Qcow2, error) + func (img *Qcow2) Close() error + func (img *Qcow2) ReadAt(p []byte, off int64) (n int, err error) + func (img *Qcow2) Readable() error + func (img *Qcow2) Size() int64 + func (img *Qcow2) Type() image.Type