Versions in this module Expand all Collapse all v0 v0.1.3 Apr 11, 2020 Changes in this version type Item + func NewItemConcat(items ...Item) Item v0.1.2 Apr 11, 2020 v0.1.1 Apr 11, 2020 Changes in this version type BootVolumeDescriptorBody + func (bvd *BootVolumeDescriptorBody) MarshalBinary() ([]byte, error) v0.1.0 Apr 11, 2020 Changes in this version + const ElToritoEFI + const ElToritoFloppy122 + const ElToritoFloppy144 + const ElToritoFloppy288 + const ElToritoHDD + const ElToritoMac + const ElToritoNoEmul + const ElToritoPPC + const ElToritoX86 + type BootCatalogEntry struct + BootInfoTable bool + BootMedia ElToritoEmul + Platform ElToritoPlatform + type ElToritoEmul byte + type ElToritoPlatform byte type ImageWriter + Catalog string + func (iw *ImageWriter) AddBootEntry(boot *BootCatalogEntry, data Item, filePath string) error + type Item interface + Close func() error + Size func() int64 + func NewItemFile(filename string) (Item, error) + func NewItemReader(r io.Reader) (Item, error) v0.0.1 Apr 10, 2020 Changes in this version + var ErrFileTooLarge = errors.New("file is exceeding the maximum file size of 4GB") + var ErrIsDir = errors.New("is a directory") + func MarshalString(s string, padToLength int) []byte + func UnmarshalInt16LSBMSB(data []byte) (int16, error) + func UnmarshalInt32LSBMSB(data []byte) (int32, 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 DirectoryEntry struct + ExtendedAtributeRecordLength byte + ExtentLength int32 + ExtentLocation int32 + FileFlags byte + FileUnitSize byte + Identifier string + InterleaveGap byte + RecordingDateTime RecordingTimestamp + SystemUse []byte + VolumeSequenceNumber int16 + func (de *DirectoryEntry) Clone() DirectoryEntry + func (de *DirectoryEntry) MarshalBinary() ([]byte, error) + func (de *DirectoryEntry) UnmarshalBinary(data []byte) error + type File struct + func (f *File) GetChildren() ([]*File, error) + 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) RootDir() (*File, error) + type ImageWriter struct + Primary *PrimaryVolumeDescriptorBody + func NewWriter() (*ImageWriter, error) + func (iw *ImageWriter) AddBoot(boot *BootVolumeDescriptorBody) + func (iw *ImageWriter) AddFile(data io.Reader, filePath string) error + func (iw *ImageWriter) AddLocalFile(localPath, filePath string) error + func (iw *ImageWriter) Cleanup() error + func (iw *ImageWriter) WriteTo(w io.Writer) 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 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