filesystem

package
v0.0.0-...-6f182b9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 23, 2025 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ArchiveFileSystem

type ArchiveFileSystem struct {
	// contains filtered or unexported fields
}

func NewArchiveFileSystem

func NewArchiveFileSystem(memoryFileSystem vfs.FileSystem, osFileSystem vfs.FileSystem) (*ArchiveFileSystem, error)

func (*ArchiveFileSystem) ArchiveFile

func (s *ArchiveFileSystem) ArchiveFile(filePath string) (TarData, error)

func (*ArchiveFileSystem) CreateArchiveFileSystem

func (s *ArchiveFileSystem) CreateArchiveFileSystem(path string) error

func (*ArchiveFileSystem) GetArchiveFileSystem

func (s *ArchiveFileSystem) GetArchiveFileSystem() vfs.FileSystem

func (*ArchiveFileSystem) WriteFile

func (s *ArchiveFileSystem) WriteFile(data []byte, fileName string) error

type Helper

type Helper struct{}

func (*Helper) FileExists

func (u *Helper) FileExists(path string) (bool, error)

func (*Helper) ReadFile

func (u *Helper) ReadFile(path string) ([]byte, error)

func (*Helper) WriteFile

func (u *Helper) WriteFile(path, content string) error

type TarData

type TarData = []byte

type TempFileSystem

type TempFileSystem struct {
	// contains filtered or unexported fields
}

func NewTempFileSystem

func NewTempFileSystem() *TempFileSystem

func (*TempFileSystem) DownloadTempFile

func (fs *TempFileSystem) DownloadTempFile(dir, pattern string, url *url.URL) (string, error)

func (*TempFileSystem) FileExists

func (fs *TempFileSystem) FileExists(filePath string) (bool, error)

FileExists checks if a file exists at the given filePath and is a regular file.

func (*TempFileSystem) RemoveTempFiles

func (fs *TempFileSystem) RemoveTempFiles() []error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL