archive

package
v0.0.0-...-ff3bb38 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2020 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ListSupported

func ListSupported() []string

func RegisterArchiver

func RegisterArchiver(name string, ar Archiver) error

Types

type AlreadyExistsError

type AlreadyExistsError string

func (AlreadyExistsError) Error

func (e AlreadyExistsError) Error() string

type Archiver

type Archiver interface {
	Pack(src string, target io.Writer) error
	Unpack(src io.Reader, target string) error
}

Archiver interface may be altered for Unpack to take a writer intsted of a string

func GetArchiver

func GetArchiver(name string) (Archiver, error)

type DoesNotExistError

type DoesNotExistError string

func (DoesNotExistError) Error

func (e DoesNotExistError) Error() string

type FileMode

type FileMode struct {
	os.FileMode
}

FileMode wraps an os.FileMode

func (*FileMode) HasSetGID

func (fm *FileMode) HasSetGID() bool

HasSetGID returns true if file has setgid bit set

func (*FileMode) HasSetUID

func (fm *FileMode) HasSetUID() bool

HasSetUID returns true if file has setuid bit set

func (*FileMode) HasSticky

func (fm *FileMode) HasSticky() bool

HasSticky returns true if file has sticky bit set

func (*FileMode) IsBlockDevice

func (fm *FileMode) IsBlockDevice() bool

IsBlockDevice returns true if file is a block device

func (*FileMode) IsCharDevice

func (fm *FileMode) IsCharDevice() bool

IsCharDevice returns true if file is a charachter device

func (*FileMode) IsNamedPipe

func (fm *FileMode) IsNamedPipe() bool

IsNamedPipe returns true if file is a named pipe

func (*FileMode) IsSocket

func (fm *FileMode) IsSocket() bool

IsSocket returns true if file is a socket

func (fm *FileMode) IsSymlink() bool

IsSymlink returns true if file is a sympolic link

Jump to

Keyboard shortcuts

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