Documentation ¶
Index ¶
- type Archive
- type FileSystem
- func (_ FileSystem) CloseFile(file *os.File)
- func (_ FileSystem) Create(path string) (*os.File, error)
- func (_ FileSystem) FsCloseFile(file fs.File)
- func (_ FileSystem) FsOpenEmbed(file embed.FS, path string) (fs.File, error)
- func (_ FileSystem) FsReadAll(file fs.File) ([]byte, error)
- func (_ FileSystem) FsWriteFile(path string, bytes []byte, perm fs.FileMode) error
- func (_ FileSystem) IsNotExist(err error) bool
- func (_ FileSystem) MkdirTemp(pattern string) (string, error)
- func (_ FileSystem) Open(path string) (*os.File, error)
- func (_ FileSystem) ReadFile(path string) ([]byte, error)
- func (_ FileSystem) Remove(path string) error
- func (_ FileSystem) RemoveAll(path string)
- func (_ FileSystem) Stat(path string) (os.FileInfo, error)
- func (_ FileSystem) StatFile(file *os.File) (os.FileInfo, error)
- func (_ FileSystem) WriteToWriter(writer io.Writer, content []byte) (int, error)
- type FileWriter
- type IArchive
- type IFileSystem
- type IFileWriter
- type IZip
- type Zip
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Archive ¶
type Archive struct {
// contains filtered or unexported fields
}
func NewArchive ¶
func NewArchiveWithStructs ¶
func NewArchiveWithStructs(workingDirectory string, fs IFileSystem, zip IZip) *Archive
type FileSystem ¶
type FileSystem struct{}
func (FileSystem) CloseFile ¶
func (_ FileSystem) CloseFile(file *os.File)
func (FileSystem) FsCloseFile ¶
func (_ FileSystem) FsCloseFile(file fs.File)
func (FileSystem) FsOpenEmbed ¶
func (FileSystem) FsWriteFile ¶
func (FileSystem) IsNotExist ¶
func (_ FileSystem) IsNotExist(err error) bool
func (FileSystem) Remove ¶
func (_ FileSystem) Remove(path string) error
func (FileSystem) RemoveAll ¶
func (_ FileSystem) RemoveAll(path string)
func (FileSystem) WriteToWriter ¶
type FileWriter ¶
type FileWriter struct{}
type IFileSystem ¶
type IFileSystem interface { Open(path string) (*os.File, error) Create(path string) (*os.File, error) Stat(path string) (os.FileInfo, error) ReadFile(path string) ([]byte, error) Remove(path string) error StatFile(file *os.File) (os.FileInfo, error) IsNotExist(err error) bool CloseFile(file *os.File) WriteToWriter(writer io.Writer, content []byte) (int, error) MkdirTemp(pattern string) (string, error) RemoveAll(path string) FsOpenEmbed(file embed.FS, path string) (fs.File, error) FsCloseFile(file fs.File) FsReadAll(file fs.File) ([]byte, error) FsWriteFile(path string, bytes []byte, perm fs.FileMode) error }
type IFileWriter ¶
type Zip ¶
type Zip struct{}
func (Zip) CreateHeader ¶
func (Zip) FileInfoHeader ¶
func (Zip) GetDeflate ¶
Click to show internal directories.
Click to hide internal directories.