Versions in this module Expand all Collapse all v0 v0.0.3 Mar 4, 2026 v0.0.2 Mar 4, 2026 Changes in this version + const RockRidgeIdentifier + const RockRidgeVersion + const SUEType_ContinuationArea + const SUEType_ExtensionSelector + const SUEType_ExtensionsReference + const SUEType_PaddingField + const SUEType_SharingProtocolIndicator + const SUEType_SharingProtocolTerminator + var ErrFileTooLarge = errors.New("file is exceeding the maximum file size of 4GB") + var ErrUDFNotSupported = errors.New("UDF volumes are not supported") + func MarshalString(s string, padToLength int) []byte + func UnmarshalInt16LSBMSB(data []byte) (int16, error) + func UnmarshalInt32LSBMSB(data []byte) (int32, error) + func UnmarshalUint32LSBMSB(data []byte) (uint32, error) + func WriteInt16LSBMSB(dst []byte, value int16) + func WriteInt32LSBMSB(dst []byte, value int32) + type BootVolumeDescriptorBody struct + BootIdentifier string + BootSystemIdentifier string + BootSystemUse [1977]byte + func (bvd *BootVolumeDescriptorBody) UnmarshalBinary(data []byte) error + type ContinuationEntry struct + type DirectoryEntry struct + ExtendedAtributeRecordLength byte + ExtentLength uint32 + ExtentLocation int32 + FileFlags byte + FileUnitSize byte + Identifier string + InterleaveGap byte + RecordingDateTime RecordingTimestamp + SystemUse []byte + SystemUseEntries SystemUseEntrySlice + VolumeSequenceNumber int16 + func (de *DirectoryEntry) Clone() DirectoryEntry + func (de *DirectoryEntry) MarshalBinary() ([]byte, error) + func (de *DirectoryEntry) UnmarshalBinary(data []byte) error + type ExtensionRecord struct + Descriptor string + Identifier string + Source string + Version int + func ExtensionRecordDecode(e SystemUseEntry) (*ExtensionRecord, error) + type File struct + func (f *File) GetAllChildren() ([]*File, error) + func (f *File) GetChildren() ([]*File, error) + func (f *File) GetDotEntry() (*File, error) + func (f *File) HasMultiExtent() bool + func (f *File) IsDir() bool + func (f *File) ModTime() time.Time + func (f *File) Mode() os.FileMode + func (f *File) Name() string + func (f *File) Reader() io.Reader + func (f *File) Size() int64 + func (f *File) Sys() interface{} + type Image struct + func OpenImage(ra io.ReaderAt) (*Image, error) + func (i *Image) Label() (string, error) + func (i *Image) RootDir() (*File, error) + type ImageWriter struct + func NewWriter() (*ImageWriter, error) + func (iw *ImageWriter) AddFile(data io.Reader, filePath string) error + func (iw *ImageWriter) AddLocalDirectory(origin, target string) error + func (iw *ImageWriter) AddLocalFile(origin, target string) error + func (iw *ImageWriter) Cleanup() error + func (iw *ImageWriter) WriteTo(w io.Writer, volumeIdentifier string) error + type PrimaryVolumeDescriptorBody struct + AbstractFileIdentifier string + ApplicationIdentifier string + ApplicationUsed [512]byte + BibliographicFileIdentifier string + CopyrightFileIdentifier string + DataPreparerIdentifier string + FileStructureVersion byte + LogicalBlockSize int16 + OptTypeLPathTableLoc int32 + OptTypeMPathTableLoc int32 + PathTableSize int32 + PublisherIdentifier string + RootDirectoryEntry *DirectoryEntry + SystemIdentifier string + TypeLPathTableLoc int32 + TypeMPathTableLoc int32 + VolumeCreationDateAndTime VolumeDescriptorTimestamp + VolumeEffectiveDateAndTime VolumeDescriptorTimestamp + VolumeExpirationDateAndTime VolumeDescriptorTimestamp + VolumeIdentifier string + VolumeModificationDateAndTime VolumeDescriptorTimestamp + VolumeSequenceNumber int16 + VolumeSetIdentifier string + VolumeSetSize int16 + VolumeSpaceSize int32 + func (pvd *PrimaryVolumeDescriptorBody) UnmarshalBinary(data []byte) error + func (pvd PrimaryVolumeDescriptorBody) MarshalBinary() ([]byte, error) + type RecordingTimestamp time.Time + func (ts *RecordingTimestamp) UnmarshalBinary(data []byte) error + func (ts RecordingTimestamp) MarshalBinary(dst []byte) + type RockRidgeNameEntry struct + Flags byte + Name string + type SPRecord struct + BytesSkipped uint8 + func SPRecordDecode(e SystemUseEntry) (*SPRecord, error) + type SUSPMetadata struct + HasRockRidge bool + Offset uint8 + func (sm *SUSPMetadata) Clone() *SUSPMetadata + type SystemUseEntry []byte + func (e SystemUseEntry) Data() []byte + func (e SystemUseEntry) Length() int + func (e SystemUseEntry) Type() string + type SystemUseEntrySlice []SystemUseEntry + func (s SystemUseEntrySlice) GetExtensionRecords() ([]*ExtensionRecord, error) + func (s SystemUseEntrySlice) GetPosixAttr() (fs.FileMode, error) + func (s SystemUseEntrySlice) GetRockRidgeName() string + type VolumeDescriptorTimestamp struct + Day int + Hour int + Hundredth int + Minute int + Month int + Offset int + Second int + Year int + func VolumeDescriptorTimestampFromTime(t time.Time) VolumeDescriptorTimestamp + func (ts *VolumeDescriptorTimestamp) MarshalBinary() ([]byte, error) + func (ts *VolumeDescriptorTimestamp) UnmarshalBinary(data []byte) error