tape

package module
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2022 License: MIT Imports: 6 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrMagic       = errors.New("tape: invalid Magic")
	ErrRead        = errors.New("tape: invalid read")
	ErrTooShort    = errors.New("tape: write too short")
	ErrTooLong     = errors.New("tape: write too long")
	ErrUnsupported = errors.New("tape: unsupported format")
	ErrHeader      = errors.New("tape: invalid header")
	ErrClosed      = errors.New("tape: archive closed")
)

Functions

func Convert

func Convert(r Reader, w Writer) error

Types

type Header struct {
	Inode    int64
	Mode     int64
	Uid      int64
	Gid      int64
	Links    int64
	Size     int64
	Major    int64
	Minor    int64
	RMajor   int64
	RMinor   int64
	Check    int64
	ModTime  time.Time
	Filename string
}

func FileInfoHeader added in v0.2.1

func FileInfoHeader(file string) (*Header, error)

func (Header) Group

func (h Header) Group() string

func (Header) User

func (h Header) User() string

type Reader

type Reader interface {
	io.Reader
	Next() (*Header, error)
}

type Writer

type Writer interface {
	io.WriteCloser
	WriteHeader(*Header) error
}

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

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