archive

package
v0.0.0-...-20af688 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2019 License: BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FileType

type FileType uint
const (
	TypeDir FileType = iota
	TypeFifo
	TypeChar
	TypeBlock
	TypeRegular
	TypeSymlink
	TypeSocket
)

func (FileType) String

func (i FileType) String() string
type Header struct {
	Name       string   // name of header file entry.
	Mode       int64    // permission and mode bits.
	Uid        int      // user id of owner.
	Gid        int      // group id of owner.
	Size       int64    // length in bytes.
	Type       FileType // filetype.
	ModTime    time.Time
	ChangeTime time.Time
	AccessTime time.Time
}

type Writer

type Writer interface {
	io.WriteCloser
	WriteHeader(hdr *Header) error
	Symlink(src, dst string, uid, gid int) error
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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