Documentation
¶
Index ¶
- Constants
- Variables
- func ArchiveProgress(source fileSourcer, sizer func(os.FileInfo) int64) (p *progress, s fileSourcer)
- func ArchiveSourcer(dir string, skipper ...fileSkipper) fileSourcer
- func FileProgress(size int64) (p *progress)
- func GzipStream(source sourceWriter) io.ReadCloser
- func TarProgress(source fileSourcer) (*progress, fileSourcer)
- func TarStream(source fileSourcer) sourceWriter
- type ArchiveEntry
- type TableWriter
Constants ¶
View Source
const AnsiClearLine = "\033[2K\r"
Variables ¶
View Source
var SkipEntry = errors.New("skip this entry") //nolint:staticcheck // Ignore ST1012 rule for error names, as we mimic filepath.SkipXXX.
Functions ¶
func ArchiveProgress ¶
func ArchiveSourcer ¶
func ArchiveSourcer(dir string, skipper ...fileSkipper) fileSourcer
func FileProgress ¶
func FileProgress(size int64) (p *progress)
func GzipStream ¶
func GzipStream(source sourceWriter) io.ReadCloser
func TarProgress ¶
func TarProgress(source fileSourcer) (*progress, fileSourcer)
Types ¶
type ArchiveEntry ¶
type ArchiveEntry struct {
RealPath string // A real path the original file
Path string // A path to that file inside an archive
Info os.FileInfo // A file info; if nil, will be taken from RealPath.
}
func (*ArchiveEntry) EnsureInfo ¶
func (entry *ArchiveEntry) EnsureInfo() (err error)
type TableWriter ¶
type TableWriter struct {
// contains filtered or unexported fields
}
func NewTableWriter ¶
func NewTableWriter(headers []string) *TableWriter
func (*TableWriter) AddRow ¶
func (t *TableWriter) AddRow(columns ...any)
func (*TableWriter) Render ¶
func (t *TableWriter) Render()
Click to show internal directories.
Click to hide internal directories.