tape

package module
Version: v0.0.0-...-3d8694f Latest Latest
Warning

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

Go to latest
Published: Dec 24, 2018 License: MIT Imports: 5 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrMagic       = errors.New("tape: Invalid Magic")
	ErrTooShort    = errors.New("tape: write too short")
	ErrTooLong     = errors.New("tape: write too long")
	ErrUnsupported = errors.New("tape: unsupported format")
)

Functions

func Convert

func Convert(r Reader, w Writer) error

Types

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

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
}

Source Files

Directories

Path Synopsis
cmd
internal
rw

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL